From: Clifford Wolf Date: Sat, 13 Sep 2014 15:28:15 +0000 (+0200) Subject: Using pkg-config to find libffi X-Git-Tag: yosys-0.4~140 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=3ae96f85a5528414eee458e8aa992aae90ceba7d;p=yosys.git Using pkg-config to find libffi --- diff --git a/Makefile b/Makefile index a499157ac..3ec89916a 100644 --- a/Makefile +++ b/Makefile @@ -94,8 +94,8 @@ LDLIBS += -lreadline endif ifeq ($(ENABLE_PLUGINS),1) -CXXFLAGS += -DYOSYS_ENABLE_PLUGINS -LDLIBS += -lffi -ldl +CXXFLAGS += -DYOSYS_ENABLE_PLUGINS $(shell pkg-config --silence-errors --cflags libffi) +LDLIBS += $(shell pkg-config --silence-errors --libs libffi || echo -lffi) -ldl endif ifeq ($(ENABLE_TCL),1)