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
commit5841c40e9b48383f6e24844fcc12a42feac01743 (patch)
tree5415de2b90cf5bf177dd03a669afe43aa0813541 /emulators
parent8a9d41d8f9c03c74d539d06431b6ce00bea706c8 (diff)
downloadpkgsrc-5841c40e9b48383f6e24844fcc12a42feac01743.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 \