diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2024-04-18 16:16:36 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2024-04-19 13:02:28 -0400 |
commit | d7d5e1c474e4e110172b7180de9c41e5ebbf93f6 (patch) | |
tree | c9448fa215fb723bdea82976881da24d3fc05a23 /config/pkgs.mk | |
parent | 1380981aa27463879faa7652a2e0a79419243cec (diff) | |
download | bfs-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.mk | 6 |
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} $@ |