Issues in using a MinGW build
by Ari Jolma other posts by this author
Jun 5 2006 9:50AM messages near this date
view in the new Beta List Site
Need help on a Perl 5.6 - 5.8 porting issue.
|
Perl for x64.
Hello,
I recently compiled and used Perl in a MinGW (not MSYS) environment. The
compilation and installation was relatively straight-forward using these
instructions: http://www.adp-gmbh.ch/blog/2004/october/9.html
I then used the installation for compiling and installing a number of
Perl modules, including Gtk2. My notes are here:
http://map.hut.fi/PerlForGeoinformatics/Install.MinGW the main points are:
* I fixed the file Config_heavy.pl in the Perl distribution to use
-shared instead of -mdll for lddlflags.
* I fixed the ExtUtils/Liblist/Kid.pm to recognize library names like
lib*.dll.a (the patch is at the above page)
* I needed a parameter like dynamic_lib =>
{OTHERLDFLAGS=> "-Wl,--out-implib=blib\\arch\\auto\\$lib\\lib$lib.dll.a
"}to WriteMakefile when the module contained a dll
* the previous parameter makes gcc generate lib*.dll.a files into
arch/auto directory, they need to be used in linking, i.e., there must
be a corresponding -l*.dll in the LIBS if the module being compiled
contains a dll also
* the Makefiles that are produced by Makefile.PL had to be repaired with
s/\{\{/\{/g;
I'm not very knowledgeable about windows nor gcc, but the above things
seem to work. Maybe somebody maintaining the windows port could comment
and/or do the fixes in Perl? I'm using Perl 5.8.8.
Regards,
Ari
--
Prof. Ari Jolma
Kartografia ja Geoinformatiikka / Cartography and Geoinformatics
Teknillinen Korkeakoulu / Helsinki University of Technology
POBox 1200, 02015 TKK, Finland
Email: ari.jolma at tkk.fi URL: http://www.tkk.fi/~jolma
_______________________________________________
Perl-Win32-Porters mailing list
Perl-Win32-Porters@[...].com
To unsubscribe: http://listserv.ActiveState.com/mailman/mysubs
|