Use the default stack protector

This commit is contained in:
Pierre Pronchery 2020-01-30 23:03:28 +01:00
parent eeeba60a30
commit 91deb97292
2 changed files with 7 additions and 2 deletions

View File

@ -1,16 +1,18 @@
targets=notes
#cppflags=-D EMBEDDED
cflags_force=`pkg-config --cflags libDesktop`
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
cflags=-W -Wall -g -O2 -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop` -lintl
ldflags=-pie -Wl,-z,relro -Wl,-z,now
dist=Makefile,note.h,noteedit.h,notes.h,window.h
#targets
[notes]
type=binary
sources=note.c,noteedit.c,notes.c,window.c,main.c
install=$(BINDIR)
#sources
[main.c]
depends=note.h,notes.h,../config.h

View File

@ -1,13 +1,16 @@
targets=notes
cflags_force=`pkg-config --cflags libDesktop Mailer` -fPIC
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
cflags=-W -Wall -g -O2 -D_FORTIFY_SOURCE=2 -fstack-protector
ldflags_force=`pkg-config --libs libDesktop`
ldflags=-Wl,-z,relro -Wl,-z,now
dist=Makefile
#targets
[notes]
type=plugin
sources=notes.c
install=$(LIBDIR)/Mailer/plugins
#sources
[notes.c]
depends=../src/note.c,../src/noteedit.c,../src/notes.c