diff options
author | Michael G. Schwern <schwern@pobox.com> | 2005-05-10 11:10:47 -0700 |
---|---|---|
committer | H.Merijn Brand <h.m.brand@xs4all.nl> | 2005-05-11 09:39:06 +0000 |
commit | e800eb2ef64b60f7fef69c20beaa3589a131c1c8 (patch) | |
tree | cc8fdea034b73d4bac971ae8dbd9de079bf99578 /hints | |
parent | 37442d52629699d89ef62d315d35efbc0facec21 (diff) | |
download | perl-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.sh | 23 |
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 |