]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[3080] Fixed link flags for Kea postgresSQL backend build
authorThomas Markwalder <tmark@isc.org>
Fri, 28 Mar 2014 11:17:51 +0000 (07:17 -0400)
committerThomas Markwalder <tmark@isc.org>
Fri, 28 Mar 2014 11:17:51 +0000 (07:17 -0400)
Changed the definition of PGSQL_LIBS for building Kea with PostgreSQL
backend to use pg_config value for LIBDIR rather than LDFLAGS.  The latter
did not build with PostgreSQL 9.3.4 on OS-X or Centos.

Added OS-X version numbers 10.9.1 and 10.9.2 to the test for setting the value
of bind10_undefined_pthread_behavior.  Without this the death test for
conditional variables fails as the problem introduced in 10.9 is still there
as of 10.9.2.  This is unrelated to PostgreSQL.

configure.ac

index e70d5bb72a3d1b9afa77b64c83fee9bb8dc98f46..815142031c890c91e6b3b1f6b8f69bb4e504f9df 100644 (file)
@@ -294,7 +294,9 @@ case "$host" in
        # it should be avoided to rely on 'osx_version' unless there's no
        # viable alternative.
        osx_version=`/usr/bin/sw_vers -productVersion`
-       if [ test $osx_version = "10.9" ]; then
+       if [ test $osx_version = "10.9" \
+         -o $osx_version = "10.9.1" \
+         -o $osx_version = "10.9.2" ]; then
                bind10_undefined_pthread_behavior=yes
        fi
 
@@ -989,8 +991,8 @@ if test "$PG_CONFIG" != "" ; then
     PGSQL_CPPFLAGS=`$PG_CONFIG --cppflags`
     PGSQL_INCLUDEDIR=`$PG_CONFIG --includedir`
     PGSQL_CPPFLAGS="$PGSQL_CPPFLAGS -I$PGSQL_INCLUDEDIR"
-    PGSQL_LIBS=`$PG_CONFIG --ldflags`
-    PGSQL_LIBS="$PGSQL_LIBS -lpq"
+    PGSQL_LIBS=`$PG_CONFIG --libdir`
+    PGSQL_LIBS="-L$PGSQL_LIBS -lpq"
     PGSQL_VERSION=`$PG_CONFIG --version`
 
     AC_SUBST(PGSQL_CPPFLAGS)