Randy W. Sims wrote:
Sisyphus wrote:
g++ -o "blib\arch\auto\GnuMPq.dll" -Wl,--base-file,"GnuMPq.base"
-Wl,--image-base,0x171f0000 -mdll -g -L"D:\perl58_M\5.8.4\lib\CORE"
-L"D:\MinGW\lib" -lgmp ".\GnuMPq.lds" "blib\arch\auto\GnuMPq.exp"
The problem is one of order. The order that libs are listed on the
commandline is important to gcc. If extra_linker_flags were moved after
the linker script file it would work. But, that won't work for BCC &
MSVC; libs must be specified in a different way for their linkers.
M::B needs at least another parameter to specify 'libs' (see MakeMaker
LIBS), and possibly a parameter to specify a 'libpath'. The latter could
be specified in extra_linker_libs, but directory handling could be
cleaner if handled as a seperate param.
Randy.
A temporary solution would be to set: $Config{perllibs} .= ' -lgmp' if
the compiler is gcc.
That produces the error "%Config::Config is read-only". (Yes, the
compiler is gcc.)
I believe you're correct in what you say about the order on the
commandline. I'll try to find a workaround. There must surely be a way
of re-positioning ' -lgmp' to where it's needed.
Cheers,
Rob
-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
|