From 75fef5e72acb4631f4fa22c884ff20f17a5bc1ef Mon Sep 17 00:00:00 2001 From: Dane Springmeyer Date: Tue, 9 Aug 2011 17:19:58 +0000 Subject: [PATCH] osx: provide a static libintl.a for libpq client statically linked by postgis.input --- osx/scripts/static-universal.sh | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/osx/scripts/static-universal.sh b/osx/scripts/static-universal.sh index 8f105df17..8414e7398 100644 --- a/osx/scripts/static-universal.sh +++ b/osx/scripts/static-universal.sh @@ -128,11 +128,25 @@ make -j4 make install cd ../ +# gettext which provides libintl for libpq +wget http://ftp.gnu.org/pub/gnu/gettext/gettext-0.18.1.1.tar.gz +tar xvf gettext-0.18.1.1.tar.gz +cd gettext-0.18.1.1 +export CC=gcc +export CXX=g++ +./configure --prefix=$PREFIX --enable-static --disable-shared --disable-dependency-tracking \ +--without-included-gettext --disable-debug --without-included-glib \ +--without-included-libcroco --without-included-libxml \ +--without-emacs --without-git --without-cvs +make -j4 +make install +cd ../ + # postgis # install postgres 9.x client from http://www.kyngchaos.com/software/postgres # then copy the static libpq.a to a prioritized directory: -cp /usr/local/pgsql/lib/libpq.a osx/sources/lib/ +cp /usr/local/pgsql/lib/libpq.a osx/sources/lib/libpq_s.a # gdal 1.8.1