commit 44956b98edc0b97ad3319467152ad362f1632e72
Author:     Roberto E. Vargas Caballero <[email protected]>
AuthorDate: Mon Jan 25 11:11:16 2016 +0100
Commit:     Roberto E. Vargas Caballero <[email protected]>
CommitDate: Mon Jan 25 11:11:16 2016 +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.

diff --git a/Makefile b/Makefile
index 306e6b3..cc3c349 100644
--- 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
index 4656b21..7542bdd 100644
--- 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 $<

Reply via email to