]> git.ipfire.org Git - thirdparty/kea.git/commitdiff
[trac3449] make sure -R has argument (directory) in m4 macro that tests availability.
authorTomek Mrugalski <tomasz@isc.org>
Tue, 13 May 2014 12:34:49 +0000 (14:34 +0200)
committerTomek Mrugalski <tomasz@isc.org>
Tue, 13 May 2014 13:31:08 +0000 (15:31 +0200)
Bundy issue 6:
(should also be trivial enough, so I'm pushing it directly at my discretion)
without this it's possible that it only results in warning on a system
that doesn't actually support this flag (such as MacOS X) and subsequently
causes build failure.

examples/m4/ax_isc_rpath.m4

index d540b2cb4158eb9ba3aa0ba48d2f0b588815915a..ce8d3226f19d489b2a5718d06a76e190ee80981c 100644 (file)
@@ -45,8 +45,8 @@ if test x$rpath != xno; then
            # Apple clang 5.1 is now considers unknown parameters passed to linker (ld) as errors.
            # However, the same unknown parameters passed to compiler (g++ ) are merely threated
            # as warnings. To make sure that we pick those up, is to use -Werror.
-            CXXFLAGS="$CXXFLAGS_SAVED -Werror -R"
-            CCFLAGS="$CCFLAGS_SAVED -Werror -R"
+            CXXFLAGS="$CXXFLAGS_SAVED -R/usr/lib"
+            CCFLAGS="$CCFLAGS_SAVED -R/usr/lib"
         AC_TRY_LINK([], [],
             [ AC_MSG_RESULT([yes; note that -R is more sensitive about the position in option arguments])
                 ISC_RPATH_FLAG=-R