+++ /dev/null
-From 65aa786d3f6282da02d35b600e82408b47e0a3fe Mon Sep 17 00:00:00 2001
-From: Waldemar Brodkorb <wbx@openadk.org>
-Date: Mon, 9 Mar 2015 01:48:19 -0500
-Subject: [PATCH 20/20] remove NAN selection, better do it in your build
- system
-
-With older gcc than 4.9.x, this breaks the build.
-These specific compiler flags belongs better to your
-favorite build system.
-
-Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
----
- Rules.mak | 4 ----
- extra/Configs/Config.mips | 15 ---------------
- 2 files changed, 19 deletions(-)
-
-diff --git a/Rules.mak b/Rules.mak
-index 3b074a8..5217004 100644
---- a/Rules.mak
-+++ b/Rules.mak
-@@ -404,10 +404,6 @@ ifeq ($(TARGET_ARCH),mips)
- CPU_CFLAGS-$(CONFIG_MIPS_N64_ABI)+=-mabi=64
- CPU_CFLAGS-$(CONFIG_MIPS_O32_ABI)+=-mabi=32
- CPU_CFLAGS-$(CONFIG_MIPS_N32_ABI)+=-mabi=n32
--
-- CPU_CFLAGS-$(CONFIG_MIPS_NAN_LEGACY)+=-mnan=legacy
-- CPU_CFLAGS-$(CONFIG_MIPS_NAN_2008)+=-mnan=2008
--
- CPU_LDFLAGS-y += $(CPU_CFLAGS)
- endif
-
-diff --git a/extra/Configs/Config.mips b/extra/Configs/Config.mips
-index 76b10c6..4d30d31 100644
---- a/extra/Configs/Config.mips
-+++ b/extra/Configs/Config.mips
-@@ -33,21 +33,6 @@ config CONFIG_MIPS_N64_ABI
- endchoice
-
- choice
-- prompt "Target NAN Encoding"
-- default CONFIG_MIPS_NAN_LEGACY
-- help
-- This is the NAN Encoding you want to use. Chose either Legacy
-- or 2008.
--
--config CONFIG_MIPS_NAN_LEGACY
-- bool "LEGACY"
--
--config CONFIG_MIPS_NAN_2008
-- bool "2008"
--
--endchoice
--
--choice
- prompt "Target Processor Architecture"
- default CONFIG_MIPS_ISA_1 if CONFIG_MIPS_O32_ABI
- default CONFIG_MIPS_ISA_3 if CONFIG_MIPS_N32_ABI
---
-1.7.10.4
-
--- /dev/null
+From 74c69da52ad5029cd2fc2d3d41d581022ed0a7aa Mon Sep 17 00:00:00 2001
+From: Waldemar Brodkorb <wbx@openadk.org>
+Date: Wed, 15 Apr 2015 12:47:57 -0500
+Subject: [PATCH] fix static linking of pthread apps
+
+When compiling python you get duplicate symbol problem.
+Seen in the autobuilders of buildroot project.
+
+Signed-off-by: Waldemar Brodkorb <wbx@uclibc-ng.org>
+---
+ libc/sysdeps/linux/common/setregid.c | 2 +-
+ libc/sysdeps/linux/common/setresgid.c | 4 ++--
+ libc/sysdeps/linux/common/setresuid.c | 4 ++--
+ 3 files changed, 5 insertions(+), 5 deletions(-)
+
+diff --git a/libc/sysdeps/linux/common/setregid.c b/libc/sysdeps/linux/common/setregid.c
+index 15d590a..aaa7293 100644
+--- a/libc/sysdeps/linux/common/setregid.c
++++ b/libc/sysdeps/linux/common/setregid.c
+@@ -37,4 +37,4 @@ int setregid(gid_t rgid, gid_t egid)
+ }
+ #endif
+
+-libc_hidden_def(setregid)
++libc_hidden_weak(setregid)
+diff --git a/libc/sysdeps/linux/common/setresgid.c b/libc/sysdeps/linux/common/setresgid.c
+index 95decc2..b6d1647 100644
+--- a/libc/sysdeps/linux/common/setresgid.c
++++ b/libc/sysdeps/linux/common/setresgid.c
+@@ -16,7 +16,7 @@
+ # define __NR_setresgid __NR_setresgid32
+
+ _syscall3(int, setresgid, gid_t, rgid, gid_t, egid, gid_t, sgid)
+-libc_hidden_def(setresgid)
++libc_hidden_weak(setresgid)
+
+ #elif defined(__NR_setresgid)
+
+@@ -34,7 +34,7 @@ int setresgid(gid_t rgid, gid_t egid, gid_t sgid)
+ }
+ return (__syscall_setresgid(rgid, egid, sgid));
+ }
+-libc_hidden_def(setresgid)
++libc_hidden_weak(setresgid)
+
+ #endif
+
+diff --git a/libc/sysdeps/linux/common/setresuid.c b/libc/sysdeps/linux/common/setresuid.c
+index 022ccfe..a2a2183 100644
+--- a/libc/sysdeps/linux/common/setresuid.c
++++ b/libc/sysdeps/linux/common/setresuid.c
+@@ -16,7 +16,7 @@
+ # define __NR_setresuid __NR_setresuid32
+
+ _syscall3(int, setresuid, uid_t, ruid, uid_t, euid, uid_t, suid)
+-libc_hidden_def(setresuid)
++libc_hidden_weak(setresuid)
+
+ #elif defined(__NR_setresuid)
+
+@@ -34,7 +34,7 @@ int setresuid(uid_t ruid, uid_t euid, uid_t suid)
+ }
+ return (__syscall_setresuid(ruid, euid, suid));
+ }
+-libc_hidden_def(setresuid)
++libc_hidden_weak(setresuid)
+
+ #endif
+
+--
+2.3.2 (Apple Git-55)
+