[svn] commit: r3888 - /trunk/configure.ac

BIND 10 source code commits bind10-changes at lists.isc.org
Mon Dec 20 17:16:22 UTC 2010


Author: jreed
Date: Mon Dec 20 17:16:21 2010
New Revision: 3888

Log:
For the linker test (for checking flags) make sure it has
some code to link with.

Modified:
    trunk/configure.ac

Modified: trunk/configure.ac
==============================================================================
--- trunk/configure.ac (original)
+++ trunk/configure.ac Mon Dec 20 17:16:21 2010
@@ -195,14 +195,15 @@
 # specify the default warning flags in CXXFLAGS and let specific modules
 # "override" the default.
 
-# This may be used to try compiler flags.
+# This may be used to try linker flags.
 AC_DEFUN([BIND10_CXX_TRY_FLAG], [
   AC_MSG_CHECKING([whether $CXX supports $1])
 
   bind10_save_CXXFLAGS="$CXXFLAGS"
   CXXFLAGS="$CXXFLAGS $1"
 
-  AC_LINK_IFELSE([ ], [bind10_cxx_flag=yes], [bind10_cxx_flag=no])
+  AC_LINK_IFELSE([int main(void){ return 0;} ],
+                 [bind10_cxx_flag=yes], [bind10_cxx_flag=no])
   CXXFLAGS="$bind10_save_CXXFLAGS"
 
   if test "x$bind10_cxx_flag" = "xyes"; then




More information about the bind10-changes mailing list