aboutsummaryrefslogtreecommitdiffstats
path: root/toolchain/uClibc
diff options
context:
space:
mode:
authorFelix Fietkau <nbd@openwrt.org>2011-01-16 01:24:43 +0000
committerFelix Fietkau <nbd@openwrt.org>2011-01-16 01:24:43 +0000
commit5cb2244f2bc98eebbaf147146f1fa6ab549d6d87 (patch)
tree02ba69a68abc46a4757558cffa020350d587bc84 /toolchain/uClibc
parent02e44fa84c81382ec55830367584bc7aa33cb797 (diff)
downloadmaster-187ad058-5cb2244f2bc98eebbaf147146f1fa6ab549d6d87.tar.gz
master-187ad058-5cb2244f2bc98eebbaf147146f1fa6ab549d6d87.tar.bz2
master-187ad058-5cb2244f2bc98eebbaf147146f1fa6ab549d6d87.zip
uClibc 0.9.32: fix libm compile for powerpc
git-svn-id: svn://svn.openwrt.org/openwrt/trunk@25013 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'toolchain/uClibc')
-rw-r--r--toolchain/uClibc/patches-0.9.32/460-powerpc_libm_fixes.patch42
1 files changed, 42 insertions, 0 deletions
diff --git a/toolchain/uClibc/patches-0.9.32/460-powerpc_libm_fixes.patch b/toolchain/uClibc/patches-0.9.32/460-powerpc_libm_fixes.patch
new file mode 100644
index 0000000000..a38da1f311
--- /dev/null
+++ b/toolchain/uClibc/patches-0.9.32/460-powerpc_libm_fixes.patch
@@ -0,0 +1,42 @@
+--- a/libm/powerpc/e500/Makefile.arch
++++ b/libm/powerpc/e500/Makefile.arch
+@@ -6,5 +6,7 @@
+ #
+
+ libm_ARCH_fpu_DIR := $(libm_SUBARCH_DIR)/fpu
++libm_ARCH_fpu_OUT := $(libm_SUBARCH_OUT)/fpu
++CFLAGS-libm/$(TARGET_ARCH)/$(TARGET_SUBARCH)/fpu/ = $(CFLAGS-libm)
+ -include $(libm_ARCH_fpu_DIR)/Makefile.arch
+
+--- a/libm/powerpc/e500/fpu/fe_nomask.c
++++ b/libm/powerpc/e500/fpu/fe_nomask.c
+@@ -26,7 +26,7 @@
+ const fenv_t *
+ __fe_nomask_env(void)
+ {
+- __set_errno (ENOSYS);
++ errno = ENOSYS;
+ return FE_ENABLED_ENV;
+ }
+
+--- a/libm/powerpc/e500/fpu/feholdexcpt.c
++++ b/libm/powerpc/e500/fpu/feholdexcpt.c
+@@ -42,4 +42,3 @@ feholdexcept (fenv_t *envp)
+
+ return 0;
+ }
+-libm_hidden_def (feholdexcept)
+--- a/libm/powerpc/e500/fpu/fesetround.c
++++ b/libm/powerpc/e500/fpu/fesetround.c
+@@ -34,4 +34,3 @@ fesetround (int round)
+
+ return 0;
+ }
+-libm_hidden_def (fesetround)
+--- a/libm/powerpc/e500/fpu/fraiseexcpt.c
++++ b/libm/powerpc/e500/fpu/fraiseexcpt.c
+@@ -26,4 +26,3 @@
+
+ #include "../spe-raise.c"
+
+-libm_hidden_def (feraiseexcept)