Skip to content

Commit 837d3d0

Browse files
committed
make: Avoid using strip for all, use ld --strip-all instead
1 parent bfc3a45 commit 837d3d0

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

src/seed/Makefile

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,8 +50,8 @@ INCLUDES = -I$(INC_LIBCXX) -I$(INSTALL)/api/sys -I$(INC_NEWLIB) -I$(INSTALL)/api
5050
all: CAPABS = $(CAPABS_COMMON) -O2 -DOS_TERMINATE_ON_CONTRACT_VIOLATION
5151
debug: CAPABS = $(CAPABS_COMMON) -O0
5252
stripped: 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

5656
CPPOPTS = $(CAPABS) $(WARNS) -c -m32 -std=c++14 $(INCLUDES) -D_LIBCPP_HAS_NO_THREADS=1 -D_GNU_SOURCE
5757
LDOPTS = -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
9192
all: service
9293

9394
stripped: LDOPTS += -s

0 commit comments

Comments
 (0)