From c510ed3fbe1fb6c0ad8a4244f4151259c36e8caa791d088da8657d3a8864e32d Mon Sep 17 00:00:00 2001 From: Bjoern Schilberg Date: Mon, 28 Dec 2009 19:10:24 +0000 Subject: [PATCH] added a dirty hack to manipulate POSTGIS_LIB and strip out -lpgport, which seems to be not available on Suse, but pg_config propagates it. TODO: Send a patch to postgresql-packagers OBS-URL: https://build.opensuse.org/package/show/Application:Geo/mapserver?expand=0&rev=39 --- mapserver.spec | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/mapserver.spec b/mapserver.spec index ef28977..8bcaf06 100644 --- a/mapserver.spec +++ b/mapserver.spec @@ -143,6 +143,12 @@ chmod -x mapscript/php3/README.WIN32 --without-ld-shared \ --disable-runpath +## Dirty Hack: Strip out the faulty referenced -lpgport from Makefiles in +## order to make the linking succeed. pg_config progagates it, but it is +## not available on suse-systems. +## TODO: Send a patch to postgresql-packagers! +find . -name Makefile -exec sed -i 's/ -lpgport//' {} \; + ## WARNING !!! # using %{?_smp_mflags} may break build