From 25bc99d7d47d201365208a89546ce9585c944a8b Mon Sep 17 00:00:00 2001 From: Stian Skjelstad Date: Mon, 5 Feb 2024 08:55:03 +0100 Subject: [PATCH] When compiling with mingw, LD needs parameter "-no-undefined" to create shared library (DLL) Co-authored-by: Martin Hauke --- src/Makefile.am | 1 + 1 file changed, 1 insertion(+) diff --git a/src/Makefile.am b/src/Makefile.am index cb2acd8..a8cca18 100644 --- a/src/Makefile.am +++ b/src/Makefile.am @@ -3,6 +3,7 @@ lib_LTLIBRARIES = libbinio.la libbinio_la_SOURCES = binio.cpp binfile.cpp binwrap.cpp binstr.cpp libbinio_la_LDFLAGS = -version-info 1:0:0 +libbinio_la_LDFLAGS += -no-undefined # mingw requires this when making shared DLL files pkginclude_HEADERS = binio.h binfile.h binwrap.h binstr.h