summaryrefslogtreecommitdiff
path: root/emulators/hercules4sdl/patches/patch-Makefile.am
diff options
context:
space:
mode:
Diffstat (limited to 'emulators/hercules4sdl/patches/patch-Makefile.am')
-rw-r--r--emulators/hercules4sdl/patches/patch-Makefile.am44
1 files changed, 44 insertions, 0 deletions
diff --git a/emulators/hercules4sdl/patches/patch-Makefile.am b/emulators/hercules4sdl/patches/patch-Makefile.am
new file mode 100644
index 00000000000..9973c2eae76
--- /dev/null
+++ b/emulators/hercules4sdl/patches/patch-Makefile.am
@@ -0,0 +1,44 @@
+$NetBSD: patch-Makefile.am,v 1.1 2021/11/06 16:43:23 rhialto Exp $
+
+* Fix build. Use devel/libltdl instead of internal libltdl.
+- Build dynamic modules only dynamic (-shared), not also static.
+
+--- Makefile.am.orig 2020-11-27 18:45:12.000000000 +0000
++++ Makefile.am
+@@ -11,7 +11,7 @@ extpkg_headers = @EXTPKG_HEADERS@
+ extpkg_ldadd = @EXTPKG_LDADD@
+ hqa_inc = @HQA_INC@
+ lns = @LN_S@
+-ldadd = @LIBS@
++ldadd = @LIBS@ -lltdl
+
+ #------------------------------------------------------------------------------
+
+@@ -142,9 +142,9 @@ dyndev_SRC = \
+ # to Windows DLLs
+ #-----------------------------------------------------------------
+
+-XSTATIC =
++XSTATIC = -shared
+ DYNSRC =
+-LTDL = ltdl.c
++LTDL =
+
+ DYNMOD_LD_FLAGS = \
+ -module \
+@@ -512,7 +512,6 @@ libherc_la_SOURCES = \
+ $(DYNSRC)
+
+ EXTRA_libherc_la_SOURCES = \
+- ltdl.c \
+ memrchr.c \
+ $(dynamic_SRC) \
+ $(dyndev_SRC) \
+@@ -956,7 +955,6 @@ noinst_HEADERS = \
+ instfmts.h \
+ linklist.h \
+ logger.h \
+- ltdl.h \
+ machdep.h \
+ memrchr.h \
+ mpc.h \