From d7d5e1c474e4e110172b7180de9c41e5ebbf93f6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 18 Apr 2024 16:16:36 -0400 Subject: config: Test-compile packages even if pkg-config says they exist This fixes `make config CC=musl-gcc`, for example. --- config/pkgs.mk | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'config/pkgs.mk') 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} $@ -- cgit v1.2.3