From: Brecht S. <br...@sa...> - 2009-09-08 12:41:27
|
Brecht Sanders wrote: > >>> I looked into that, but couldn't find that option anywhere in the --help >>> of gcc, g++ or ld. >>> >> >> It's in the readme (or release notes?) >> >> > Any reason why it's not in --help (or -v --help)? >>> Where should that parameter go exactly, and how do I pass it on when >>> building with ./configure? >>> >> >> something like: gcc -static-libgcc -o a a.c >> >> for using with ./configure: ./configure CFLAGS=-static-libgcc >> > Just tried it with a small project, but my .exe still depends on > LIBGCC_S_DW2-1.DLL. > Hmm, just tried another project with -static-libgcc as *linker* option and this did remove the dependancy. So maybe it shouldn't be used around gcc -o or CFLAGS, but rather in LDFLAGS. |