Compile with SSP and as PIE and RELRO by default
This commit is contained in:
parent
a1041d8ea5
commit
b984b60ccf
|
@ -1,10 +1,12 @@
|
|||
targets=compare,fontsel,progress
|
||||
#cflags_force=-W `pkg-config gtk+-3.0 --cflags`
|
||||
cflags_force=-W `pkg-config gtk+-2.0 --cflags`
|
||||
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
|
||||
#ldflags_force=`pkg-config gtk+-3.0 --libs`
|
||||
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
|
||||
#for Gtk+ 2
|
||||
cflags_force=`pkg-config gtk+-2.0 --cflags`
|
||||
ldflags_force=`pkg-config gtk+-2.0 --libs`
|
||||
ldflags=-Wl,-pie
|
||||
#for Gtk+ 3
|
||||
#cflags_force=-W `pkg-config gtk+-3.0 --cflags`
|
||||
#ldflags_force=`pkg-config gtk+-3.0 --libs`
|
||||
dist=Makefile
|
||||
|
||||
[compare]
|
||||
|
@ -20,6 +22,7 @@ install=$(BINDIR)
|
|||
[progress]
|
||||
type=binary
|
||||
sources=progress.c
|
||||
#for Gtk+ 3
|
||||
#cflags=`pkg-config --cflags gtk+-x11-3.0`
|
||||
#ldflags=`pkg-config --cflags gtk+-x11-3.0`
|
||||
install=$(BINDIR)
|
||||
|
|
Loading…
Reference in New Issue
Block a user