From e0cb250f7aa6515ec2251b0c6e29e7ba5ed9144c Mon Sep 17 00:00:00 2001 From: Manfred Hollstein Date: Wed, 24 Jun 1998 06:26:02 +0000 Subject: configure (enable_version_specific_runtime_libs): Implement new flag --enable-version-specific-runtime-libs which installs C++... d egcs/ChangeLog: 1998-06-24 Manfred Hollstein * configure (enable_version_specific_runtime_libs): Implement new flag --enable-version-specific-runtime-libs which installs C++ runtime stuff in $(libsubdir); emit definition in each generated Makefile. (gxx_include_dir): Initialize depending on $enable_version_specific_runtime_libs. egcs/gcc/ChangeLog: 1998-06-24 Manfred Hollstein * configure.in (gxx_include_dir): Initialize default value depending on new flag --enable-version-specific-runtime-libs; remove superfluous default initialization afterwards. * configure: Regenerate. egcs/libio/ChangeLog: 1998-06-24 Manfred Hollstein * Makefile.in (install): Install _G_config.h depending on new flag --enable-version-specific-runtime-libs. * config/linux.mt (gxx_include_dir): Remove definition here as we use gcc's default anyway. egcs/libstdc++/ChangeLog: 1998-06-24 Manfred Hollstein * Makefile.in (INSTALLDIR): Add comment to document the fact, this macro will be properly initialized at make's runtime. (install): Add initialization of INSTALLDIR depending on $(libsubdir) and ${enable_version_specific_runtime_libs}; use $${INSTALLDIR} shell variable instead of the $(INSTALLDIR) make macro. From-SVN: r20694 --- libstdc++/Makefile.in | 27 +++++++++++++++++---------- 1 file changed, 17 insertions(+), 10 deletions(-) (limited to 'libstdc++') diff --git a/libstdc++/Makefile.in b/libstdc++/Makefile.in index c96ec1bd617..247d8b5105c 100644 --- a/libstdc++/Makefile.in +++ b/libstdc++/Makefile.in @@ -48,6 +48,8 @@ LIBIBERTY_DIR = ../libiberty LIBIBERTY_OBJS = `cat $(LIBIBERTY_DIR)/needed-list` strerror.o tooldir = $(exec_prefix)/$(target) +# This is where the libraries will be installed; note, it will be set +# at make runtime now. See below at target install. INSTALLDIR = $(libdir) MOSTLYCLEAN_JUNK = *stmp-* tlib*.a *.s *.ii stdlist piclist @@ -272,24 +274,29 @@ install: else true ; \ fi rootme=`pwd`/ ; export rootme ; \ - rm -f $(INSTALLDIR)$(MULTISUBDIR)/$(SHLINK) ; \ + if [ x$(libsubdir) = x ] || [ x$(enable_version_specific_runtime_libs) != xyes ]; then \ + INSTALLDIR=$(libdir); \ + else \ + INSTALLDIR=$(libsubdir); \ + fi; \ + rm -f $${INSTALLDIR}$(MULTISUBDIR)/$(SHLINK) ; \ for FILE in $(LIBS) ; do \ - rm -f $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ if [ $$FILE = $(SHLINK) ] ; then \ - ln -f -s $(SHLIB) $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + ln -f -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ elif [ $$FILE = mshlink ]; then \ for FILE in $(MSHLINK) ; do \ - rm -f $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ - ln -f -s $(SHLIB) $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + rm -f $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ + ln -f -s $(SHLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ done; \ elif [ $$FILE = $(SHLIB) ]; then \ - $(INSTALL_PROGRAM) $$FILE $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + $(INSTALL_PROGRAM) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ : On the HP, shared libraries must be mode 555. ;\ - chmod 555 $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + chmod 555 $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ else \ - $(INSTALL_DATA) $$FILE $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ - $(RANLIB) $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ - chmod a-x $(INSTALLDIR)$(MULTISUBDIR)/$$FILE ; \ + $(INSTALL_DATA) $$FILE $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ + $(RANLIB) $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ + chmod a-x $${INSTALLDIR}$(MULTISUBDIR)/$$FILE ; \ fi ; \ done @rootme=`pwd`/ ; export rootme ; \ -- cgit v1.2.1