commit 44956b98edc0b97ad3319467152ad362f1632e72
parent 6658e6edcecad1c26e6b0cfcd06ad08992481356
Author: Roberto E. Vargas Caballero <k0ga@shike2.com>
Date: Mon, 25 Jan 2016 11:11:16 +0100
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.
Diffstat:
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
@@ -14,6 +14,7 @@ all:
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 @@ $(ARCHS):
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/
diff --git a/config.mk b/config.mk
@@ -15,7 +15,7 @@ MANPREFIX = ${PREFIX}/share/man
# for Plan9 add -D_SUSV2_SOURCE -DNBOOL
SCFLAGS = -DNDEBUG -Iarch/$(ARCH) -DPREFIX=\""$(PREFIX)"\"
-SLDFLAGS = -s
+SLDFLAGS =
.c.o:
$(CC) $(SCFLAGS) $(CFLAGS) -o $@ -c $<