File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -50,8 +50,8 @@ INCLUDES = -I$(INC_LIBCXX) -I$(INSTALL)/api/sys -I$(INC_NEWLIB) -I$(INSTALL)/api
5050all : CAPABS = $(CAPABS_COMMON ) -O2 -DOS_TERMINATE_ON_CONTRACT_VIOLATION
5151debug : CAPABS = $(CAPABS_COMMON ) -O0
5252stripped : CAPABS = $(CAPABS_COMMON ) -Os
53- # by default, remove debugging
54- STRIPPED =-S
53+ # by default, don't use strip because it has caused us some problems
54+ STRIPPED =
5555
5656CPPOPTS = $(CAPABS ) $(WARNS ) -c -m32 -std=c++14 $(INCLUDES ) -D_LIBCPP_HAS_NO_THREADS=1 -D_GNU_SOURCE
5757LDOPTS = -nostdlib -melf_i386 -N --eh-frame-hdr --script=$(INSTALL ) /linker.ld --defsym _MAX_MEM_MIB_=$(MAX_MEM ) --defsym=__stack_rand_ba=` date +%s `
@@ -88,6 +88,7 @@ DEPS = $(OBJS:.o=.d)
8888# - a "service", to be linked with OS-objects (OS included)
8989.PHONY : all stripped debug debug-info debug-all memdisk service
9090
91+ all : LDOPTS += --strip-debug
9192all : service
9293
9394stripped : LDOPTS += -s
You can’t perform that action at this time.
0 commit comments