summaryrefslogtreecommitdiffstats
path: root/build/pkgconf.sh
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-08-28 17:13:54 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-08-28 17:33:19 -0400
commit8ca167ee93d4a79f1f24bd959de8b85183577064 (patch)
tree1a9299832a004eff16bbdedcab6b00e45061f7af /build/pkgconf.sh
parentbfbe6851afd2eb5b40b23dcb7ce6a9422b0f17fa (diff)
downloadbfs-8ca167ee93d4a79f1f24bd959de8b85183577064.tar.xz
build: Move per-file flag support into cc.sh
Diffstat (limited to 'build/pkgconf.sh')
-rwxr-xr-xbuild/pkgconf.sh10
1 files changed, 5 insertions, 5 deletions
diff --git a/build/pkgconf.sh b/build/pkgconf.sh
index a8a3341..decf706 100755
--- a/build/pkgconf.sh
+++ b/build/pkgconf.sh
@@ -34,10 +34,10 @@ if [ -z "$MODE" ]; then
n|0) exit 1 ;;
esac
- CFLAGS=$("$0" --cflags "$LIB") || exit 1
- LDFLAGS=$("$0" --ldflags "$LIB") || exit 1
- LDLIBS=$("$0" --ldlibs "$LIB") || exit 1
- build/cc.sh $CFLAGS $LDFLAGS "build/with/$LIB.c" $LDLIBS -o "gen/with/.$LIB.out" || exit 1
+ XCFLAGS="$XCFLAGS $("$0" --cflags "$LIB")" || exit 1
+ XLDFLAGS="$XLDFLAGS $("$0" --ldflags "$LIB")" || exit 1
+ XLDLIBS="$("$0" --ldlibs "$LIB") $XLDLIBS" || exit 1
+ build/cc.sh "build/with/$LIB.c" -o "gen/with/.$LIB.out" || exit 1
done
fi
@@ -92,5 +92,5 @@ done
case "$MODE" in
--ldlibs)
printf '%s\n' "$LDLIBS"
- ;;
+ ;;
esac