From: Miodrag Milanovic Date: Sat, 25 Aug 2018 14:20:44 +0000 (+0200) Subject: static link flag on main executable X-Git-Tag: yosys-0.8~21^2 X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=306a010e199d9318472c9c08eb16117bd83c7257;p=yosys.git static link flag on main executable --- diff --git a/Makefile b/Makefile index c1e5c789d..18bf303b1 100644 --- a/Makefile +++ b/Makefile @@ -158,7 +158,7 @@ ABCMKARGS += ARCHFLAGS="-DABC_USE_STDINT_H" else ifeq ($(CONFIG),gcc-static) LD = $(CXX) -LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -s +LDFLAGS := $(filter-out -rdynamic,$(LDFLAGS)) -static LDLIBS := $(filter-out -lrt,$(LDLIBS)) CXXFLAGS := $(filter-out -fPIC,$(CXXFLAGS)) CXXFLAGS += -std=c++11 -Os