ref: 44956b98edc0b97ad3319467152ad362f1632e72
parent: 6658e6edcecad1c26e6b0cfcd06ad08992481356
author: Roberto E. Vargas Caballero <[email protected]>
date: Mon Jan 25 06:11:16 EST 2016
Remove -s as default flag This flag removes any possibility of debugging, and it functionality can be done with the strip command in the top Makefile.
--- a/Makefile
+++ b/Makefile
@@ -14,6 +14,7 @@
cp -f cc1/cc1 bin/cc1
cp -f cc2/cc2 bin/cc2
cp -f driver/$(DRIVER)/scc bin/scc
+ strip bin/cc1 bin/cc2 bin/scc
multi:
for i in $(ARCHS) ; \
@@ -30,6 +31,7 @@
done
ln -f cc1/cc1 bin/cc1-$@
ln -f cc2/cc2 bin/cc2-$@
+ strip bin/cc1 bin/cc1-$@ bin/cc2-$@
install: all
mkdir -p $(PREFIX)/libexec/scc/
--- a/config.mk
+++ b/config.mk
@@ -15,7 +15,7 @@
# for Plan9 add -D_SUSV2_SOURCE -DNBOOL
SCFLAGS = -DNDEBUG -Iarch/$(ARCH) -DPREFIX=\""$(PREFIX)"\"
-SLDFLAGS = -s
+SLDFLAGS =
.c.o:
$(CC) $(SCFLAGS) $(CFLAGS) -o $@ -c $<