Compile with SSP and PIE by default
This commit is contained in:
parent
5bda617a99
commit
a288d05d89
|
@ -1,7 +1,7 @@
|
||||||
targets=libDesktop
|
targets=libDesktop
|
||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
|
cflags_force=`pkg-config --cflags libSystem gtk+-2.0` -fPIC
|
||||||
cflags=-Wall -g -O2 -fPIC -pedantic -fstack-protector
|
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
|
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
|
|
|
@ -1,9 +1,8 @@
|
||||||
targets=widget
|
targets=widget
|
||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
|
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
|
||||||
cflags=-Wall -g -O2 -pedantic -fstack-protector
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
|
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` $(OBJDIR)../src/libDesktop.a
|
||||||
ldflags=$(OBJDIR)../src/libDesktop.a
|
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[widget]
|
[widget]
|
||||||
|
|
|
@ -1,9 +1,9 @@
|
||||||
targets=widget
|
targets=widget
|
||||||
cppflags_force=-I ../include
|
cppflags_force=-I ../include
|
||||||
cflags_force=-W `pkg-config --cflags libSystem gtk+-2.0`
|
cflags_force=`pkg-config --cflags libSystem gtk+-2.0`
|
||||||
cflags=-Wall -g -O2 -pedantic -fstack-protector -fPIE
|
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||||
ldflags_force=`pkg-config --libs libSystem gtk+-2.0`
|
ldflags_force=`pkg-config --libs libSystem gtk+-2.0` -L $(OBJDIR)../src -lDesktop
|
||||||
ldflags=-L $(OBJDIR)../src -lDesktop -Wl,-pie
|
ldflags=-Wl,-pie
|
||||||
dist=Makefile
|
dist=Makefile
|
||||||
|
|
||||||
[widget]
|
[widget]
|
||||||
|
|
Loading…
Reference in New Issue
Block a user