This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
For Darwin MacPorts add the gcc/g++ libdir.
authorJarkko Hietaniemi <jhi@iki.fi>
Fri, 22 Aug 2014 16:31:59 +0000 (12:31 -0400)
committerJarkko Hietaniemi <jhi@iki.fi>
Fri, 22 Aug 2014 19:01:05 +0000 (15:01 -0400)
hints/darwin.sh

index 724fb36..7f555ff 100644 (file)
@@ -331,6 +331,11 @@ i_dbm=undef;
 # NeilW says this should be acceptable on all darwin versions.
 ranlib='ranlib'
 
+# Catch MacPorts gcc/g++ extra libdir
+case "$($cc -v 2>&1)" in
+*"MacPorts gcc"*) loclibpth="$loclibpth /opt/local/lib/libgcc" ;;
+esac
+
 ##
 # Build process
 ##