Skip to content

Commit 44b62df

Browse files
committed
Darwin: if cc is explicitly gcc/g++, use it also as ld.
1 parent e38461c commit 44b62df

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

hints/darwin.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -174,7 +174,11 @@ esac
174174

175175
# Allow the user to override ld, but modify it as necessary below
176176
case "$ld" in
177-
'') ld='cc';;
177+
'') case "$cc" in
178+
gcc*|g++*) ld="$cc" ;;
179+
*) ld='cc';;
180+
esac
181+
;;
178182
esac
179183

180184
# Perl bundles do not expect two-level namespace, added in Darwin 1.4.

0 commit comments

Comments
 (0)