[hackers] [scc] Remove -s as default flag || Roberto E. Vargas Caballero

From: <git_AT_suckless.org>
Date: Mon, 25 Jan 2016 11:16:30 +0100 (CET)

commit 44956b98edc0b97ad3319467152ad362f1632e72
Author: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
AuthorDate: Mon Jan 25 11:11:16 2016 +0100
Commit: Roberto E. Vargas Caballero <k0ga_AT_shike2.com>
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
_AT_@ -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) ; \
_AT_@ -30,6 +31,7 @@ $(ARCHS):
         done
         ln -f cc1/cc1 bin/cc1-$_AT_
         ln -f cc2/cc2 bin/cc2-$_AT_
+ strip bin/cc1 bin/cc1-$_AT_ 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
_AT_@ -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 $_AT_ -c $<
Received on Mon Jan 25 2016 - 11:16:30 CET

This archive was generated by hypermail 2.3.0 : Mon Jan 25 2016 - 11:24:15 CET