From: Bart Van Assche Date: Thu, 10 Jun 2010 06:26:21 +0000 (+0000) Subject: Follow-up for r11164: made sure that the --build-id=none configure test works (was... X-Git-Tag: svn/VALGRIND_3_6_0~271 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a3b8fe45f54e19f6716899ca2b8cf27d2dd518ec;p=thirdparty%2Fvalgrind.git Follow-up for r11164: made sure that the --build-id=none configure test works (was reported by Dave Goodell). git-svn-id: svn://svn.valgrind.org/valgrind/trunk@11169 --- diff --git a/configure.in b/configure.in index 906ff84612..f06c922fcc 100644 --- a/configure.in +++ b/configure.in @@ -1285,9 +1285,8 @@ AC_MSG_CHECKING([if gcc accepts -Wl,--build-id=none]) safe_CFLAGS=$CFLAGS CFLAGS="-Wl,--build-id=none" -AC_TRY_COMPILE( -[ ], -[return 0; ], +AC_LINK_IFELSE( +[AC_LANG_PROGRAM([ ], [return 0;])], [ AC_SUBST([FLAG_NO_BUILD_ID], ["-Wl,--build-id=none"]) AC_MSG_RESULT([yes])