diff options
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. |