This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [build, doc, v3] Support Sun symbol versioning in libstdc++-v3, rev. 2



On 2 Jul 2010, at 16:20, Rainer Orth wrote:


IainS <developer@sandoe-acoustics.co.uk> writes:

configure:4156: /GCC/gcc-4-6-trunk-build/./gcc/xgcc -B/GCC/gcc-4-6-
trunk-build/./gcc/ -B/GCC/gcc-4-6-install/i686-apple-darwin9/bin/ -B/
GCC/gcc-4-6-install/i686-apple-darwin9/lib/ -isystem /GCC/gcc-4-6-
install/i686-apple-darwin9/include -isystem /GCC/gcc-4-6-install/ i686-
apple-darwin9/sys-include -o conftest -g -O2 -fPIC -shared -Wl,-
M,./conftest.map conftest.c >&5
ld warning: in ./conftest.map, file is not of required architecture
configure:4156: $? = 0
configure:4166: result: sun


hm. I guess that -M is unrecognized and the linker falls back to it's
default which is to expect the remaining items to be objects - which, of
course, the ma file is not. However, since the link does not actually
fail - I guess it only reports a warning.

I've seen similar behavior in the SGI ld which warns about an unknown option, but still exits with 0.

Darwin's ld will exit with an error message and status = 1 for an unrecognized option.


In this case, as I indicated in a follow-up mail, the "-M" option is valid for toolsets that are current in darwin 8 (still supported by gcc, AFAIK) and silently ignored in toolsets for darwin 9 (at least) and probably darwin 10.

so, we need a different discriminator.

cheers,
Iain


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]