Skip to content

Commit e364d6f

Browse files
committed
BSD targets: use cc instead of gcc as the default prepro/asm/linker
Like we did already for AArch64/macOS. BSD and macOS use clang by default; gcc is an external package.
1 parent 94335a5 commit e364d6f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

configure

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -313,9 +313,13 @@ if test "$arch" = "x86" -a "$bitsize" = "32"; then
313313
case "$target" in
314314
bsd)
315315
abi="standard"
316+
cc="${toolprefix}cc"
316317
cc_options="-m32"
318+
casm="${toolprefix}cc"
317319
casm_options="-m32 -c"
320+
clinker="${toolprefix}cc"
318321
clinker_options="-m32"
322+
cprepro="${toolprefix}cc"
319323
cprepro_options="-m32 -U__GNUC__ -E"
320324
system="bsd"
321325
;;
@@ -342,9 +346,13 @@ if test "$arch" = "x86" -a "$bitsize" = "64"; then
342346
case "$target" in
343347
bsd)
344348
abi="standard"
349+
cc="${toolprefix}cc"
345350
cc_options="-m64"
351+
casm="${toolprefix}cc"
346352
casm_options="-m64 -c"
353+
clinker="${toolprefix}cc"
347354
clinker_options="-m64"
355+
cprepro="${toolprefix}cc"
348356
cprepro_options="-m64 -U__GNUC__ -U__SIZEOF_INT128__ -E"
349357
system="bsd"
350358
;;

0 commit comments

Comments
 (0)