SOURCES: apr-util-pg_libs.patch (NEW) - psql plugin doesn't require -lreadl...

sls sls at pld-linux.org
Sat Aug 2 23:18:46 CEST 2008


Author: sls                          Date: Sat Aug  2 21:18:46 2008 GMT
Module: SOURCES                       Tag: HEAD
---- Log message:
- psql plugin doesn't require -lreadline -lpam etc.
  "pg_config --libs" returns LIBS used to build whole postgresql package

---- Files affected:
SOURCES:
   apr-util-pg_libs.patch (NONE -> 1.1)  (NEW)

---- Diffs:

================================================================
Index: SOURCES/apr-util-pg_libs.patch
diff -u /dev/null SOURCES/apr-util-pg_libs.patch:1.1
--- /dev/null	Sat Aug  2 23:18:47 2008
+++ SOURCES/apr-util-pg_libs.patch	Sat Aug  2 23:18:40 2008
@@ -0,0 +1,32 @@
+--- apr-util-1.3.2/build/dbd.m4.orig	2008-08-02 23:04:58.889239352 +0200
++++ apr-util-1.3.2/build/dbd.m4	2008-08-02 23:09:01.872539663 +0200
+@@ -35,10 +35,9 @@
+       if test "x$PGSQL_CONFIG" != 'x'; then
+         pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
+         pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
+-        pgsql_LIBS="`$PGSQL_CONFIG --libs`"
++        pgsql_LIBS="-lpq"
+ 
+         APR_ADDTO(CPPFLAGS, [$pgsql_CPPFLAGS])
+-        APR_ADDTO(LDFLAGS, [$pgsql_LDFLAGS])
+         APR_ADDTO(LIBS, [$pgsql_LIBS])
+       fi
+ 
+@@ -56,7 +55,7 @@
+       if test "x$PGSQL_CONFIG" != 'x'; then
+         pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
+         pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
+-        pgsql_LIBS="`$PGSQL_CONFIG --libs`"
++        pgsql_LIBS="-lpq"
+       else
+         pgsql_CPPFLAGS="-I$withval/include"
+         pgsql_LDFLAGS="-L$withval/lib "
+@@ -80,7 +79,7 @@
+     if test "x$PGSQL_CONFIG" != 'x'; then
+       pgsql_CPPFLAGS="-I`$PGSQL_CONFIG --includedir`"
+       pgsql_LDFLAGS="-L`$PGSQL_CONFIG --libdir`"
+-      pgsql_LIBS="`$PGSQL_CONFIG --libs`"
++      pgsql_LIBS="-lpq"
+ 
+       APR_ADDTO(CPPFLAGS, [$pgsql_CPPFLAGS])
+       APR_ADDTO(LDFLAGS, [$pgsql_LDFLAGS])
================================================================


More information about the pld-cvs-commit mailing list