summaryrefslogtreecommitdiff
path: root/lang
diff options
context:
space:
mode:
authordsainty <dsainty>2011-09-20 11:31:13 +0000
committerdsainty <dsainty>2011-09-20 11:31:13 +0000
commit4669c5b6c2efaf0d4476b301bb768c53284cdfa1 (patch)
tree49c5667a76c2e209adacdb324ab1877fe5f8ab8d /lang
parent2d8844b407d7c3bdd84937d41336144c64580668 (diff)
downloadpkgsrc-4669c5b6c2efaf0d4476b301bb768c53284cdfa1.tar.gz
If building with threads support, add PTHREAD_LDFLAGS to LDFLAGS.
Fixes build on Ubuntu 11.04. Unlikely to have an effect on platforms that already built, so no PKGREVISION bump. Ok'd in freeze by wiz@
Diffstat (limited to 'lang')
-rw-r--r--lang/perl5/Makefile3
1 files changed, 2 insertions, 1 deletions
diff --git a/lang/perl5/Makefile b/lang/perl5/Makefile
index 211d39fe42d..7e51a1a55b9 100644
--- a/lang/perl5/Makefile
+++ b/lang/perl5/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.174 2011/09/17 18:51:35 brook Exp $
+# $NetBSD: Makefile,v 1.175 2011/09/20 11:31:13 dsainty Exp $
.include "license.mk"
.include "Makefile.common"
@@ -219,6 +219,7 @@ PKG_SUGGESTED_OPTIONS+= 64bitauto
. include "../../mk/pthread.buildlink3.mk"
CONFIGURE_ARGS+= -Duseithreads
CFLAGS+= ${PTHREAD_CFLAGS}
+LDFLAGS+= ${PTHREAD_LDFLAGS}
LIBSWANTED+= ${PTHREAD_LIBS:M-l*:S/^-l//}
. if ${OBJECT_FMT} == "XCOFF"
PERL5_RPATH_THREAD=-thread