summaryrefslogtreecommitdiff
path: root/hints
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2014-03-16 16:18:09 +0100
committerNicholas Clark <nick@ccl4.org>2014-03-16 16:55:31 +0100
commita0f6433d30e7c146a90edcb5eaaf811eaf5f20eb (patch)
tree1d911b4315ce9eb61f36ad51bd12b1140d241c4d /hints
parenta62f0e8c1ab1c91dd26962450e92eba14dfa6e52 (diff)
downloadperl-a0f6433d30e7c146a90edcb5eaaf811eaf5f20eb.tar.gz
On OS X, allow Configure to override $ld with -Dld=...
Since it was added, hints/darwin.sh had been ignoring any user configuration options and unconditionally setting ld='cc'. Instead, it should take a user supplied value if one is given, otherwise defaulting to 'cc'. The strange thing is that this was never noticed when commits cb3fc4263509f28c and 69625aa92a91bf4c (May 2003) which added code which was intended offer alternative behaviour if ld contained MACOSX_DEVELOPMENT_TARGET.
Diffstat (limited to 'hints')
-rw-r--r--hints/darwin.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh
index f9b697b822..7c3f818419 100644
--- a/hints/darwin.sh
+++ b/hints/darwin.sh
@@ -143,7 +143,6 @@ esac
# Shared library extension is .dylib.
# Bundle extension is .bundle.
-ld='cc';
so='dylib';
dlext='bundle';
usedl='define';
@@ -167,6 +166,11 @@ case "$ccdlflags" in # If passed in from command line, presume user knows best
;;
esac
+# Allow the user to override ld, but modify it as necessary below
+case "$ld" in
+ '') ld='cc';;
+esac
+
# 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.
case "$osvers" in