aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSergey Kvachonok <ravenexp@gmail.com>2016-03-24 16:07:05 +0300
committerSergey Kvachonok <ravenexp@gmail.com>2016-03-25 10:35:42 +0300
commitd53a16e43a6db35b15584e582c64cfac0f7e5e3d (patch)
tree866879ea3695de5b665c5da5d77579d9f6a0b399
parent972f4a9616006f6030d1627c65f5ced68aabfff4 (diff)
downloadyosys-d53a16e43a6db35b15584e582c64cfac0f7e5e3d.tar.gz
yosys-d53a16e43a6db35b15584e582c64cfac0f7e5e3d.tar.bz2
yosys-d53a16e43a6db35b15584e582c64cfac0f7e5e3d.zip
Allow redefining pkg-config Makefile command.
Example usage: $ make CXX=i686-w64-mingw32-g++ PKG_CONFIG=i686-w64-mingw32-pkg-config
-rw-r--r--Makefile6
1 files changed, 4 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index a0dde6ff2..b1d94e16a 100644
--- a/Makefile
+++ b/Makefile
@@ -51,6 +51,8 @@ VPATH := $(YOSYS_SRC)
CXXFLAGS += -Wall -Wextra -ggdb -I. -I"$(YOSYS_SRC)" -MD -D_YOSYS_ -fPIC -I$(PREFIX)/include
LDFLAGS += -L$(LIBDIR)
LDLIBS = -lstdc++ -lm
+
+PKG_CONFIG = pkg-config
SED = sed
BISON = bison
@@ -187,8 +189,8 @@ endif
endif
ifeq ($(ENABLE_PLUGINS),1)
-CXXFLAGS += -DYOSYS_ENABLE_PLUGINS $(shell pkg-config --silence-errors --cflags libffi)
-LDLIBS += $(shell pkg-config --silence-errors --libs libffi || echo -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)