summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorMichael G. Schwern <schwern@pobox.com>2005-05-10 11:10:47 -0700
committerH.Merijn Brand <h.m.brand@xs4all.nl>2005-05-11 09:39:06 +0000
commite800eb2ef64b60f7fef69c20beaa3589a131c1c8 (patch)
treecc8fdea034b73d4bac971ae8dbd9de079bf99578 /hints
parent37442d52629699d89ef62d315d35efbc0facec21 (diff)
downloadperl-e800eb2ef64b60f7fef69c20beaa3589a131c1c8.tar.gz
Hints changes for OS X 10.4
Message-ID: <20050511011047.GA23955@windhund.schwern.org> p4raw-id: //depot/perl@24446
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh23
1 files changed, 19 insertions, 4 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index 9223abd7e6..4a9683b9f0 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -137,7 +137,21 @@ esac
ld='cc';
so='dylib';
dlext='bundle';
-dlsrc='dl_dyld.xs'; usedl='define';
+usedl='define';
+
+# 10.4 can use dlopen.
+# 10.4 broke poll().
+case "$osvers" in
+[1-7].*)
+ dlsrc='dl_dyld.xs';
+ ;;
+*)
+ dlsrc='dl_dlopen.xs';
+ d_poll='undef';
+ i_poll='undef';
+ ;;
+esac
+
cccdlflags=' '; # space, not empty, because otherwise we get -fpic
# Perl bundles do not expect two-level namespace, added in Darwin 1.4.
# But starting from perl 5.8.1/Darwin 7 the default is the two-level.
@@ -153,10 +167,11 @@ case "$osvers" in
ldflags="${ldflags} -flat_namespace"
lddlflags="${ldflags} -bundle -undefined suppress"
;;
-*) lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
+*)
+ lddlflags="${ldflags} -bundle -undefined dynamic_lookup"
case "$ld" in
- *MACOSX_DEVELOPMENT_TARGET*) ;;
- *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
+ *MACOSX_DEVELOPMENT_TARGET*) ;;
+ *) ld="env MACOSX_DEPLOYMENT_TARGET=10.3 ${ld}" ;;
esac
;;
esac