pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/emulators/hercules emulators/hercules: unbreak the bui...



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4c1e2eb792de
branches:  trunk
changeset: 769598:4c1e2eb792de
user:      rhialto <rhialto%pkgsrc.org@localhost>
date:      Tue Nov 16 17:18:05 2021 +0000

description:
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:

 emulators/hercules/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 1d2fdf3dce8a -r 4c1e2eb792de emulators/hercules/Makefile
--- a/emulators/hercules/Makefile       Tue Nov 16 17:13:58 2021 +0000
+++ b/emulators/hercules/Makefile       Tue Nov 16 17:18:05 2021 +0000
@@ -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 @@
 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}



Home | Main Index | Thread Index | Old Index