mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-11 04:18:39 +08:00
scripts/dtc: Call pkg-config POSIXly correct
[ Upstream commita8b309ce97
] 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:067c650c45
("dtc: Use pkg-config to locate libyaml") Signed-off-by: Thomas Bracht Laumann Jespersen <t@laumann.xyz> Signed-off-by: Rob Herring <robh@kernel.org> Link: https://lore.kernel.org/r/20220131112028.7907-1-t@laumann.xyz Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
080822563b
commit
6f095441f8
@ -22,7 +22,7 @@ dtc-objs += yamltree.o
|
||||
# To include <yaml.h> 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
|
||||
|
Loading…
Reference in New Issue
Block a user