pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/x11 Fix build on OSF1.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/881205ddba0c
branches:  trunk
changeset: 542664:881205ddba0c
user:      tnn <tnn%pkgsrc.org@localhost>
date:      Sat May 24 20:15:46 2008 +0000

description:
Fix build on OSF1.
If including <pthread.h>, it is mandatory to compile with -pthread.

diffstat:

 x11/libX11/Makefile |  4 +++-
 x11/libXau/Makefile |  4 +++-
 x11/libXt/Makefile  |  4 +++-
 3 files changed, 9 insertions(+), 3 deletions(-)

diffs (54 lines):

diff -r 29bb90316437 -r 881205ddba0c x11/libX11/Makefile
--- a/x11/libX11/Makefile       Sat May 24 19:41:48 2008 +0000
+++ b/x11/libX11/Makefile       Sat May 24 20:15:46 2008 +0000
@@ -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 @@
 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 -"
diff -r 29bb90316437 -r 881205ddba0c x11/libXau/Makefile
--- a/x11/libXau/Makefile       Sat May 24 19:41:48 2008 +0000
+++ b/x11/libXau/Makefile       Sat May 24 20:15:46 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.3 2007/03/09 20:26:39 joerg Exp $
+# $NetBSD: Makefile,v 1.4 2008/05/24 20:15:46 tnn Exp $
 #
 
 DISTNAME=              libXau-1.0.3
@@ -21,6 +21,8 @@
 
 PKGCONFIG_OVERRIDE+=   xau.pc.in
 
+CPPFLAGS.OSF1+=                -pthread # Required by compiler if including pthread.h
+
 .include "../../x11/xproto/buildlink3.mk"
 
 .include "../../mk/bsd.pkg.mk"
diff -r 29bb90316437 -r 881205ddba0c x11/libXt/Makefile
--- a/x11/libXt/Makefile        Sat May 24 19:41:48 2008 +0000
+++ b/x11/libXt/Makefile        Sat May 24 20:15:46 2008 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.8 2008/05/16 13:48:41 tnn Exp $
+# $NetBSD: Makefile,v 1.9 2008/05/24 20:15:46 tnn Exp $
 #
 
 DISTNAME=              libXt-1.0.5
@@ -32,6 +32,8 @@
 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 -"



Home | Main Index | Thread Index | Old Index