mirror of https://github.com/YosysHQ/yosys.git
Using pkg-config to find libffi
This commit is contained in:
parent
44b5bd4b63
commit
3ae96f85a5
4
Makefile
4
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)
|
||||
|
|
Loading…
Reference in New Issue