| Submitter | Jack Howarth |
|---|---|
| Date | July 10, 2010, 4:48 p.m. |
| Message ID | <20100710164829.GA12452@bromo.med.uc.edu> |
| Download | mbox | patch |
| Permalink | /patch/58490/ |
| State | New |
| Headers | show |
Comments
On 07/10/2010 06:48 PM, Jack Howarth wrote: > Currently the bootstrap of gcc trunk on darwin fails when > configured with --enable-build-with-cxx due to the inability > of -static-libstdc++ to perform the required link spec %s > substitutions in the absence of an explicit -B option. The > attached patch resolves this issue by adding the missing > -B option to the top-level Makefile.tpl. Bootstrap and > regression tested on x86_64-apple-darwin10 in concert with > the proposed fix for PR44905. Okay for gcc trunk? > Jack Ok if libstdc++-v3 maintainers do not complain in 1-2 days. Paolo
On 10 Jul 2010, at 20:26, Paolo Bonzini wrote: > On 07/10/2010 06:48 PM, Jack Howarth wrote: >> Currently the bootstrap of gcc trunk on darwin fails when >> configured with --enable-build-with-cxx due to the inability >> of -static-libstdc++ to perform the required link spec %s >> substitutions in the absence of an explicit -B option. The >> attached patch resolves this issue by adding the missing >> -B option to the top-level Makefile.tpl. Bootstrap and >> regression tested on x86_64-apple-darwin10 in concert with >> the proposed fix for PR44905. Okay for gcc trunk? > Ok if libstdc++-v3 maintainers do not complain in 1-2 days. applied after successful bootstraps with/without --enable-build-with- cxx on {powerpc,i686}-apple-darwin9 and x86_64-unknown-linux-gnu. r162275 cheers, Iain
Patch
Index: Makefile.tpl =================================================================== --- Makefile.tpl (revision 162037) +++ Makefile.tpl (working copy) @@ -238,6 +238,7 @@ POSTSTAGE1_CXX_EXPORT = \ CXX="$(STAGE_CC_WRAPPER) $$r/$(HOST_SUBDIR)/prev-gcc/g++$(exeext) \ -B$$r/$(HOST_SUBDIR)/prev-gcc/ -B$(build_tooldir)/bin/ -nostdinc++ \ + -B$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/src/.libs \ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include/$(TARGET_SUBDIR) \ -I$$r/prev-$(TARGET_SUBDIR)/libstdc++-v3/include \ -I$$s/libstdc++-v3/libsupc++ \
Currently the bootstrap of gcc trunk on darwin fails when configured with --enable-build-with-cxx due to the inability of -static-libstdc++ to perform the required link spec %s substitutions in the absence of an explicit -B option. The attached patch resolves this issue by adding the missing -B option to the top-level Makefile.tpl. Bootstrap and regression tested on x86_64-apple-darwin10 in concert with the proposed fix for PR44905. Okay for gcc trunk? Jack 2009-10-02 Jack Howarth <howarth@bromo.med.uc.edu> PR target/44862 * Makefile.tpl (POSTSTAGE1_CXX_EXPORT): Provide -B option to allow for link spec %s substitutions for libstdc++.a on darwin. * Makefile.in: Regenerate.