Statically linking ICU with Postgres

From: leoaaryan <leoaaryan(at)gmail(dot)com>
To: pgsql-hackers(at)postgresql(dot)org
Subject: Statically linking ICU with Postgres
Date: 2017-12-19 03:10:47
Message-ID: 1513653047467-0.post@n3.nabble.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-hackers

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 postgres as a static library.
This is how I have compiled and installed ICU:
./runConfigureICU Linux/gcc --prefix=/leoaaryan/postgres-10
--enable-shared=no --enable-static
make
make install

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="-L/leoaaryan/postgres-10/lib"

Is there a way to link ICU library to Postgres statically?

--
Sent from: http://www.postgresql-archive.org/PostgreSQL-hackers-f1928748.html

Responses

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-12-19 03:54:18 Re: Statically linking ICU with Postgres
Previous Message Amit Langote 2017-12-19 02:48:14 Re: [HACKERS] Add support for tuple routing to foreign partitions