This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
[PATCH] PR target/44862: Fix --enable-build-with-cxx on darwin
- From: Jack Howarth <howarth at bromo dot med dot uc dot edu>
- To: gcc-patches at gcc dot gnu dot org
- Cc: bonzini at gnu dot org, dj at redhat dot com, neroden at gcc dot gnu dot org, aoliva at redhat dot com, mikestump at comcast dot net
- Date: Sat, 10 Jul 2010 12:48:29 -0400
- Subject: [PATCH] PR target/44862: Fix --enable-build-with-cxx on darwin
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.
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++ \