aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorEmmanuel Vadot <manu@FreeBSD.org>2020-08-25 12:34:18 +0200
committerEmmanuel Vadot <manu@FreeBSD.org>2020-08-25 12:34:18 +0200
commitca19c3db2bf62000101ae8f83c37cd6e0d44d218 (patch)
treeaa8f0c3c8c4ac1986056b4f3440eb537fd4bd09f /Makefile
parent7bb86f1c09563f502c6ab0166feacf346e4e8c40 (diff)
downloaddtc-ca19c3db2bf62000101ae8f83c37cd6e0d44d218.zip
dtc-ca19c3db2bf62000101ae8f83c37cd6e0d44d218.tar.gz
dtc-ca19c3db2bf62000101ae8f83c37cd6e0d44d218.tar.bz2
Makefile: Specify cflags for libyaml
Some systems don't install third party software includes in a default path (like FreeBSD), add yaml cflags to fix compilation. Signed-off-by: Emmanuel Vadot <manu@FreeBSD.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile1
1 files changed, 1 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index cb256e8..c187d5f 100644
--- a/Makefile
+++ b/Makefile
@@ -59,6 +59,7 @@ ifeq ($(NO_YAML),1)
CFLAGS += -DNO_YAML
else
LDLIBS_dtc += $(shell $(PKG_CONFIG) --libs yaml-0.1)
+ CFLAGS += $(shell $(PKG_CONFIG) --cflags yaml-0.1)
endif
ifeq ($(HOSTOS),darwin)