From: Tomek Mrugalski Date: Fri, 9 May 2014 23:44:41 +0000 (+0200) Subject: [3449] Fix in ax_isc_rpath.m4 macro X-Git-Tag: trac3434_base~38 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=14c3e386f3b713d5c19444b2fdcd811458edaa54;p=thirdparty%2Fkea.git [3449] Fix in ax_isc_rpath.m4 macro --- diff --git a/examples/m4/ax_isc_rpath.m4 b/examples/m4/ax_isc_rpath.m4 index ee1e472e14..d540b2cb41 100644 --- a/examples/m4/ax_isc_rpath.m4 +++ b/examples/m4/ax_isc_rpath.m4 @@ -41,8 +41,12 @@ if test x$rpath != xno; then ISC_RPATH_FLAG=-Wl,-R ],[ AC_MSG_RESULT(no) AC_MSG_CHECKING([whether -R flag is available in linker]) - CXXFLAGS="$CXXFLAGS_SAVED -R" - CCFLAGS="$CCFLAGS_SAVED -R" + + # 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" AC_TRY_LINK([], [], [ AC_MSG_RESULT([yes; note that -R is more sensitive about the position in option arguments]) ISC_RPATH_FLAG=-R