Browse Source

[3080] Fixed link flags for Kea postgresSQL backend build

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.
Thomas Markwalder 11 years ago
parent
commit
efbde0adb7
1 changed files with 5 additions and 3 deletions
  1. 5 3
      configure.ac

+ 5 - 3
configure.ac

@@ -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)