This is the mail archive of the cygwin-apps 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] |
Reini Urban wrote: | I tried both ways. | The standard perl way with Win32CORE.a explicitly added to | the linker line via $Config{static_ext}, and
Of course, but that makes things difficult when linking *other packages* against libperl with libtool. libtool won't link a shared library against a static one on Cygwin, so if DynaLoader.a and Win32CORE.a are among LIBS, libtool will complain, drop them, and the link will fail due to undefined symbols boot_{DynaLoader,Win32CORE).
I don't want, nor need, perl to be built with libtool. All I want is to link other packages against libperl with libtool.
I see. To summarize: DynaLoader.o is contained in libperl.dll.a, Win32CORE.a not. ExtUtils::Embed ldopts is correct, but not libtool compatible.
Note: the next -e 'cmd' looks weird, but is needed for the -e one-liner. $ perl5.10.0d -MExtUtils::Embed -e'ccflags; print ldopts(1)'
libtool will not link a dynamic lib with a static lib, but ld does. Hmm. Is this really true? Do you have an example? perl-5.8.8 had the very same issue, there was even DynaLoader.a needed.
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |