diff options
author | Tomas Chvatal <tchvatal@suse.cz> | 2012-08-08 21:10:17 +0200 |
---|---|---|
committer | Tomas Chvatal <tchvatal@suse.cz> | 2012-08-08 21:10:17 +0200 |
commit | 0c7617a388d8e2e3a0d6c451b6412a5d32dd3d6e (patch) | |
tree | c9e1d7badc2081f0ecf5c63811f8da1868f110bd /configure.in | |
parent | c0308fb3bd0e635a49802c346bc716030846d62c (diff) |
Use LIBS not LDFLAGS to not fail with enforced as-needed.
Change-Id: Ia27e97c12e9a8f36e106c9ae3c399cd776433387
Diffstat (limited to 'configure.in')
-rw-r--r-- | configure.in | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/configure.in b/configure.in index 50f3288b74d5..2708f5b0b391 100644 --- a/configure.in +++ b/configure.in @@ -7047,8 +7047,8 @@ if test "$ENABLE_MYSQLC" = "YES"; then [AC_MSG_ERROR(mysql_driver.h not found. install MySQL C++ Connectivity)], []) AC_CHECK_LIB([mysqlcppconn], [main], [:], [AC_MSG_ERROR(MySQL C++ Connectivity lib not found or functional)], []) - save_LDFLAGS=$LDFLAGS - LDFLAGS="$LDFLAGS -lmysqlcppconn" + save_LIBS=$LIBS + LIBS="$LIBS -lmysqlcppconn" AC_MSG_CHECKING([version]) AC_RUN_IFELSE([AC_LANG_SOURCE([[ #include <mysql_driver.h> @@ -7066,7 +7066,7 @@ int main(int argc, char **argv) { ]])],[AC_MSG_RESULT(OK)],[AC_MSG_ERROR([not suitable, we need >= 1.0.6])],[]) AC_LANG_POP([C++]) - LDFLAGS=$save_LDFLAGS + LIBS=$save_LIBS else AC_MSG_RESULT([internal]) AC_MSG_CHECKING([for mysqlcppconn module]) |