[6/8] Add AIX support to GLIBCXX_CROSSCONFIG
Richard Sandiford
richards@transitive.com
Tue Jun 2 12:23:00 GMT 2009
This patch adds AIX cross support to libstdc++ configure. It uses:
GLIBCXX_CHECK_LINKER_FEATURES
GLIBCXX_CHECK_MATH_SUPPORT
GLIBCXX_CHECK_STDLIB_SUPPORT
just like native toolchains, and just like other cross toolchains
that require a "working" linker and access to the sysroot.
I've treated TLS as unsupported. AIX does have a defined TLS ABI,
but we don't use it yet. I don't think we should rely on emultls
when a dedicated ABI is available.
I've assumed /dev/random and /dev/urandom are both available.
This is certainly true on the AIX 6.1 box that I have access to.
Tested on powerpc-ibm-aix6.1 and x86_64-linux-gnu. OK to install?
Richard
libstdc++-v3/
* crossconfig.m4 (GLIBCXX_CROSSCONFIG): Handle AIX targets.
* configure: Regenerate.
Index: libstdc++-v3/crossconfig.m4
===================================================================
--- libstdc++-v3/crossconfig.m4 2009-06-02 13:05:35.000000000 +0100
+++ libstdc++-v3/crossconfig.m4 2009-06-02 13:06:07.000000000 +0100
@@ -28,6 +28,16 @@ case "${host}" in
AC_DEFINE(HAVE_SQRTF)
;;
+ *-aix*)
+ GLIBCXX_CHECK_LINKER_FEATURES
+ GLIBCXX_CHECK_MATH_SUPPORT
+ GLIBCXX_CHECK_STDLIB_SUPPORT
+ AC_DEFINE(_GLIBCXX_USE_RANDOM_TR1)
+ # We don't yet support AIX's TLS ABI.
+ #GCC_CHECK_TLS
+ AM_ICONV
+ ;;
+
*-darwin*)
# Darwin versions vary, but the linker should work in a cross environment,
# so we just check for all the features here.
More information about the Libstdc++
mailing list