Strip resulting binary. - sup - small tool for privilege escalation
HTML git clone git://bitreich.org/sup git://enlrupgkhuxnvlhsf6lc3fziv5h2hhfrinws65d7roiv6bfj7d652fid.onion/sup
DIR Log
DIR Files
DIR Refs
DIR Tags
DIR README
DIR LICENSE
---
DIR commit a0f8b8985120b7a35e3be70df1128c03d9a5c0e0
DIR parent f9fac86bc362d478bde9cba5dd585e1c63e21079
HTML Author: parazyd <parazyd@dyne.org>
Date: Sat, 3 Apr 2021 13:34:38 +0200
Strip resulting binary.
Diffstat:
M Makefile | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
---
DIR diff --git a/Makefile b/Makefile
@@ -7,9 +7,9 @@ PREFIX = /usr/local
MANPREFIX = ${PREFIX}/share/man
# use system flags
-SUP_CFLAGS = ${CFLAGS} -Wall -Werror -pedantic -std=c99
+SUP_CFLAGS = ${CFLAGS} -Wall -Werror -pedantic -std=c99
SUP_CPPFLAGS = ${CPPFLAGS}
-SUP_LDFLAGS = ${LDFLAGS} -static
+SUP_LDFLAGS = ${LDFLAGS} -static -s
BIN = sup
MAN = $(BIN).1
@@ -26,7 +26,7 @@ config.h:
$(CC) -c $(SUP_CFLAGS) $(SUP_CPPFLAGS) $<
$(BIN): $(OBJ)
- $(CC) $(OBJ) $(LDFLAGS) -o $@
+ $(CC) $(OBJ) $(SUP_LDFLAGS) -o $@
clean:
rm -f $(BIN) $(OBJ)