[BACK]Return to patch-hints_darwin.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / lang / perl5 / patches

File: [cvs.NetBSD.org] / pkgsrc / lang / perl5 / patches / Attic / patch-hints_darwin.sh (download)

Revision 1.5, Sat Nov 22 15:45:41 2014 UTC (4 years, 10 months ago) by bsiegert
Branch: MAIN
CVS Tags: pkgsrc-2015Q1-base, pkgsrc-2015Q1, pkgsrc-2014Q4-base, pkgsrc-2014Q4
Changes since 1.4: +17 -9 lines

Declare MACOSX_DEPLOYMENT_TARGET for versions from 10.3 to 10.5 to fix
the build.

Patch provided by Sevan Janiyan in PR pkg/49394.

$NetBSD: patch-hints_darwin.sh,v 1.5 2014/11/22 15:45:41 bsiegert Exp $

MACOSX_DEVELOPMENT_TARGET is required on version of OS X pre 10.6
See Perl bug #117433

--- hints/darwin.sh.orig	2014-09-14 11:31:02.000000000 +0000
+++ hints/darwin.sh
@@ -185,13 +185,16 @@ case "$osvers" in
    ldflags="${ldflags} -flat_namespace"
    lddlflags="${ldflags} -bundle -undefined suppress"
    ;;
-*) 
+[7-9].*)
    lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
    case "$ld" in
        *MACOSX_DEVELOPMENT_TARGET*) ;;
        *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
    esac
    ;;
+*)
+   lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
+   ;;
 esac
 ldlibpthname='DYLD_LIBRARY_PATH';