Using pkg-config to find libffi

This commit is contained in:
Clifford Wolf 2014-09-13 17:28:15 +02:00
parent 44b5bd4b63
commit 3ae96f85a5
1 changed files with 2 additions and 2 deletions

View File

@ -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)