From: Thomas Markwalder Date: Fri, 28 Mar 2014 11:17:51 +0000 (-0400) Subject: [3080] Fixed link flags for Kea postgresSQL backend build X-Git-Tag: bind10-1.2.0rc1-release~23^2~6 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=efbde0adb7a7dcff8438fc7a5209afe77b4b1b32;p=thirdparty%2Fkea.git [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. --- diff --git a/configure.ac b/configure.ac index e70d5bb72a..815142031c 100644 --- a/configure.ac +++ b/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)