aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteffen Vogel <post@steffenvogel.de>2017-02-09 18:53:37 -0300
committerSteffen Vogel <post@steffenvogel.de>2017-02-09 18:53:37 -0300
commit94c76f85da755e1d6bcba7d746deba2223016dcf (patch)
tree394474a9ece57858ffdc3139710585937791be74
parentb8d531957d4ff77afa10f12a7909f763aa367230 (diff)
downloadyosys-94c76f85da755e1d6bcba7d746deba2223016dcf.tar.gz
yosys-94c76f85da755e1d6bcba7d746deba2223016dcf.tar.bz2
yosys-94c76f85da755e1d6bcba7d746deba2223016dcf.zip
Applied fixes from @joshhead (thanks for your effors!)
-rw-r--r--Makefile10
-rw-r--r--README.md2
2 files changed, 7 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index 11cef84a2..50dc1b865 100644
--- a/Makefile
+++ b/Makefile
@@ -70,7 +70,8 @@ BREW_PREFIX := $(shell brew --prefix)/opt
CXXFLAGS += -I$(BREW_PREFIX)/readline/include
LDFLAGS += -L$(BREW_PREFIX)/readline/lib
-export PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)
+PKG_CONFIG_PATH := $(BREW_PREFIX)/libffi/lib/pkgconfig:$(PKG_CONFIG_PATH)
+
export PATH := $(BREW_PREFIX)/bison/bin:$(BREW_PREFIX)/gettext/bin:$(BREW_PREFIX)/flex/bin:$(PATH)
endif
@@ -81,7 +82,8 @@ PORT_PREFIX := $(patsubst %/bin/port,%,$(shell which port))
CXXFLAGS += -I$(PORT_PREFIX)/include
LDFLAGS += -L$(PORT_PREFIX)/lib
-export PKG_CONFIG_PATH := $(PORT_PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)
+PKG_CONFIG_PATH := $(PORT_PREFIX)/lib/pkgconfig:$(PKG_CONFIG_PATH)
+
export PATH := $(PORT_PREFIX)/bin:$(PATH)
endif
@@ -224,8 +226,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_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --silence-errors --cflags libffi)
+LDLIBS += $(shell PKG_CONFIG_PATH=$(PKG_CONFIG_PATH) $(PKG_CONFIG) --silence-errors --libs libffi || echo -lffi) -ldl
endif
ifeq ($(ENABLE_TCL),1)
diff --git a/README.md b/README.md
index f56bbf8cd..b4b3d36ee 100644
--- a/README.md
+++ b/README.md
@@ -60,7 +60,7 @@ Similarily, on Mac OS X MacPorts or Homebrew can be used to install dependencies
$ brew install bison flex gawk libffi \
git mercurial graphviz pkg-config python3
$ sudo port install bison flex readline gawk libffi \
- git mercurial graphviz pkg-config python3
+ git mercurial graphviz pkgconfig python36
There are also pre-compiled Yosys binary packages for Ubuntu and Win32 as well
as a source distribution for Visual Studio. Visit the Yosys download page for