From 8f5ce115d51d31756b6911310a0deb1bafba46c0 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Wed, 10 Apr 2024 11:25:43 -0400 Subject: config/cc.sh: Pass all the flags when running the compiler --- config/cc.sh | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) (limited to 'config/cc.sh') 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 -- cgit v1.2.3