aboutsummaryrefslogtreecommitdiff
path: root/libstdc++-v3/configure.ac
diff options
context:
space:
mode:
authorGeoffrey Keating <geoffk@apple.com>2005-08-03 23:17:06 +0000
committerGeoffrey Keating <geoffk@gcc.gnu.org>2005-08-03 23:17:06 +0000
commit0646b0597b3e675c23938fae830dba69aefc6b33 (patch)
tree209cc465f4311fcece71dc88d8a2baf6dc9a0e75 /libstdc++-v3/configure.ac
parentd783b2a2dc91e1d2c1fea78cac2b6c6c73b3680d (diff)
downloadgcc-0646b0597b3e675c23938fae830dba69aefc6b33.zip
gcc-0646b0597b3e675c23938fae830dba69aefc6b33.tar.gz
gcc-0646b0597b3e675c23938fae830dba69aefc6b33.tar.bz2
configure.ac: Don't use GCC_NO_EXECUTABLES or clear GLIBCXX_IS_NATIVE on Darwin crosses.
* configure.ac: Don't use GCC_NO_EXECUTABLES or clear GLIBCXX_IS_NATIVE on Darwin crosses. * acinclude.m4 (GLIBCXX_CONFIGURE_TESTSUITE): Don't skip configuring the testsuite just because there's no symbol versioning. * configure: Regenerate. From-SVN: r102718
Diffstat (limited to 'libstdc++-v3/configure.ac')
-rw-r--r--libstdc++-v3/configure.ac19
1 files changed, 18 insertions, 1 deletions
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
index 9a36f09..d350e6e 100644
--- a/libstdc++-v3/configure.ac
+++ b/libstdc++-v3/configure.ac
@@ -41,7 +41,24 @@ target_alias=${target_alias-$host_alias}
if test "$build" != "$host"; then
# We are being configured with some form of cross compiler.
GLIBCXX_IS_NATIVE=false
- GCC_NO_EXECUTABLES
+ case "$host","$target" in
+ # Darwin crosses can use the host system's libraries and headers,
+ # because of the fat library support. Of course, it must be the
+ # same version of Darwin on both sides. Allow the user to
+ # just say --target=foo-darwin without a version number to mean
+ # "the version on this system".
+ *-*-darwin*,*-*-darwin*)
+ hostos=`echo $host | sed 's/.*-darwin/darwin/'`
+ targetos=`echo $target | sed 's/.*-darwin/darwin/'`
+ if test $hostos = $targetos -o $targetos = darwin ; then
+ GLIBCXX_IS_NATIVE=true
+ fi
+ ;;
+
+ *)
+ GCC_NO_EXECUTABLES
+ ;;
+ esac
else
GLIBCXX_IS_NATIVE=true
fi