From 3ae96f85a5528414eee458e8aa992aae90ceba7d Mon Sep 17 00:00:00 2001 From: Clifford Wolf Date: Sat, 13 Sep 2014 17:28:15 +0200 Subject: [PATCH] Using pkg-config to find libffi --- Makefile | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) -- 2.30.2