This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: install the shared libgcc
- To: Richard Henderson <rth at redhat dot com>
- Subject: Re: install the shared libgcc
- From: "Brian R. Gaeke" <brg at sartre dot dgate dot ORG>
- Date: Sun, 7 Jan 2001 13:35:05 -0800
- Cc: gcc-patches at gcc dot gnu dot org
- References: <20010107013634.A2490@redhat.com>
And then spake Richard Henderson, as follows:
> * Makefile.in (slibdir): New variable.
> (libgcc.mk): Pass SHLIB_INSTALL to mklibgcc.
> (installdirs): Create slibdir.
> (install-libgcc, install-multilib): Defer to libgcc.mk.
> * configure.in (slibdir): Substitute.
> * mklibgcc.in (install): New target.
I had to apply the attached patch and re-run autoconf to get configure
to work (otherwise it loops forever running "yes = yes", because M4 eats
the [ and ] in configure.in before they get to configure.)
Hope this helps.
-Brian
--- gcc-20010107/gcc/configure.in.orig Sun Jan 7 13:19:51 2001
+++ gcc-20010107/gcc/configure.in Sun Jan 7 13:24:09 2001
@@ -1808,9 +1808,9 @@
[ --enable-version-specific-runtime-libs Specify that runtime libraries shou
ld be installed in a compiler-specific directory ])
-if [ "${enable_version_specific_runtime_libs-no}" = "yes" ]; then
+if test "${enable_version_specific_runtime_libs-no}" = "yes" ; then
slibdir='$(libsubdir)'
-elif [ "$host" != "$target" ]; then
+elif test "$host" != "$target" ; then
slibdir='$(build_tooldir)/lib'
else
slibdir='$(prefix)/lib'