Re: Statically linking ICU with Postgres

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

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_IMPLEMENTATION"
ICU_LIBS="-L/leoaaryan/postgres-10/lib -licui18n -licuuc -licudata -lstdc++"

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

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Michael Paquier 2017-12-20 00:56:52 Re: [HACKERS] replace GrantObjectType with ObjectType
Previous Message Craig Ringer 2017-12-20 00:48:59 Re: access/parallel.h lacks PGDLLIMPORT