[PATCH 1 of 3] configure: check for libstdc++.{so,dylib,a}
Bryan Hundven
bryanhundven@gmail.com
Mon May 30 05:07:00 GMT 2011
configure | 11 +++++++++++
1 files changed, 11 insertions(+), 0 deletions(-)
# HG changeset patch
# User Bryan Hundven <bryanhundven@gmail.com>
# Date 1306731488 25200
# Node ID e48d80f0eb9ea97c2d12f7239a7c54858fb0126a
# Parent fa3a18f9abcf9dde1535088554778fe4c4e5e831
configure: check for libstdc++.{so,dylib,a}
It's probably a good thing to check for {so,dylib} during configure
time. But if you configure for either CC_STATIC_LIBSTDCXX or
STATIC_TOOLCHAIN then libstdc++.a is required for building cloog's
static library and anything after that.
Signed-off-by: Bryan Hundven <bryanhundven@gmail.com>
diff -r fa3a18f9abcf -r e48d80f0eb9e configure
--- a/configure Sun May 29 19:24:41 2011 +0200
+++ b/configure Sun May 29 21:58:08 2011 -0700
@@ -429,6 +429,17 @@
has_or_abort lib="${ncurses_libs}" \
err="'ncurses' library was not found"
+stdcpp_libs="$( for x in so dylib; do \
+ printf "libstdc++.$x "; \
+ done \
+ )"
+has_or_abort lib="${stdcpp_libs}" \
+ err="'libstdc++' shared library was not found"
+
+has_or_warn lib="libstdc++.a" \
+ err="'libstdc++' static library was not found" \
+ kconfig=has_static_libstdcpp
+
#---------------------------------------------------------------------
# Compute the version string
--
For unsubscribe information see http://sourceware.org/lists.html#faq
More information about the crossgcc
mailing list