summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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