Skip to content

Commit

Permalink
When compiling with mingw, LD needs parameter "-no-undefined" to crea…
Browse files Browse the repository at this point in the history
…te shared library (DLL) (#18)

Co-authored-by: Martin Hauke <[email protected]>
  • Loading branch information
mywave82 and mnhauke authored Feb 5, 2024
1 parent 841e61e commit 0db79bb
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 0db79bb

Please sign in to comment.