46 lines
1.1 KiB
Diff
46 lines
1.1 KiB
Diff
stdcxx_without_libc.patch
|
|
|
|
From: Christian Prochaska <christian.prochaska@genode-labs.com>
|
|
|
|
|
|
---
|
|
libstdc++-v3/configure.ac | 6 ++++++
|
|
1 file changed, 6 insertions(+)
|
|
|
|
diff --git a/libstdc++-v3/configure.ac b/libstdc++-v3/configure.ac
|
|
index 60152a5..7d7279b 100644
|
|
--- a/libstdc++-v3/configure.ac
|
|
+++ b/libstdc++-v3/configure.ac
|
|
@@ -89,9 +89,11 @@ CXXFLAGS="$save_CXXFLAGS"
|
|
GLIBCXX_CONFIGURE
|
|
|
|
# Libtool setup.
|
|
+if test "$is_hosted" = yes; then
|
|
if test "x${with_newlib}" != "xyes"; then
|
|
AC_LIBTOOL_DLOPEN
|
|
fi
|
|
+fi
|
|
AM_PROG_LIBTOOL
|
|
ACX_LT_HOST_FLAGS
|
|
AC_SUBST(enable_shared)
|
|
@@ -209,7 +211,9 @@ AC_CHECK_HEADERS(fenv.h complex.h)
|
|
GLIBCXX_CHECK_C99_TR1
|
|
|
|
# For the EOF, SEEK_CUR, and SEEK_END integer constants.
|
|
+if test "$is_hosted" = yes; then
|
|
GLIBCXX_COMPUTE_STDIO_INTEGER_CONSTANTS
|
|
+fi
|
|
|
|
# For gettimeofday support.
|
|
GLIBCXX_CHECK_GETTIMEOFDAY
|
|
@@ -370,7 +374,9 @@ GCC_CHECK_UNWIND_GETIPINFO
|
|
|
|
GCC_LINUX_FUTEX([AC_DEFINE(HAVE_LINUX_FUTEX, 1, [Define if futex syscall is available.])])
|
|
|
|
+if test "$is_hosted" = yes; then
|
|
GCC_HEADER_STDINT(include/gstdint.h)
|
|
+fi
|
|
|
|
GLIBCXX_ENABLE_SYMVERS([yes])
|
|
AC_SUBST(libtool_VERSION)
|