At http://www.cygwin.com/ml/cygwin/2008-01/msg00158.html Charles Wilson said:
> With -static, -lxxx only looks for: > > libxxx.a > xxx > > > Note that, oddly, in -static mode a MS-style library name "xxx.lib" > will be ignored, while in (normal) mode it will be used if found (and > the other patterns ahead of it are not found). Just an odd little quirk. That's not right. In -static mode, the binutils/ld/emultempl/pe.em function: gld_${EMULATION_NAME}_find_potential_libraries will (failing to find lib*.a) find *.lib as static archives To test, just rename libkernel32.a to kernel32.lib (import libs are just special static archives) and build a simple 'hello_world.c' testcase with -static Danny -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Problem reports: http://cygwin.com/problems.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/