summaryrefslogtreecommitdiffstats
path: root/patches/perl-5.18.2/0001-It-s-lpthread-not-lpthreads.patch
blob: 319cefb2eaef11bed25b728031375004d9b0c9cc (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
From: Michael Olbrich <m.olbrich@pengutronix.de>
Date: Wed, 23 Apr 2014 09:02:25 +0200
Subject: [PATCH] It's -lpthread not -lpthreads

Otherwise linking fails with missing pthread symbols when building with
with -Dusethreads
---
 cnf/configure_libs.sh | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cnf/configure_libs.sh b/cnf/configure_libs.sh
index f45d31c..cca73e5 100644
--- a/cnf/configure_libs.sh
+++ b/cnf/configure_libs.sh
@@ -53,7 +53,7 @@ if not hinted 'perllibs'; then
 				appendvar '_libs' "$i" ;;
 			-ldl)
 				test "$usedl" != 'undef' && appendvar '_libs' "$i" ;;
-			-lpthreads)
+			-lpthread)
 				test "$usethreads" != 'undef' && appendvar '_libs' "$i" ;;
 			# For a static build, -lgdbm and friends are assumed to be in ext.libs
 		esac