summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSamuli Suominen <ssuominen@gentoo.org>2010-05-15 12:15:57 +0000
committerSamuli Suominen <ssuominen@gentoo.org>2010-05-15 12:15:57 +0000
commitfa9e6493935de4273f76d50cedf2b11b5807ae49 (patch)
treeda696003be1e9225b0b19ed81eb6ae816669edc3 /dev-libs/protobuf/files
parentPrevent people from doing silly things wrt #319807. (diff)
downloadgentoo-2-fa9e6493935de4273f76d50cedf2b11b5807ae49.tar.gz
gentoo-2-fa9e6493935de4273f76d50cedf2b11b5807ae49.tar.bz2
gentoo-2-fa9e6493935de4273f76d50cedf2b11b5807ae49.zip
Fix building with -Wl,--as-needed wrt #271509 by Kacper Kowalik.
(Portage version: 2.2_rc67/cvs/Linux x86_64)
Diffstat (limited to 'dev-libs/protobuf/files')
-rw-r--r--dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch26
1 files changed, 26 insertions, 0 deletions
diff --git a/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch b/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch
new file mode 100644
index 000000000000..86c4b5976396
--- /dev/null
+++ b/dev-libs/protobuf/files/protobuf-2.3.0-asneeded.patch
@@ -0,0 +1,26 @@
+Fixing as-needed issues
+
+http://bugs.gentoo.org/show_bug.cgi?id=271509
+
+--- m4/acx_pthread.m4
++++ m4/acx_pthread.m4
+@@ -99,7 +99,7 @@
+ # which indicates that we try without any flags at all, and "pthread-config"
+ # which is a program returning the flags for the Pth emulation library.
+
+-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
++acx_pthread_flags="pthreads none pthread -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
+
+ # The ordering *is* (sometimes) important. Some notes on the
+ # individual items follow:
+--- gtest/m4/acx_pthread.m4
++++ gtest/m4/acx_pthread.m4
+@@ -99,7 +99,7 @@
+ # which indicates that we try without any flags at all, and "pthread-config"
+ # which is a program returning the flags for the Pth emulation library.
+
+-acx_pthread_flags="pthreads none -Kthread -kthread lthread -pthread -pthreads -mthreads pthread --thread-safe -mt pthread-config"
++acx_pthread_flags="pthreads none pthread -Kthread -kthread lthread -pthread -pthreads -mthreads --thread-safe -mt pthread-config"
+
+ # The ordering *is* (sometimes) important. Some notes on the
+ # individual items follow: