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