summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authormarino <marino>2012-09-02 09:33:32 +0000
committermarino <marino>2012-09-02 09:33:32 +0000
commit49816c54156707ed5d6318e5d53833ec6a1a8309 (patch)
tree5415de2b90cf5bf177dd03a669afe43aa0813541 /emulators
parent2bb577426442a6cb8af470ae092046a86bf8affd (diff)
downloadpkgsrc-49816c54156707ed5d6318e5d53833ec6a1a8309.tar.gz
emulators/openmsx: Fix linkpkgsrc circular reference
Probably this was a problem for non-gcc / non-clang compilers, but such a compiler wasn't tested. When lintpkgsrc tried to scan this package, it spun around forever. Rewrite the CXX override code so this doesn't happen. Fixes lintpkgsrc scan and probably build for rarer compilers as well.
Diffstat (limited to 'emulators')
-rw-r--r--emulators/openmsx/Makefile9
1 files changed, 3 insertions, 6 deletions
diff --git a/emulators/openmsx/Makefile b/emulators/openmsx/Makefile
index 66f7393cd57..bc07f1524b3 100644
--- a/emulators/openmsx/Makefile
+++ b/emulators/openmsx/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.33 2012/08/26 09:07:21 marino Exp $
+# $NetBSD: Makefile,v 1.34 2012/09/02 09:33:32 marino Exp $
#
DISTNAME= openmsx-0.9.0
@@ -30,13 +30,10 @@ MAKE_ENV+= OPENMSX_INSTALL=${PREFIX}/openmsx
.if "${PKGSRC_COMPILER}" == "clang"
# As a result of predefining CXX, .wrapper/bin/clang++ is automatically
# hardlinked to c++, g++, which is exactly what we what!
-CXX_OVERRIDE=clang++
+CXX=clang++
.elif "${PKGSRC_COMPILER}" == "gcc"
-CXX_OVERRIDE=g++
-.else
-CXX_OVERRIDE=${CXX}
+CXX=g++
.endif
-CXX=${CXX_OVERRIDE}
post-extract:
${CP} ${WRKSRC}/build/platform-freebsd.mk \