You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gentoo-overlay/dev-perl/Proc-ProcessTable/files/0.45-pthread.patch

16 lines
476 B

https://rt.cpan.org/Public/Bug/Display.html?id=46861
--- Proc-ProcessTable-0.45/hints/linux.pl
+++ Proc-ProcessTable-0.45/hints/linux.pl
@@ -1 +1,11 @@
+# We might have a non-threading perl, which doesn't add this
+# necessary link option.
+use Config;
+my $thread_lib = "-lpthread";
+
+if( $Config{libs} !~ /$thread_lib/ ) {
+ $self->{LIBS} ||= [];
+ push @{ $self->{LIBS} }, $thread_lib;
+}
+
symlink "os/Linux.c", "OS.c" || die "Could not link os/Linux.c to os/OS.c\n";