From 715f5e5de0722db907a36a44ddbc8d91dcee76f7 Mon Sep 17 00:00:00 2001 From: Pavel Zalunin Date: Thu, 20 Aug 2015 03:02:59 +0300 Subject: [PATCH] added icu extension support --- README.md | 4 ++++ sqlite3_icu.go | 13 +++++++++++++ 2 files changed, 17 insertions(+) create mode 100644 sqlite3_icu.go diff --git a/README.md b/README.md index 04ddfd0..efd0046 100644 --- a/README.md +++ b/README.md @@ -30,6 +30,10 @@ FAQ Use `go build --tags "libsqlite3 linux"` +* Want to build go-sqlite3 with icu extension. + + Use `go build --tags "icu"` + * Can't build go-sqlite3 on windows 64bit. > Probably, you are using go 1.0, go1.0 has a problem when it comes to compiling/linking on windows 64bit. diff --git a/sqlite3_icu.go b/sqlite3_icu.go new file mode 100644 index 0000000..4c5492b --- /dev/null +++ b/sqlite3_icu.go @@ -0,0 +1,13 @@ +// Copyright (C) 2014 Yasuhiro Matsumoto . +// +// Use of this source code is governed by an MIT-style +// license that can be found in the LICENSE file. +// +build icu + +package sqlite3 + +/* +#cgo LDFLAGS: -licuuc -licui18n +#cgo CFLAGS: -DSQLITE_ENABLE_ICU +*/ +import "C"