This is the mail archive of the
cygwin@cygwin.com
mailing list for the Cygwin project.
Re: The Black Art of DLL Creation (revisited)
Hallo,
[...]
> passes it to ld:
> $command ="$CC -shared -o $dllname";
> # $command .=" --verbose" if $verbose;
> $command .=" -Wl,--output-def=$libname$DEF_EXT" if $DEF_EXT;
> $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT;
> $command .=" -Wl,--out-implib=$libname.dll$LIB_EXT" if $LIB_EXT;
> $command .=" -Wl,--export-all-symbols" if $EXPORT_ALL;
> $command .=" -Wl,--enable-auto-import -Wl,--stack,8388608"; # always
> There should be correct .def and .exp files then.
This is also not correct...it seems ld doesn't support creating .exp
libraries or it is done in a different way?
So: $command .=" -Wl,--output-exp=$libname$EXP_EXT" if $EXP_EXT;
doesn't work with gcc -shared.
Gerrit
--
=^..^=
--
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Bug reporting: http://cygwin.com/bugs.html
Documentation: http://cygwin.com/docs.html
FAQ: http://cygwin.com/faq/