Skip to content

Commit

Permalink
Makefile: use non-debug flags and strip binary (master branch only).
Browse files Browse the repository at this point in the history
  • Loading branch information
noptrix committed Apr 21, 2020
1 parent a865857 commit 7973d2c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -63,10 +63,10 @@ LICENSEDIR = $(DESTDIR)/share/licenses/lulzbuster
INCDIR = inc
SRCDIR = src

#CFLAGS += -W -Wall -Wextra -O2 -pthread -I $(INCDIR)
CFLAGS += -W -Wall -Wextra -O2 -g -g3 -ggdb -fstack-protector-all -fPIE -fPIC
CFLAGS += -pthread -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro
CFLAGS += -fsanitize=address -I $(INCDIR)
CFLAGS += -W -Wall -Wextra -O2 -pthread -I $(INCDIR)
#CFLAGS += -W -Wall -Wextra -O2 -g -g3 -ggdb -fstack-protector-all -fPIE -fPIC
#CFLAGS += -pthread -D_FORTIFY_SOURCE=2 -Wl,-z,now -Wl,-z,relro
#CFLAGS += -fsanitize=address -I $(INCDIR)

LDFLAGS = -lcurl

Expand All @@ -92,8 +92,8 @@ default:

lulzbuster: $(OBJS)
$(CC) -o $@ $^ $(CFLAGS) $(LDFLAGS)
#$(STRIP) -R .gnu.version -R .note.gnu.build-i -R .note.ABI-tag -g -S -d \
# --strip-debug --strip-dwo -s lulzbuster
$(STRIP) -R .gnu.version -R .note.gnu.build-i -R .note.ABI-tag -g -S -d \
--strip-debug --strip-dwo -s lulzbuster

install:
$(MKDIR) $(INSTDIR)
Expand Down

0 comments on commit 7973d2c

Please sign in to comment.