summaryrefslogtreecommitdiff
path: root/emulators
diff options
context:
space:
mode:
authormarino <marino@pkgsrc.org>2012-09-02 09:33:32 +0000
committermarino <marino@pkgsrc.org>2012-09-02 09:33:32 +0000
commit5b2546aaeede836768386a0f2f463c17e7e4a33d (patch)
tree5415de2b90cf5bf177dd03a669afe43aa0813541 /emulators
parent525eec8553491cde86f2a2417402d259076b3f19 (diff)
downloadpkgsrc-5b2546aaeede836768386a0f2f463c17e7e4a33d.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 \