From 84a5a45c75e998d94c40f85c5e67ef62bd981c25 Mon Sep 17 00:00:00 2001 From: jlam Date: Fri, 12 Nov 2004 06:39:19 +0000 Subject: Remove redundant uses of PTHREAD_{CFLAGS,LDFLAGS} now that they're added automatically by pthread.buildlink3.mk. Also, factor out the pthread library out of PTHREAD_LDFLAGS into a standalone variable PTHREAD_LIBS and use it in packages where necessary (usually the ones that don't have a GNU configure script). --- net/ORBit/Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'net/ORBit/Makefile') diff --git a/net/ORBit/Makefile b/net/ORBit/Makefile index 936752e58b8..74f0f4ee8a8 100644 --- a/net/ORBit/Makefile +++ b/net/ORBit/Makefile @@ -1,4 +1,4 @@ -# $NetBSD: Makefile,v 1.107 2004/10/03 00:17:48 tv Exp $ +# $NetBSD: Makefile,v 1.108 2004/11/12 06:39:20 jlam Exp $ # DISTNAME= ORBit-0.${ORBIT_MAJOR}.${ORBIT_MINOR} @@ -30,8 +30,6 @@ CONFIGURE_ENV+= LIB_WRAP="-lwrap" PKGCONFIG_OVERRIDE+= ORBit.pc.in PKGCONFIG_OVERRIDE+= libIDL/libIDL.pc.in -CPPFLAGS+= -D_POSIX_THREAD_SYSCALL_SOFT=1 - # for DISTNAME, PKGNAME ORBIT_MAJOR= 5 ORBIT_MINOR= 15 @@ -43,4 +41,8 @@ INFO_FILES= libIDL.info .include "../../security/tcp_wrappers/buildlink3.mk" .include "../../mk/pthread.buildlink3.mk" +.if ${PTHREAD_TYPE} != "native" +CPPFLAGS+= -D_POSIX_THREAD_SYSCALL_SOFT=1 +.endif + .include "../../mk/bsd.pkg.mk" -- cgit v1.2.3