I was able to do it.
I had to build ICU statically first with --enable-static --enable-shared=no
options.
During configuring postgres I had to use the right flags for ICU:
/configure --prefix=/leoaaryan/postgres-10 ... --with-icu
ICU_CFLAGS="-I/leoaaryan/postgres-10/include -DU_STATIC_IMPLEMENTATI
IMO the whole idea behind building Postgres with ICU was to remove the
dependency provided by the OS package. Installing ICU as shared object and
configuring Postgres with the libicu*.so file may have a dependency on
LD_LIBRARY_PATH. In shared object situation un-setting/re-setting the
LD_LIBRARY_P
On Tue, Dec 19, 2017 at 12:10 PM, leoaaryan wrote:
> I can see libicu*.a in the directory /leoaaryan/postgres-10/lib. But I'm not
> able to make the postgres source code with it.
> ./configure --prefix=/leoaaryan/postgres-10 ... --with-icu
> ICU_CFLAGS="-I/leoaaryan/postgres-10/include"
> ICU_LIBS
I was able to link ICU library with postgres as shared objects using the
configure command:
./configure --prefix=/leoaaryan/postgres-10 ... --with-icu
ICU_CFLAGS="-I/leoaaryan/postgres-10/include"
ICU_LIBS="-L/leoaaryan/postgres-10/lib -licuuc -licudata -licui18n"
Now I'm trying link ICU with post