This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Gcc 2.96 installation fixes for libstdc++
- To: gcc-patches at gcc dot gnu dot org
- Subject: Gcc 2.96 installation fixes for libstdc++
- From: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
- Date: Tue, 26 Sep 2000 15:41:11 +0200 (MET DST)
- Organization: Technical University of Gdansk
- Reply-To: "Maciej W. Rozycki" <macro at ds2 dot pg dot gda dot pl>
Hi,
There is a problem with libstdc++ symlinks that get installed in
$(libsubdir) in some configurations. They point to incorrect targets.
This happens when $(target) equals to $(host) but $(build) does not (in
other words, when cross-building a native compiler). The following patch
fixes this. The patch was generated with gcc 2.95.2, but it applies to
current 2.96 cleanly.
Maciej
--
+ Maciej W. Rozycki, Technical University of Gdansk, Poland +
+--------------------------------------------------------------+
+ e-mail: macro@ds2.pg.gda.pl, PGP key available +
diff -u --recursive --new-file gcc-2.95.2.macro/libstdc++/Makefile.in gcc-2.95.2/libstdc++/Makefile.in
--- gcc-2.95.2.macro/libstdc++/Makefile.in Thu Aug 5 08:00:40 1999
+++ gcc-2.95.2/libstdc++/Makefile.in Tue Sep 26 05:59:54 2000
@@ -293,19 +293,19 @@
if [ $${INSTALLLINKDIR}$(MULTISUBDIR) = $${INSTALLDIR}$(MULTISUBDIR) ]; then \
RELINSTALLDIR=; \
elif [ x$(MULTISUBDIR) = x ]; then \
- if [ $(build_alias) = $(target_alias) ]; then \
+ if [ $(host_alias) = $(target_alias) ]; then \
RELINSTALLDIR=../../../; \
else \
RELINSTALLDIR=../../../../$(target_alias)/lib/; \
fi; \
else \
- if [ $(build_alias) = $(target_alias) ]; then \
+ if [ $(host_alias) = $(target_alias) ]; then \
RELINSTALLDIR=../../..`echo $(MULTISUBDIR) | sed -e 's,/[^/]*,/..,g'`$(MULTISUBDIR)/; \
else \
RELINSTALLDIR=../../../..`echo $(MULTISUBDIR) | sed -e 's,/[^/]*,/..,g'`/$(target_alias)/lib$(MULTISUBDIR)/; \
fi; \
fi; \
- if [ $(build_alias) != $(target_alias) ]; then \
+ if [ $(host_alias) != $(target_alias) ]; then \
case $$RELINSTALLDIR in \
../../../|../../../../) \
RELINSTALLDIR=../$${RELINSTALLDIR}$(target_alias)/lib/;; \