mirror of
https://git.sr.ht/~nabijaczleweli/tzpfms
synced 2025-04-13 09:37:13 +03:00
Build with -g by default. Don't strip
This commit is contained in:
parent
303ea58c2f
commit
c9cd46ab95
3
Makefile
3
Makefile
@ -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 $@)
|
||||
|
@ -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/
|
||||
|
Loading…
x
Reference in New Issue
Block a user