summaryrefslogtreecommitdiffstats
path: root/config/pkgs.mk
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2024-04-18 16:16:36 -0400
committerTavian Barnes <tavianator@tavianator.com>2024-04-19 13:02:28 -0400
commitd7d5e1c474e4e110172b7180de9c41e5ebbf93f6 (patch)
treec9448fa215fb723bdea82976881da24d3fc05a23 /config/pkgs.mk
parent1380981aa27463879faa7652a2e0a79419243cec (diff)
downloadbfs-d7d5e1c474e4e110172b7180de9c41e5ebbf93f6.tar.xz
config: Test-compile packages even if pkg-config says they exist
This fixes `make config CC=musl-gcc`, for example.
Diffstat (limited to 'config/pkgs.mk')
-rw-r--r--config/pkgs.mk6
1 files changed, 3 insertions, 3 deletions
diff --git a/config/pkgs.mk b/config/pkgs.mk
index de9e16e..3a18289 100644
--- a/config/pkgs.mk
+++ b/config/pkgs.mk
@@ -11,7 +11,7 @@ include config/exports.mk
${GEN}/pkgs.mk::
${MSG} "[ GEN] ${TGT}"
- config/pkgconf.sh --cflags ${PKGS} >>$@ 2>>$@.log
- config/pkgconf.sh --ldflags ${PKGS} >>$@ 2>>$@.log
- config/pkgconf.sh --ldlibs ${PKGS} >>$@ 2>>$@.log
+ printf 'CFLAGS += %s\n' "$$(config/pkgconf.sh --cflags ${PKGS})" >>$@ 2>>$@.log
+ printf 'LDFLAGS += %s\n' "$$(config/pkgconf.sh --ldflags ${PKGS})" >>$@ 2>>$@.log
+ printf 'LDLIBS := %s $${LDLIBS}\n' "$$(config/pkgconf.sh --ldlibs ${PKGS})" >>$@ 2>>$@.log
${VCAT} $@