Bug: "-Xlinker -E" option stops g++ from adding -lstdc++ to link
John David Anglin
dave@hiauly1.hia.nrc.ca
Thu Jun 7 13:34:00 GMT 2001
I thought I had found a way to run v3 tests with static linkage on the
PA. The problem is that I haven't found a way to pass commas in RUNTEST
that are part of the variation to be tested. As a result, I haven't
found a way to use the `-Wl,option' in a variation string. Thus, I tried
to use the `-Xlinker option' to do the same thing. However, when
I tried to use the g++ option `-static -Xlinker -E -Xlinker +n -l:libdld.sl',
I found that applications no longer were linking with libstdc++.
It look like there needs to be a check for "-Xlinker" in the if at line
152 of g++spec.c.
Dave
--
J. David Anglin dave.anglin@nrc.ca
National Research Council of Canada (613) 990-0752 (FAX: 952-6605)
More information about the Gcc-bugs
mailing list