summaryrefslogtreecommitdiff
path: root/emulators/hercules
diff options
context:
space:
mode:
authorrhialto <rhialto@pkgsrc.org>2021-11-16 17:18:05 +0000
committerrhialto <rhialto@pkgsrc.org>2021-11-16 17:18:05 +0000
commit45168a4e1b51a7e6b58e41924a3c8ae0ddd08923 (patch)
tree745062d8c4cdea4367115ff58ccfda5c9faac322 /emulators/hercules
parent70474906c02a8f4f5dec2d030f9984d1e3f8a996 (diff)
downloadpkgsrc-45168a4e1b51a7e6b58e41924a3c8ae0ddd08923.tar.gz
emulators/hercules: unbreak the build on Darwin.
Same fix as for hercules4sdl. No revbump needed since the change is limited to Darwin, where no built package previously existed (at least for Darwin 20.6.0 which I tested).
Diffstat (limited to 'emulators/hercules')
-rw-r--r--emulators/hercules/Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/emulators/hercules/Makefile b/emulators/hercules/Makefile
index 36422f80e34..75566f19a59 100644
--- a/emulators/hercules/Makefile
+++ b/emulators/hercules/Makefile
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.44 2021/05/24 19:52:10 wiz Exp $
+# $NetBSD: Makefile,v 1.45 2021/11/16 17:18:05 rhialto Exp $
DISTNAME= hercules-3.13
PKGREVISION= 2
@@ -23,6 +23,11 @@ PTHREAD_OPTS+= require
REPLACE_PERL+= util/bldlvlck
USE_TOOLS+= perl:run
+# There is a configure check that uses C++ to check if the compiler is
+# GNU, and on Darwin it thinks GNU C++ is needed to create shared
+# libraries, even though no actual C++ is used. Or something.
+CONFIGURE_ENV.Darwin+= ac_cv_cxx_compiler_gnu=yes
+
INSTALLATION_DIRS+= bin share/examples/hercules
#CONFIGURE_ARGS+= --enable-setuid-hercifc=hercules
#SPECIAL_PERMS+= ${PREFIX}/bin/hercifc ${SETUID_ROOT_PERMS}