summaryrefslogtreecommitdiff
path: root/x11/libX11/Makefile
diff options
context:
space:
mode:
authortnn <tnn>2008-05-24 20:15:46 +0000
committertnn <tnn>2008-05-24 20:15:46 +0000
commita129a4fd224bc20866472cc58bb9b205746cc3bb (patch)
treee79d4a7d64599c7488bdd333f7cd1ff9a00efd9c /x11/libX11/Makefile
parentcf26f6861c1be220a3bb1b744977d0c5b1813630 (diff)
downloadpkgsrc-a129a4fd224bc20866472cc58bb9b205746cc3bb.tar.gz
Fix build on OSF1.
If including <pthread.h>, it is mandatory to compile with -pthread.
Diffstat (limited to 'x11/libX11/Makefile')
-rw-r--r--x11/libX11/Makefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/x11/libX11/Makefile b/x11/libX11/Makefile
index 6cf2a2fa3c7..7c92777d4d1 100644
--- a/x11/libX11/Makefile
+++ b/x11/libX11/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.12 2008/05/16 13:48:41 tnn Exp $
+# $NetBSD: Makefile,v 1.13 2008/05/24 20:15:46 tnn Exp $
#
DISTNAME= libX11-1.1.4
@@ -34,6 +34,8 @@ CONFIGURE_ARGS+= --disable-malloc0returnsnull
MAKE_ENV+= CC_FOR_BUILD=${NATIVE_CC:Q} CPPFLAGS_FOR_BUILD=-I${PREFIX}/include
.endif
+CPPFLAGS.OSF1+= -pthread # Required by compiler if including pthread.h
+
.include "../../mk/compiler.mk"
.if !empty(PKGSRC_COMPILER:Mhp)
CONFIGURE_ENV+= ac_cv_path_RAWCPP="cc -E -Uunix -"