Name the default compilation mode "debug"

This commit is contained in:
Pierre Pronchery 2022-04-12 18:48:18 +02:00
parent c69145b9a3
commit 47472616c6
4 changed files with 9 additions and 0 deletions

View File

@ -9,6 +9,8 @@ ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile,token.h,python/project.conf,python/Makefile,python/libSystem.c,python/libSystem.py
#modes
[mode::debug]
[mode::release]
cppflags_force=-DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector

View File

@ -7,6 +7,8 @@ ldflags=-Wl,-rpath,$(LIBDIR) -Wl,-z,relro -Wl,-z,now
dist=Makefile,libSystem.py
#modes
[mode::debug]
[mode::release]
cppflags_force=-I../../include -DNDEBUG
cflags=-W -Wall -O2 -D_FORTIFY_SOURCE=2 -fstack-protector

View File

@ -5,6 +5,9 @@ ldflags_force=-L$(OBJDIR)../src -L$(OBJDIR)../src/.libs -Wl,-rpath,$(OBJDIR)../s
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,clint.sh,config.conf,config-empty.conf,config-noeol.conf,coverage.sh,fixme.sh,pkgconfig.sh,pylint.sh,python.sh,tests.sh
#modes
[mode::debug]
#targets
[array]
type=binary

View File

@ -7,6 +7,8 @@ ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,platform.sh,subst.sh
#modes
[mode::debug]
[mode::release]
cppflags_force=-I../include -DNDEBUG
cflags=-W -Wall -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector