From 6f03429c7beeff93c84785723f2fa5ccbabc969b Mon Sep 17 00:00:00 2001 From: Pierre Pronchery Date: Sat, 2 Oct 2021 05:33:38 +0200 Subject: [PATCH] ldd: introduce compilation modes --- tools/project.conf | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/tools/project.conf b/tools/project.conf index 0156529..85775a6 100644 --- a/tools/project.conf +++ b/tools/project.conf @@ -1,8 +1,15 @@ targets=ldd -cflags_force=-W -cflags=-Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector +cppflags_force= +cflags_force=-g +cflags=-W -Wall -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector ldflags=-Wl,-z,relro -Wl,-z,now dist=Makefile,elf.c +mode=debug + +#modes +[mode::release] +cppflags_force=-DNDEBUG +cflags_force= #targets [ldd]