Files
MINGW-packages/mingw-w64-libiff/0001-libiff-fix-shared-library.patch
Biswapriyo Nath 2ba0d2a89a libiff: Fix building shared library
* Add -no-undefined option to build shared library.
* Add -export-symbols options with libiff.def file to export proper APIs.
* Remove LIBRARY name in libiff.def to use proper name in import library.
2023-07-31 00:18:03 +05:30

15 lines
575 B
Diff

--- a/src/libiff/Makefile.am
+++ b/src/libiff/Makefile.am
@@ -1,3 +1,4 @@
lib_LTLIBRARIES = libiff.la
pkginclude_HEADERS = io.h id.h extension.h chunk.h group.h cat.h form.h list.h prop.h rawchunk.h util.h error.h iff.h ifftypes.h
libiff_la_SOURCES = io.c id.c extension.c chunk.c group.c cat.c form.c list.c prop.c rawchunk.c util.c error.c iff.c
+libiff_la_LDFLAGS = -no-undefined -export-symbols libiff.def
--- a/src/libiff/libiff.def
+++ b/src/libiff/libiff.def
@@ -1,4 +1,3 @@
-LIBRARY libiff
EXPORTS
IFF_readFd @1
IFF_read @2