Re: bugzilla.redhat bug #101767 (threads, threads::shared)
authorAlexey Tourbin <at@altlinux.ru>
Sat, 19 Mar 2005 06:10:45 +0000 (09:10 +0300)
committerRafael Garcia-Suarez <rgarciasuarez@gmail.com>
Mon, 21 Mar 2005 09:59:13 +0000 (09:59 +0000)
Message-ID: <20050319031045.GN12596@solemn.turbinal.org>

p4raw-id: //depot/perl@24050

MANIFEST
ext/threads/hints/linux.pl [new file with mode: 0644]
ext/threads/shared/hints/linux.pl [new file with mode: 0644]

index 7330ef3..9874f0d 100644 (file)
--- 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 (file)
index 0000000..020f56d
--- /dev/null
@@ -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 (file)
index 0000000..020f56d
--- /dev/null
@@ -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/;