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
This commit is contained in:
Bart Van Assche 2010-06-10 06:26:21 +00:00
parent c3b643bb35
commit a3b8fe45f5

View File

@ -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])