Build with -g by default. Don't strip

This commit is contained in:
наб 2021-11-25 22:49:47 +01:00
parent 303ea58c2f
commit c9cd46ab95
No known key found for this signature in database
GPG Key ID: BCFD0B018D2658F1
2 changed files with 2 additions and 6 deletions

View File

@ -93,8 +93,7 @@ $(OUTDIR)man/style.css : man/style.css
$(OUTDIR)%$(EXE) : $(subst $(SRCDIR),$(OBJDIR),$(subst .cpp,$(OBJ),$(SRCDIR)bin/%.cpp $(COMMON_SOURCES)))
@mkdir -p $(dir $@)
$(CXX) $(CXXAR) -o$@ $^ $(PIC) -Wl,--as-needed $(LDAR)
$(STRIP) $(STRIPAR) $@
$(CXX) $(CXXAR) -o$@ $^ -Wl,--as-needed $(LDAR)
$(OBJDIR)%$(OBJ) : $(SRCDIR)%.cpp
@mkdir -p $(dir $@)

View File

@ -22,7 +22,6 @@
EXE :=
DLL := .so
PIC := -fPIC
OS_LD_LIBS :=
CXXVER := $(shell $(CXX) --version)
@ -57,9 +56,7 @@ SED ?= sed
MANDOC ?= mandoc
SHELLCHECK ?= shellcheck
OBJ := .o
CXXAR := -O3 -std=c++17 -fno-exceptions -Wall -Wextra $(CXXSPECIFIC) -pipe $(INCCXXAR) $(PIC)
STRIP ?= strip
STRIPAR := --strip-all --remove-section=.comment --remove-section=.note
CXXAR := -g -O3 -std=c++17 -fno-exceptions -Wall -Wextra $(CXXSPECIFIC) -pipe $(INCCXXAR) -fPIC
OUTDIR := out/
BLDDIR := out/build/