Subject: | The Makefile.PL does not properly set the library path on a mac. A patch is attached. |
The Makefile.PL does not properly set the library path on a mac. A
patch is attached.
Subject: | macfix.patch |
--- Makefile.PL.brk 2009-04-20 17:31:17.000000000 -0400
+++ Makefile.PL 2009-04-20 17:32:15.000000000 -0400
@@ -46,6 +46,14 @@ elsif ($Config{osname} eq 'solaris' or $
$libs_guess ='-lCrun';
}
}
+elsif ($Config{osname} eq 'darwin'){
+ my $stdlib_query = 'find /usr/lib/gcc -name "libstdc++*" | grep $( uname -p )';
+ my $stdcpp = `$stdlib_query`;
+ $stdcpp =~ s/^(.*)\/[^\/]+$/$1/;
+
+ $cc_guess = 'g++';
+ $libs_guess = "-L$stdcpp -lstdc++";
+}
# Sane defaults for other (probably unix-like) operating systems
else {
$cc_guess = 'g++';