summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--make/uclibc_toolchain.mk3
-rw-r--r--sources/gcc-001-disable-mathf.patch142
2 files changed, 142 insertions, 3 deletions
diff --git a/make/uclibc_toolchain.mk b/make/uclibc_toolchain.mk
index 739769a96..b358ec52d 100644
--- a/make/uclibc_toolchain.mk
+++ b/make/uclibc_toolchain.mk
@@ -387,9 +387,6 @@ $(GCC_DIR)/.ldso_hacks: $(GCC_DIR)/.patched
$(GCC_DIR)/libstdc++-v3/src/Makefile.am $(GCC_DIR)/libstdc++-v3/src/Makefile.in;
perl -i -p -e "s,3\.0\.0,9.9.0,g;" $(GCC_DIR)/libstdc++-v3/acinclude.m4 \
$(GCC_DIR)/libstdc++-v3/aclocal.m4 $(GCC_DIR)/libstdc++-v3/configure;
- # Disable logf() -- we just use log() in uClibc
- -perl -i -p -e "s,_GLIBCPP_HAVE_LOGF,0,g;" $(GCC_DIR)/libstdc++-v3/include/c_std/std_cmath.h \
- $(GCC_DIR)/libstdc++-v3/include/c_shadow/bits/std_cmath.h
# For now, we don't support locale-ified ctype, so bypass that problem here
cp $(GCC_DIR)/libstdc++-v3/config/os/generic/bits/ctype_base.h \
$(GCC_DIR)/libstdc++-v3/config/os/gnu-linux/bits/
diff --git a/sources/gcc-001-disable-mathf.patch b/sources/gcc-001-disable-mathf.patch
new file mode 100644
index 000000000..fbb8a840a
--- /dev/null
+++ b/sources/gcc-001-disable-mathf.patch
@@ -0,0 +1,142 @@
+--- gcc-3.1/libstdc++-v3/configure Tue May 7 23:27:59 2002
++++ gcc-3.1-patched/libstdc++-v3/configure Thu Aug 8 11:01:35 2002
+@@ -5034,10 +5034,6 @@
+ EOF
+
+ cat >> confdefs.h <<\EOF
+-#define HAVE_FREXPF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+ #define HAVE_HYPOTF 1
+ EOF
+
+@@ -7873,128 +7869,6 @@
+ cat >> confdefs.h <<\EOF
+ #define HAVE_MMAP 1
+ EOF
+-
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ACOSF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ASINF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ATAN2F 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ATANF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_CEILF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_COPYSIGN 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_COPYSIGNF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_COSF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_COSHF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_EXPF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FABSF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FINITE 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FINITEF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FLOORF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FMODF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_FREXPF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ISINF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ISINFF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ISNAN 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_ISNANF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_LDEXPF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_LOG10F 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_LOGF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_MODFF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_POWF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_SINF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_SINHF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_SQRTF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_TANF 1
+-EOF
+-
+- cat >> confdefs.h <<\EOF
+-#define HAVE_TANHF 1
+-EOF
+-
+ ;;
+ esac
+