|
From: Dave G. <go...@mc...> - 2010-06-09 22:12:42
|
Hi Bart, I mentioned this in bug #135264, but I'm not sure that it got CC'd your way. The build still fails for me complaining about "--build-id=none" on one of the machines here at work (Linux ppc64, ld v2.16.91.0.5 20051219 SUSE). The fix that worked for me was to change AC_TRY_COMPILE to AC_TRY_LINK so that configure would actually run the linker and fail the test. -Dave ------8<------ Index: configure.in =================================================================== --- configure.in (revision 11164) +++ configure.in (working copy) @@ -1285,7 +1285,7 @@ safe_CFLAGS=$CFLAGS CFLAGS="-Wl,--build-id=none" -AC_TRY_COMPILE( +AC_TRY_LINK( [ ], [return 0; ], [ ------8<------ On Jun 8, 2010 , at 1:24 PM CDT, sv...@va... wrote: > Author: bart > Date: 2010-06-08 19:23:59 +0100 (Tue, 08 Jun 2010) > New Revision: 11164 > > Log: > Added a configure test for the linker flag --build-id=none. [...] > Modified: trunk/configure.in > =================================================================== > --- trunk/configure.in 2010-06-08 15:00:18 UTC (rev 11163) > +++ trunk/configure.in 2010-06-08 18:23:59 UTC (rev 11164) > @@ -1278,6 +1278,26 @@ > CFLAGS=$safe_CFLAGS > > > +# does this compiler support -Wl,--build-id=none ? > + > +AC_MSG_CHECKING([if gcc accepts -Wl,--build-id=none]) > + > +safe_CFLAGS=$CFLAGS > +CFLAGS="-Wl,--build-id=none" > + > +AC_TRY_COMPILE( > +[ ], > +[return 0; ], > +[ > + AC_SUBST([FLAG_NO_BUILD_ID], ["-Wl,--build-id=none"]) > + AC_MSG_RESULT([yes]) > +], [ > + AC_SUBST([FLAG_NO_BUILD_ID], [""]) > + AC_MSG_RESULT([no]) > +]) > +CFLAGS=$safe_CFLAGS > + > + > # does the ppc assembler support "mtocrf" et al? > AC_MSG_CHECKING([if ppc32/64 as supports mtocrf/mfocrf]) |