summaryrefslogtreecommitdiffstats
path: root/config/pkgs.mk
diff options
context:
space:
mode:
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} $@