mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-13 09:26:16 +00:00
Allow redefining pkg-config Makefile command.
Example usage: $ make CXX=i686-w64-mingw32-g++ PKG_CONFIG=i686-w64-mingw32-pkg-config
This commit is contained in:
parent
972f4a9616
commit
d53a16e43a
1 changed files with 4 additions and 2 deletions
6
Makefile
6
Makefile
|
@ -51,6 +51,8 @@ VPATH := $(YOSYS_SRC)
|
||||||
CXXFLAGS += -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include
|
CXXFLAGS += -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include
|
||||||
LDFLAGS += -L$(LIBDIR)
|
LDFLAGS += -L$(LIBDIR)
|
||||||
LDLIBS = -lstdc++ -lm
|
LDLIBS = -lstdc++ -lm
|
||||||
|
|
||||||
|
PKG_CONFIG = pkg-config
|
||||||
SED = sed
|
SED = sed
|
||||||
BISON = bison
|
BISON = bison
|
||||||
|
|
||||||
|
@ -187,8 +189,8 @@ endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_PLUGINS),1)
|
ifeq ($(ENABLE_PLUGINS),1)
|
||||||
CXXFLAGS += -DYOSYS_ENABLE_PLUGINS $(shell pkg-config --silence-errors --cflags libffi)
|
CXXFLAGS += -DYOSYS_ENABLE_PLUGINS $(shell $(PKG_CONFIG) --silence-errors --cflags libffi)
|
||||||
LDLIBS += $(shell pkg-config --silence-errors --libs libffi || echo -lffi) -ldl
|
LDLIBS += $(shell $(PKG_CONFIG) --silence-errors --libs libffi || echo -lffi) -ldl
|
||||||
endif
|
endif
|
||||||
|
|
||||||
ifeq ($(ENABLE_TCL),1)
|
ifeq ($(ENABLE_TCL),1)
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue