diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-18 14:14:17 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-08-18 14:14:17 +0200 |
commit | 539053ab68d7a124f0c710e3fbd87aba8ee8b0aa (patch) | |
tree | b2293f65f5dddf2ebc8da4252ba68a113a236209 /Makefile | |
parent | 3e20788c24d2b0472fa9e3ecee31b636c5866d8d (diff) | |
download | yosys-539053ab68d7a124f0c710e3fbd87aba8ee8b0aa.tar.gz yosys-539053ab68d7a124f0c710e3fbd87aba8ee8b0aa.tar.bz2 yosys-539053ab68d7a124f0c710e3fbd87aba8ee8b0aa.zip |
Added option to disable -fPIC on unsupported platforms
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -160,6 +160,9 @@ else ifeq ($(CONFIG),gcc-static) LD = $(CXX) LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -s LDLIBS := -static $(filter-out -lrt,$(LDLIBS)) +ifeq ($(NO_FPIC),1) +CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS)) +endif CXXFLAGS += -std=c++11 -Os 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 |