mirror of https://github.com/YosysHQ/yosys.git
- kernel/register.h, kernel/driver.cc: refactor rewrite_yosys_exe()/get_share_file_name() to portable proc_self_dirname()/proc_share_dirname().
This refactoring improves robustness and allows OSX support with only 7 new lines of code, and easy extension for other systems. - passes/abc/abc.cc, passes/cmds/show.cc, passes/techmap/techmap.cc: use new, refactored semantics. - Makefile: no need to add $(PWD) to $(PATH) anymore.
This commit is contained in:
parent
ed2c577592
commit
49c0bfa3ad
2
Makefile
2
Makefile
|
@ -26,8 +26,6 @@ CXXFLAGS = -Wall -Wextra -ggdb -I"$(shell pwd)" -I${DESTDIR}/include -MD -D_YOSY
|
||||||
LDFLAGS = -L${DESTDIR}/lib
|
LDFLAGS = -L${DESTDIR}/lib
|
||||||
LDLIBS = -lstdc++ -lreadline -lm -ldl
|
LDLIBS = -lstdc++ -lreadline -lm -ldl
|
||||||
|
|
||||||
export PATH := $(PWD):$(DESTDIR)/bin:$(PATH)
|
|
||||||
|
|
||||||
ifeq (Darwin,$(findstring Darwin,$(shell uname)))
|
ifeq (Darwin,$(findstring Darwin,$(shell uname)))
|
||||||
# add macports include and library path to search directories, don't use '-rdynamic' and '-lrt':
|
# add macports include and library path to search directories, don't use '-rdynamic' and '-lrt':
|
||||||
CXXFLAGS += -I/opt/local/include
|
CXXFLAGS += -I/opt/local/include
|
||||||
|
|
Loading…
Reference in New Issue