Merge pull request #1936 from sa2ajj/freebsd-compiler

make FreeBSD's compiler clang
This commit is contained in:
Andreas Rumpf 2015-01-12 16:49:29 +01:00
commit 8bdb7fa408
2 changed files with 8 additions and 2 deletions

View file

@ -100,7 +100,7 @@ hint[LineTooLong]=off
@end @end
@end @end
@if macosx: @if macosx or freebsd:
cc = clang cc = clang
tlsEmulation:on tlsEmulation:on
gcc.options.always = "-w -fasm-blocks" gcc.options.always = "-w -fasm-blocks"

View file

@ -54,10 +54,16 @@ case $uos in
myos="linux" myos="linux"
LINK_FLAGS="$LINK_FLAGS -ldl -lm" LINK_FLAGS="$LINK_FLAGS -ldl -lm"
;; ;;
*freebsd* | *dragonfly* ) *dragonfly* )
myos="freebsd" myos="freebsd"
LINK_FLAGS="$LINK_FLAGS -lm" LINK_FLAGS="$LINK_FLAGS -lm"
;; ;;
*freebsd* )
myos="freebsd"
CC="clang"
LINKER="clang"
LINK_FLAGS="$LINK_FLAGS -ldl -lm"
;;
*openbsd* ) *openbsd* )
myos="openbsd" myos="openbsd"
LINK_FLAGS="$LINK_FLAGS -lm" LINK_FLAGS="$LINK_FLAGS -lm"