From: Miodrag Milanovic Date: Sat, 18 Aug 2018 12:14:17 +0000 (+0200) Subject: Added option to disable -fPIC on unsupported platforms X-Git-Tag: yosys-0.8~27^2~3 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=539053ab68d7a124f0c710e3fbd87aba8ee8b0aa;p=yosys.git Added option to disable -fPIC on unsupported platforms --- diff --git a/Makefile b/Makefile index c2a3293ae..c2a076229 100644 --- a/Makefile +++ b/Makefile @@ -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