mirror of
https://github.com/YosysHQ/yosys
synced 2025-07-03 11:25:41 +00:00
Added option to disable -fPIC on unsupported platforms
This commit is contained in:
parent
3e20788c24
commit
539053ab68
1 changed files with 3 additions and 0 deletions
3
Makefile
3
Makefile
|
@ -160,6 +160,9 @@ else ifeq ($(CONFIG),gcc-static)
|
||||||
LD = $(CXX)
|
LD = $(CXX)
|
||||||
LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -s
|
LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -s
|
||||||
LDLIBS := -static $(filter-out -lrt,$(LDLIBS))
|
LDLIBS := -static $(filter-out -lrt,$(LDLIBS))
|
||||||
|
ifeq ($(NO_FPIC),1)
|
||||||
|
CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS))
|
||||||
|
endif
|
||||||
CXXFLAGS += -std=c++11 -Os
|
CXXFLAGS += -std=c++11 -Os
|
||||||
ABCMKARGS = CC="$(CC)" CXX="$(CXX)" LD="$(LD)" LIBS="-static -lm -ldl -pthread" OPTFLAGS="-O" \
|
ABCMKARGS = CC="$(CC)" CXX="$(CXX)" LD="$(LD)" LIBS="-static -lm -ldl -pthread" OPTFLAGS="-O" \
|
||||||
ARCHFLAGS="-DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING=1 -Wno-unused-but-set-variable" ABC_USE_NO_READLINE=1
|
ARCHFLAGS="-DABC_USE_STDINT_H -DABC_NO_DYNAMIC_LINKING=1 -Wno-unused-but-set-variable" ABC_USE_NO_READLINE=1
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue