From cc330df9887465c9675d3e29d6cd2a355b0c8f9d Mon Sep 17 00:00:00 2001 From: Benjamin Kosnik Date: Mon, 18 Dec 2000 18:08:07 +0000 Subject: [PATCH] Makefile.in (BASE_FLAGS_TO_PASS): Alphabetize. 2000-12-18 Benjamin Kosnik * Makefile.in (BASE_FLAGS_TO_PASS): Alphabetize. (libstdcxx_incdir): Pass down. * config.if: Remove expired bits for cxx_interface, add stub. (libstdcxx_incdir): Add variable for g++ include directory. * configure.in (gxx_include_dir): Use it. From-SVN: r38355 --- ChangeLog | 8 ++++++++ Makefile.in | 5 +++-- config.if | 10 +++------- configure.in | 2 +- 4 files changed, 15 insertions(+), 10 deletions(-) diff --git a/ChangeLog b/ChangeLog index eb5142960cf..ae7cb297ad1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2000-12-18 Benjamin Kosnik + + * Makefile.in (BASE_FLAGS_TO_PASS): Alphabetize. + (libstdcxx_incdir): Pass down. + * config.if: Remove expired bits for cxx_interface, add stub. + (libstdcxx_incdir): Add variable for g++ include directory. + * configure.in (gxx_include_dir): Use it. + 2000-12-18 Alexandre Oliva * MAINTAINERS: Added self as sh port co-maintainer. Removed entry diff --git a/Makefile.in b/Makefile.in index acd6e75a5fd..2fbb3fb625a 100644 --- a/Makefile.in +++ b/Makefile.in @@ -370,6 +370,8 @@ BASE_FLAGS_TO_PASS = \ "libdir=$(libdir)" \ "libexecdir=$(libexecdir)" \ "lispdir=$(lispdir)" \ + "libstdcxx_incdir=$(libstdcxx_incdir)" \ + "libsubdir=$(libsubdir)" \ "localstatedir=$(localstatedir)" \ "mandir=$(mandir)" \ "oldincludedir=$(oldincludedir)" \ @@ -382,8 +384,7 @@ BASE_FLAGS_TO_PASS = \ "gxx_include_dir=$(gxx_include_dir)" \ "gcc_version=$(gcc_version)" \ "gcc_version_trigger=$(gcc_version_trigger)" \ - "target_alias=$(target_alias)" \ - "libsubdir=$(libsubdir)" + "target_alias=$(target_alias)" # Flags to pass down to most sub-makes, in which we're building with # the host environment. diff --git a/config.if b/config.if index 31c8551d00f..4cac75dc4a4 100644 --- a/config.if +++ b/config.if @@ -30,13 +30,9 @@ else # We check libstdc++/Makefile.in for libstdcxx_interface. libstdcxx_interface=`grep "^INTERFACE" ${libstdcxx_srcdir}/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'` fi - -if [ -f ${if_topsrcdir}/gcc/cp/Makefile.in ]; then -# We check gcc/cp for cxx_interface. -cxx_interface=`grep "^INTERFACE" ${if_topsrcdir}/gcc/cp/Makefile.in | sed 's/INTERFACE[ ]*=[ ]*\(.*\)/\1/'` -else -cxx_interface= -fi +libstdcxx_incdir=g++-${libstdcxx_interface} +# Used to version libstdc++ shared libraries +cxx_interface=2 # The trickiest part is libc_interface. if [ -z "${libc_interface}" ] diff --git a/configure.in b/configure.in index 3e91a7e12aa..0868fefb49b 100644 --- a/configure.in +++ b/configure.in @@ -1314,7 +1314,7 @@ if test x${gxx_include_dir} = x; then gxx_include_dir='${libsubdir}/include/g++' else . ${topsrcdir}/config.if - gxx_include_dir='${prefix}/include/g++'-${libstdcxx_interface} + gxx_include_dir='${prefix}/include/${libstdcxx_incdir}' fi else gxx_include_dir=${gxx_include_dir} -- 2.30.2