Build with full SSP and RELRO by default
This commit is contained in:
parent
a8cbd9751f
commit
1795812dc9
|
@ -1,8 +1,8 @@
|
||||||
targets=keyboard,keyboardctl
|
targets=keyboard,keyboardctl
|
||||||
cflags_force=-W `pkg-config --cflags libDesktop`
|
cflags_force=`pkg-config --cflags libDesktop`
|
||||||
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
ldflags_force=`pkg-config --libs libDesktop` -lintl
|
||||||
ldflags=-Wl,-pie
|
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
|
||||||
dist=Makefile,callbacks.h,common.h,key.h,keyboard.h,layout.h
|
dist=Makefile,callbacks.h,common.h,key.h,keyboard.h,layout.h
|
||||||
|
|
||||||
[keyboard]
|
[keyboard]
|
||||||
|
|
|
@ -1,11 +1,12 @@
|
||||||
targets=plug,snooper,xkey
|
targets=plug,snooper,xkey
|
||||||
cflags_force=-W `pkg-config --cflags gtk+-2.0`
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
|
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
|
||||||
|
#for Gtk+ 2
|
||||||
|
cflags_force=`pkg-config --cflags gtk+-2.0`
|
||||||
ldflags_force=`pkg-config --libs gtk+-2.0`
|
ldflags_force=`pkg-config --libs gtk+-2.0`
|
||||||
#for Gtk+ 3
|
#for Gtk+ 3
|
||||||
#cflags_force=-W `pkg-config --cflags gtk+-3.0`
|
#cflags_force=`pkg-config --cflags gtk+-3.0`
|
||||||
#ldflags_force=`pkg-config --libs gtk+-3.0`
|
#ldflags_force=`pkg-config --libs gtk+-3.0`
|
||||||
ldflags=-Wl,-pie
|
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[plug]
|
[plug]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user