diff options
-rwxr-xr-x | config/cc.sh | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/config/cc.sh b/config/cc.sh index 04b142a..7e5c0d5 100755 --- a/config/cc.sh +++ b/config/cc.sh @@ -5,8 +5,12 @@ # Run the compiler and check if it succeeded -printf '$ %s' "$XCC" >&2 -printf ' %q' "$@" >&2 -printf ' -o /dev/null\n' >&2 +set -eux -$XCC "$@" -o /dev/null +$XCC \ + $BFS_CPPFLAGS $XCPPFLAGS ${EXTRA_CPPFLAGS:-} \ + $BFS_CFLAGS $XCFLAGS ${EXTRA_CFLAGS:-} \ + $XLDFLAGS ${EXTRA_LDFLAGS:-} \ + "$@" \ + $XLDLIBS ${EXTRA_LDLIBS:-} $BFS_LDLIBS \ + -o /dev/null |