Hi all,
I'm using i686-w64-mingw32-gcc-4.9 installed from the Debian unstable
package (gcc-mingw-w64-i686 4.9.1-7+14.2) to build libsndfile. My aim
is to get a libsndfile-1.dll which depends on nothing more than
KERNEL32.dll, msvcrt.dll and USER32.dll.
Unfortunately, it ends up depending on .. After some
googling came across the suggestion to use -static-libgcc as follows
(from my Makefile,.am):
libsndfile_la_LDFLAGS = -static-libgcc -no-undefined $(SHARED_VERSION_INFO)
libsndfile_la_SOURCES = $(FILESPECIFIC) $(noinst_HEADERS)
nodist_libsndfile_la_SOURCES = $(nodist_include_HEADERS)
libsndfile_la_LIBADD = GSM610/libgsm.la G72x/libg72x.la ALAC/libalac.la \
libcommon.la $(EXTERNAL_LIBS) -lm
but I still can't get rid of the libgcc_s_sjlj-1.dll dependency.
I tried a number of things suggested by user @GhostlyDeath on the IRC channel
but we couldn't get to the bottom of it.
Related information:
* All C code, no C++.
* The libsndfile DLL is built with some static autotool helper libraries
but otherwise should only depend on KERNEL32.dll/msvcrt.dll/USER32.dll.
* Simple 'hello world' binary does not depend on libgcc_s_sjlj-1.dll.
* The library uses a couple of WinAPI functions like OpenFile/CloseFile/
ReadFile etc
Any clues?
Cheers,
Erik
--
----------------------------------------------------------------------
Erik de Castro Lopo
http://www.mega-nerd.com/
------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Mingw-w64-public mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public