[libstdc++] Disable _GLIBCXX_USE_LFS for *-uclinux*
Bernardo Innocenti
bernie@develer.com
Sun Feb 8 06:53:00 GMT 2004
Hello,
this configuration tweak is required to build an m68k-uclinux
crosscompiler. It's also needed on the 3.4 branch.
2004-02-08 Bernardo Innocenti <bernie@develer.com>
* crossconfig.m4: Don't enable _GLIBCXX_USE_LFS on *-uclinux*.
* configure: Regenerate.
--- gcc-3.4-20040206.orig/libstdc++-v3/crossconfig.m4 2004-01-27 16:50:32.000000000 +0100
+++ gcc-3.4-20040206/libstdc++-v3/crossconfig.m4 2004-02-08 06:51:24.000000000 +0100
@@ -134,7 +134,13 @@
# For LFS.
AC_DEFINE(HAVE_INT64_T)
- AC_DEFINE(_GLIBCXX_USE_LFS)
+ case "$target" in
+ *-uclinux*)
+ # Don't enable LFS with uClibc
+ ;;
+ *)
+ AC_DEFINE(_GLIBCXX_USE_LFS)
+ esac
# For showmanyc_helper().
AC_CHECK_HEADERS(sys/ioctl.h sys/filio.h)
--- gcc-3.4-20040206.orig/libstdc++-v3/configure 2004-01-27 16:49:58.000000000 +0100
+++ gcc-3.4-20040206/libstdc++-v3/configure 2004-02-08 06:52:23.000000000 +0100
@@ -52843,10 +52843,16 @@
#define HAVE_INT64_T 1
_ACEOF
- cat >>confdefs.h <<\_ACEOF
+ case "$target" in
+ *-uclinux*)
+ # Don't enable LFS with uClibc
+ ;;
+ *)
+ cat >>confdefs.h <<\_ACEOF
#define _GLIBCXX_USE_LFS 1
_ACEOF
+ esac
# For showmanyc_helper().
--
// Bernardo Innocenti - Develer S.r.l., R&D dept.
\X/ http://www.develer.com/
More information about the Libstdc++
mailing list