This is a live mirror of the Perl 5 development currently hosted at https://github.com/perl/perl5
On OS X, allow Configure to override $ld with -Dld=...
authorNicholas Clark <nick@ccl4.org>
Sun, 16 Mar 2014 15:18:09 +0000 (16:18 +0100)
committerNicholas Clark <nick@ccl4.org>
Sun, 16 Mar 2014 15:55:31 +0000 (16:55 +0100)
commita0f6433d30e7c146a90edcb5eaaf811eaf5f20eb
tree1d911b4315ce9eb61f36ad51bd12b1140d241c4d
parenta62f0e8c1ab1c91dd26962450e92eba14dfa6e52
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.
hints/darwin.sh