summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorobache <obache@pkgsrc.org>2014-02-05 08:40:11 +0000
committerobache <obache@pkgsrc.org>2014-02-05 08:40:11 +0000
commita396b58f8dfb3885421243966cdcf461ea96bf16 (patch)
treeecc67d5a98cd7ac2c78c6e2c36f908c99bb00739
parent4ecb76859d1c509543be05835b8fe905ad33b366 (diff)
downloadpkgsrc-a396b58f8dfb3885421243966cdcf461ea96bf16.tar.gz
Restrict CPPFLAGS=-fPIC to clang only, as changed reason.
At least, It break build on NetBSD-i386 with buitin gcc, PR pkg/48538. No build failure on NetBSD-amd64 with builtin gcc.
-rw-r--r--emulators/dosbox/Makefile5
1 files changed, 4 insertions, 1 deletions
diff --git a/emulators/dosbox/Makefile b/emulators/dosbox/Makefile
index 618efe16471..edcdc4cfea1 100644
--- a/emulators/dosbox/Makefile
+++ b/emulators/dosbox/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.37 2013/10/31 15:10:49 wiz Exp $
+# $NetBSD: Makefile,v 1.38 2014/02/05 08:40:11 obache Exp $
DISTNAME= dosbox-0.74
PKGREVISION= 4
@@ -13,7 +13,10 @@ LICENSE= gnu-gpl-v2
USE_LANGUAGES= c c++
GNU_CONFIGURE= yes
CPPFLAGS.SunOS+= -DDISABLE_JOYSTICK
+.include "../../mk/compiler.mk"
+.if !empty(CC_VERSION:Mclang*)
CPPFLAGS+= -fPIC
+.endif
LDFLAGS.SunOS+= -lsocket
INSTALLATION_DIRS= share/doc/dosbox