[perl] Portably linking to libstdc++
Thu Oct 16 06:40:00 GMT 2008
On linux, I can have my perl distro link to libstdc++ by simply specifying
(in the Makefile.PL's %WriteMakefile) :
LIBS => ['-lstdc++'],
And, for MinGW-built perls on Win32, the same construct works.
For Cygwin, it seems that is not sufficient (as the directory that houses
libstdc++.a is apparently not searched by default). Instead, Cygwin needs
LIBS => ['-L/lib/gcc/i686-pc-cygwin/3.4.4 -lstdc++'],
But that doesn't look very portable across different Cygwin installations.
(I'm looking mainly at the '3.4.4', and thinking that not every Cygwin
installation will have such a directory.)
How do I write that LIBS assignment so that it would be portable across
different *Cygwin* installations ?
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html
More information about the Cygwin