diff options
-rw-r--r-- | Makefile | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -51,7 +51,7 @@ NO_YAML := $(shell $(PKG_CONFIG) --exists yaml-0.1; echo $$?) ifeq ($(NO_YAML),1) CFLAGS += -DNO_YAML else - LDLIBS += $(shell $(PKG_CONFIG) --libs yaml-0.1) + LDLIBS_dtc += $(shell $(PKG_CONFIG) --libs yaml-0.1) endif ifeq ($(HOSTOS),darwin) @@ -330,7 +330,7 @@ clean: libfdt_clean pylibfdt_clean tests_clean # %: %.o @$(VECHO) LD $@ - $(LINK.c) -o $@ $^ $(LDLIBS) + $(LINK.c) -o $@ $^ $(LDLIBS_$*) %.o: %.c @$(VECHO) CC $@ |