Ticket #34570: patch-hints_darwin.sh.diff

File patch-hints_darwin.sh.diff, 1.5 KB (added by BjarneDMat, 12 years ago)

modifed for perl5.16

  • hints/darwin.sh

    old new esac 
    143143
    144144# Shared library extension is .dylib.
    145145# Bundle extension is .bundle.
    146 ld='cc';
    147146so='dylib';
    148147dlext='bundle';
    149148usedl='define';
    case "$osvers" in 
    181180   ldflags="${ldflags} -flat_namespace"
    182181   lddlflags="${ldflags} -bundle -undefined suppress"
    183182   ;;
     1839.*)
     184   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
     185   case "$ld" in
     186       *MACOSX_DEVELOPMENT_TARGET*) ;;
     187       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.5 ${ld}" ;;
     188   esac
     189   ;;
     19010.*)
     191   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
     192   case "$ld" in
     193       *MACOSX_DEVELOPMENT_TARGET*) ;;
     194       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.6 ${ld}" ;;
     195   esac
     196   ;;
     19711.*)
     198   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
     199   case "$ld" in
     200       *MACOSX_DEVELOPMENT_TARGET*) ;;
     201       *) ld="env MACOSX_DEPLOYMENT_TARGET=10.7 ${ld}" ;;
     202   esac
     203   ;;
    184204*)
    185205   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
    186206   case "$ld" in
    esac 
    262262;;
    263263esac
    264264
     265# When the bind9 port is installed, its libbind includes dups from
     266# /usr/lib/libdl, so remove libbind
     267libswanted=`echo $libswanted | sed 's/ bind / /'`
     268
    265269##
    266270# System libraries
    267271##
    ranlib='ranlib' 
    326350# makefile in the same place.  Since Darwin uses GNU make, this dodges
    327351# the problem.
    328352firstmakefile=GNUmakefile;
     353
     354usenm='false'