Passing flags with mode=link

2014-04-17 Thread Evgeny Grin
Hi, I spend a few hours before I realized that libtool did not pass to linker flags other than -L -l -Wl, and -Xlinker. It's totally confusing as in compile mode libtool pass all flags to compiler. Currently there are no way to pass flags like -static-libgcc to linker except editing makefile/co

(almost) silent creation of static lib instead of dynamic linked lib

2014-04-17 Thread Evgeny Grin
Hi! Libtool always build static lib if dynamic lib can't be created. This behavior is inconsistent with other build tools. For example if GCC can't compile something, it fail with error. If I need a shared lib, this doesn't mean that static lib will satisfy me. When I run configure with "--enable

-no-undefined on Win32

2014-04-17 Thread Evgeny Grin
Hi, It's strange for me that last line in following qoute from ltmain.in is commented out: --- # It is impossible to link a dll without this setting, and # we shouldn't force the makefile maintainer to figure out # what system we are compiling for in order to pass an extra

Forced static lib if any depend lib is static on win32

2014-04-17 Thread Evgeny Grin
Hi! Win32 libs is forced to be static if any dened lib is not shared. If it's done to prevent symbols conflicts on several shared libs with same static lib. But if DEF file is used or dllexport function attribute is used, ld will not export functions from static lib if no "--export-all-symbols"