diff options
author | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-13 22:06:13 -0400 |
---|---|---|
committer | Jarkko Hietaniemi <jhi@iki.fi> | 2014-09-14 11:48:40 -0400 |
commit | 44b62df7ceb322e1e0484f45065025f0a709303c (patch) | |
tree | 6e346732714b6f6cb8e828a1890fa3b65207e19b /hints/darwin.sh | |
parent | e38461cce711cd161282d84c00c0cf3d718390fe (diff) | |
download | perl-44b62df7ceb322e1e0484f45065025f0a709303c.tar.gz |
Darwin: if cc is explicitly gcc/g++, use it also as ld.
Diffstat (limited to 'hints/darwin.sh')
-rw-r--r-- | hints/darwin.sh | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/hints/darwin.sh b/hints/darwin.sh index f8e280dbcc..35614a24e1 100644 --- a/hints/darwin.sh +++ b/hints/darwin.sh @@ -174,7 +174,11 @@ esac # Allow the user to override ld, but modify it as necessary below case "$ld" in - '') ld='cc';; + '') case "$cc" in + gcc*|g++*) ld="$cc" ;; + *) ld='cc';; + esac + ;; esac # Perl bundles do not expect two-level namespace, added in Darwin 1.4. |