From: Thomas Bracht Laumann Jespersen Date: Mon, 31 Jan 2022 11:20:28 +0000 (+0100) Subject: scripts/dtc: Call pkg-config POSIXly correct X-Git-Tag: v5.18-rc1~104^2~82 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=a8b309ce9760943486e0585285e0125588a31650;p=thirdparty%2Fkernel%2Flinux.git scripts/dtc: Call pkg-config POSIXly correct Running with POSIXLY_CORRECT=1 in the environment the scripts/dtc build fails, because pkg-config doesn't output anything when the flags come after the arguments. Fixes: 067c650c456e ("dtc: Use pkg-config to locate libyaml") Signed-off-by: Thomas Bracht Laumann Jespersen Signed-off-by: Rob Herring Link: https://lore.kernel.org/r/20220131112028.7907-1-t@laumann.xyz --- diff --git a/scripts/dtc/Makefile b/scripts/dtc/Makefile index 95aaf7431bffa..1cba78e1dce68 100644 --- a/scripts/dtc/Makefile +++ b/scripts/dtc/Makefile @@ -29,7 +29,7 @@ dtc-objs += yamltree.o # To include installed in a non-default path HOSTCFLAGS_yamltree.o := $(shell pkg-config --cflags yaml-0.1) # To link libyaml installed in a non-default path -HOSTLDLIBS_dtc := $(shell pkg-config yaml-0.1 --libs) +HOSTLDLIBS_dtc := $(shell pkg-config --libs yaml-0.1) endif # Generated files need one more search path to include headers in source tree