summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlexey Tourbin <at@altlinux.ru>2005-03-19 09:10:45 +0300
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>2005-03-21 09:59:13 +0000
commitda3f33f8c9eb0c2e730aa4a7790e8198a51839ef (patch)
treea1b0584d9cd93a6d7f122cff5ff766c17f5ba999
parentbfed75c6338f0ba740aa210f4b0267e39ca4662b (diff)
downloadperl-da3f33f8c9eb0c2e730aa4a7790e8198a51839ef.tar.gz
Re: bugzilla.redhat bug #101767 (threads, threads::shared)
Message-ID: <20050319031045.GN12596@solemn.turbinal.org> p4raw-id: //depot/perl@24050
-rw-r--r--MANIFEST2
-rw-r--r--ext/threads/hints/linux.pl3
-rw-r--r--ext/threads/shared/hints/linux.pl3
3 files changed, 8 insertions, 0 deletions
diff --git a/MANIFEST b/MANIFEST
index 7330ef3f23..9874f0df1d 100644
--- a/MANIFEST
+++ b/MANIFEST
@@ -842,9 +842,11 @@ ext/Thread/README.threads Notes about multithreading
ext/threads/Changes ithreads
ext/Thread/Semaphore.pmx Threadsafe semaphore
ext/threads/Makefile.PL ithreads
+ext/threads/hints/linux.pl thread shared variables
ext/Thread/specific.tx Test thread-specific user data
ext/threads/README ithreads
ext/threads/shared/Makefile.PL thread shared variables
+ext/threads/shared/hints/linux.pl thread shared variables
ext/threads/shared/README thread shared variables
ext/threads/shared/shared.pm thread shared variables
ext/threads/shared/shared.xs thread shared variables
diff --git a/ext/threads/hints/linux.pl b/ext/threads/hints/linux.pl
new file mode 100644
index 0000000000..020f56d2f7
--- /dev/null
+++ b/ext/threads/hints/linux.pl
@@ -0,0 +1,3 @@
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=101767
+# explicit linking is required to ensure the use of versioned symbols
+$self->{LIBS} = ['-lpthread'] if $Config{libs} =~ /-lpthread/;
diff --git a/ext/threads/shared/hints/linux.pl b/ext/threads/shared/hints/linux.pl
new file mode 100644
index 0000000000..020f56d2f7
--- /dev/null
+++ b/ext/threads/shared/hints/linux.pl
@@ -0,0 +1,3 @@
+# https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=101767
+# explicit linking is required to ensure the use of versioned symbols
+$self->{LIBS} = ['-lpthread'] if $Config{libs} =~ /-lpthread/;