summaryrefslogtreecommitdiff
path: root/emulators
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
commit9c7f3f62d7500172b08bb838ab358ed051514061 (patch)
treeecc67d5a98cd7ac2c78c6e2c36f908c99bb00739 /emulators
parent15e302a585d5c422d6128f3f11d9017f539172dc (diff)
downloadpkgsrc-9c7f3f62d7500172b08bb838ab358ed051514061.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.
Diffstat (limited to 'emulators')
-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