This is the mail archive of the cygwin mailing list for the Cygwin project.

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Problems creating "-mno-cygwin" DLLs with libtool.

Vladius wrote:
I have problems compiling DLLs with -mno-cygwin flag, using libtool.

Command is: libtool --mode=link --tag=CXX g++ -rpath
/Projects/Tests/libtool -mno-cygwin -no-undefined -o common.lo
rm -fr .libs/libcommon.a .libs/ .libs/libcommon.lai
g++ -shared -nostdlib /usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtbegin.o
.libs/common.o -L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3
-L/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/../../.. -lstdc++ -lgcc -lcygwin
-luser32 -lkernel32 -ladvapi32 -lshell32 -lgcc
/usr/lib/gcc-lib/i686-pc-cygwin/3.3.3/crtend.o -mno-cygwin -o
.libs/cygcommon-0.dll -Wl,--image-base=0x10000000
ar cru .libs/libcommon.a common.o
ranlib .libs/libcommon.a
(cd .libs && rm -f && ln -s ../

   As U can see... it automatically passes -lcygwin flag to the
linker(g++). When cygcheck'ing resulting DLL it lists cygwin DLL as one
of its dependencies.
I heard somewhere that cygwin is requierd for DLL initialisation, is it
The interesting thing is that linking against resulting DLL with
so-called "-mno-cygwin -lcygwin" mix results in program startup
failure(no errors, it just hangs).
   Any ideas on how to create cygwin independent DLL with libtool?

But unless it *directly* relates to the special courtesy provision of -mno-cygwin, it's a matter independent of cygwin, and thus independent of this mailing list!

mingw-users might be a better forum.


-- Unsubscribe info: Problem reports: Documentation: FAQ:

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]