public inbox for gcc-bugs@sourceware.org
help / color / mirror / Atom feed
* [Bug libstdc++/35942]  New: Self Reference In Dinamic Linked Library builds for building Cross-Compiler
@ 2008-04-15  8:10 earthengine at gmail dot com
  2008-04-24 17:05 ` [Bug libstdc++/35942] Self Reference In Dynamic " bkoz at gcc dot gnu dot org
                   ` (18 more replies)
  0 siblings, 19 replies; 20+ messages in thread
From: earthengine at gmail dot com @ 2008-04-15  8:10 UTC (permalink / raw)
  To: gcc-bugs

While building a cross-compiler, the the libstdc++-v3 includes a copy of
Libtool script, which includes a reference to libstdc++ itself. This prevent
the user to build a new compiler without existing libstdc++ for the target
triplet.

The following is a patch that tested to be working for this problem, but I
think it should be done in a better way.
#######BEGIN OF PATCH CODE######

diff -Naur gcc-4.3-20080410.orig/libstdc++-v3/src/Makefile.in
gcc-4.3-20080410/libstdc++-v3/src/Makefile.in
--- gcc-4.3-20080410.orig/libstdc++-v3/src/Makefile.in  2008-03-01
05:26:50.000000000 +1100
+++ gcc-4.3-20080410/libstdc++-v3/src/Makefile.in       2008-04-14
23:16:35.000000000 +1000
@@ -212,6 +212,7 @@
 LIBS = @LIBS@
 LIBSUPCXX_PICFLAGS = @LIBSUPCXX_PICFLAGS@
 LIBTOOL = @LIBTOOL@
+LIBTOOLLINK = @LIBTOOL@-link
 LN_S = @LN_S@
 LTLIBICONV = @LTLIBICONV@
 LTLIBOBJS = @LTLIBOBJS@
@@ -472,7 +473,7 @@
 # course is problematic at this point.  So, we get the top-level
 # directory to configure libstdc++-v3 to use gcc as the C++
 # compilation driver.
-CXXLINK = $(LIBTOOL) --tag CXX --mode=link $(CXX) \
+CXXLINK = $(LIBTOOLLINK) --tag CXX --mode=link $(CXX) \
          $(OPT_LDFLAGS) $(SECTION_LDFLAGS) $(AM_CXXFLAGS) $(LTLDFLAGS) -o $@

 debugdir = debug
@@ -536,7 +537,8 @@
          echo "rm -f \"$${dir}/so_locations\""; \
          rm -f "$${dir}/so_locations"; \
        done
-libstdc++.la: $(libstdc___la_OBJECTS) $(libstdc___la_DEPENDENCIES) 
+libstdc++.la: $(libstdc___la_OBJECTS) $(libstdc___la_DEPENDENCIES)
+       sed '/postdeps=/s@\-.*\-lm@\-lm@' `echo $(LIBTOOL) | cut -d\  -f2` >
`echo $(LIBTOOLLINK) | cut -d\  -f2` 
        $(CXXLINK) -rpath $(toolexeclibdir) $(libstdc___la_LDFLAGS)
$(libstdc___la_OBJECTS) $(libstdc___la_LIBADD) $(LIBS)

 mostlyclean-compile:
#######END OF PATCH CODE######


-- 
           Summary: Self Reference In Dinamic Linked Library builds for
                    building Cross-Compiler
           Product: gcc
           Version: 4.3.1
            Status: UNCONFIRMED
          Severity: normal
          Priority: P3
         Component: libstdc++
        AssignedTo: unassigned at gcc dot gnu dot org
        ReportedBy: earthengine at gmail dot com


http://gcc.gnu.org/bugzilla/show_bug.cgi?id=35942


^ permalink raw reply	[flat|nested] 20+ messages in thread

end of thread, other threads:[~2010-02-05 13:11 UTC | newest]

Thread overview: 20+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-04-15  8:10 [Bug libstdc++/35942] New: Self Reference In Dinamic Linked Library builds for building Cross-Compiler earthengine at gmail dot com
2008-04-24 17:05 ` [Bug libstdc++/35942] Self Reference In Dynamic " bkoz at gcc dot gnu dot org
2008-04-24 21:28 ` bkoz at gcc dot gnu dot org
2008-04-25 11:54 ` earthengine at gmail dot com
2008-04-25 12:05 ` Ralf dot Wildenhues at gmx dot de
2008-04-25 14:13 ` earthengine at gmail dot com
2008-10-03 23:07 ` paolo dot carlini at oracle dot com
2008-10-22 10:33 ` earthengine at gmail dot com
2008-10-22 10:54 ` earthengine at gmail dot com
2009-01-20 20:56 ` bkoz at gcc dot gnu dot org
2009-02-02  9:31 ` jzb2 at aexorsyst dot com
2009-02-02 16:26 ` jzb2 at aexorsyst dot com
2009-02-09 20:26 ` jzb2 at aexorsyst dot com
2009-02-10 12:48 ` earthengine at gmail dot com
2009-12-15 17:02 ` paolo dot carlini at oracle dot com
2010-01-04 17:15 ` rwild at gcc dot gnu dot org
2010-01-07 20:54 ` rwild at gcc dot gnu dot org
2010-01-16 14:47 ` rwild at gcc dot gnu dot org
2010-01-16 14:49 ` rwild at gcc dot gnu dot org
2010-02-05 13:11 ` paolo dot carlini at oracle dot com

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).