From 83fac84d499abb25f1d93b9cce214a6daeca6e7d Mon Sep 17 00:00:00 2001 From: Mark Linimon Date: Mon, 2 Jul 2018 03:08:57 +0000 Subject: Attempt to see if the build can be fixed on non-clang-based archs. Approved by: portmgr (tier-2 blanket) --- emulators/simh/Makefile | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'emulators') diff --git a/emulators/simh/Makefile b/emulators/simh/Makefile index 6f735ad010bc..03070f68f9e4 100644 --- a/emulators/simh/Makefile +++ b/emulators/simh/Makefile @@ -17,13 +17,11 @@ COMMENT= Emulates classic DEC, HP, GRI, IBM, Altair, SDS, Honeywell, and others LICENSE= BSD3CLAUSE -BROKEN_powerpc64= fails to compile: cc1: error: unrecognized command line option "-Wno-logical-op-parentheses" - NO_WRKSUBDIR= yes USES= gmake dos2unix zip DOS2UNIX_GLOB= *.c *.h *.txt *.mak *.ini makefile -CFLAGS+= -Wno-format-extra-args -Wno-comment -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-shift-negative-value +CFLAGS+= -Wno-format-extra-args -Wno-comment MAKE_ENV= GCC="${CC}" CFLAGS_O="${CFLAGS}" USE_NETWORK=1 MAKEFILE= makefile @@ -34,6 +32,12 @@ PORTDOCS= ${READMES} pdf/* OPTIONS_DEFINE= DOCS +.include + +.if ${ARCH} == aarch64 || ${ARCH} == amd64 || ${ARCH} == armv6 || ${ARCH} == armv7 || ${ARCH} == i386 +CFLAGS+= -Wno-logical-op-parentheses -Wno-bitwise-op-parentheses -Wno-shift-negative-value +.endif + pre-patch: @${MKDIR} ${WRKSRC}/BIN @@ -61,4 +65,4 @@ do-install-DOCS-on: (cd ${WRKSRC} && ${INSTALL_DATA} ${READMES} ${STAGEDIR}${DOCSDIR}) (cd ${WRKSRC} && ${COPYTREE_SHARE} pdf ${STAGEDIR}${DOCSDIR}) -.include +.include -- cgit v1.2.3