diff options
author | Sebastian Bøe <sebastianbooe@gmail.com> | 2016-01-23 12:25:59 +0100 |
---|---|---|
committer | Sebastian Bøe <sebastianbooe@gmail.com> | 2016-01-23 12:25:59 +0100 |
commit | f22f94619cad9db5757320f731becf0a988998d6 (patch) | |
tree | 43b7bb13bd67ddc33638426e8c7637805d276399 /icetime/Makefile | |
parent | 7a1e662a3f676f408f79127459be95b37e959f47 (diff) | |
download | icestorm-f22f94619cad9db5757320f731becf0a988998d6.tar.gz icestorm-f22f94619cad9db5757320f731becf0a988998d6.tar.bz2 icestorm-f22f94619cad9db5757320f731becf0a988998d6.zip |
icetime: fixed chipdb path issue for Arch Linux
Icetime was hardcoding the path to chipdb as /usr/local/share causing
icetime to not find the chip db on Arch Linux where the prefix is just
/usr/share.
With this commit the PREFIX is passed as a preprocessor define and used
in icetime.cc to create the correct path. I don't know what the
canonical way of dealing with this is, but this was the least intrusive
way I could think of to get this fixed.
Diffstat (limited to 'icetime/Makefile')
-rw-r--r-- | icetime/Makefile | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/icetime/Makefile b/icetime/Makefile index d2daee3..de3b44b 100644 --- a/icetime/Makefile +++ b/icetime/Makefile @@ -1,6 +1,6 @@ include ../config.mk LDLIBS = -lm -lstdc++ -CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include +CXXFLAGS = -MD -O0 -ggdb -Wall -std=c++11 -I/usr/local/include -DPREFIX=$(PREFIX) all: icetime |