X-Git-Url: https://review.fuel-infra.org/gitweb?a=blobdiff_plain;f=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fuclibc%2F1.0.2%2F0001-fix-static-linking-of-pthread-apps.patch;fp=cirros-testvm%2Fsrc-cirros%2Fbuildroot-2015.05%2Fpackage%2Fuclibc%2F1.0.2%2F0001-fix-static-linking-of-pthread-apps.patch;h=e3e6621631c9dfca9f2c61bb555402fe139d4c49;hb=b0a0f15dfaa205161a7fcb20cf1b8cd4948c2ef3;hp=0000000000000000000000000000000000000000;hpb=c6ac3cd55ee2da956195eee393b0882105dfad4e;p=packages%2Ftrusty%2Fcirros-testvm.git diff --git a/cirros-testvm/src-cirros/buildroot-2015.05/package/uclibc/1.0.2/0001-fix-static-linking-of-pthread-apps.patch b/cirros-testvm/src-cirros/buildroot-2015.05/package/uclibc/1.0.2/0001-fix-static-linking-of-pthread-apps.patch new file mode 100644 index 0000000..e3e6621 --- /dev/null +++ b/cirros-testvm/src-cirros/buildroot-2015.05/package/uclibc/1.0.2/0001-fix-static-linking-of-pthread-apps.patch @@ -0,0 +1,72 @@ +From 74c69da52ad5029cd2fc2d3d41d581022ed0a7aa Mon Sep 17 00:00:00 2001 +From: Waldemar Brodkorb +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 +--- + 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) +