https://sourceware.org/bugzilla/show_bug.cgi?id=22755
Toolybird <toolybird at tuta dot io> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |toolybird at tuta dot io
--- Comment #5 from Toolybird <toolybird at tuta dot io> ---
As mentioned in bug 27303 the problem here is some distros build their GCC with
`--enable-default-pie'. This wreaks havoc with the gold test suite.
Adding `-no-pie' to CFLAGS helps somewhat. Note that -pie also turns on PIC. So
also adding `-fno-PIC' allows the gold test suite to pass.
In a standard x86_64 native build, I was able to get the whole binutils test
suite to pass by fiddling with FLAGS as follows:
make CFLAGS="-g -O2 -no-pie -fno-PIC" CXXFLAGS="-g -O2 -no-pie -fno-PIC" \
CFLAGS_FOR_TARGET="-g -O2" CXXFLAGS_FOR_TARGET="-g -O2" LDFLAGS= check
It would be ideal if the gold testsuite could handle a GCC configured with
`--enable-default-pie' without having to resort to such hacks. Thanks.
--
You are receiving this mail because:
You are on the CC list for the bug.