Build with SSP, PIE and RELRO by default
This commit is contained in:
parent
71e171dd9a
commit
38ffe7c974
|
@ -1,7 +1,7 @@
|
|||
targets=pdo,pgsql,sqlite2,sqlite3,template
|
||||
cppflags_force=-I ../../include
|
||||
cflags_force=-W -fPIC
|
||||
cflags=-Wall -g -O2 -pedantic -fstack-protector
|
||||
cflags_force=-fPIC
|
||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
dist=Makefile
|
||||
|
||||
[pdo]
|
||||
|
|
|
@ -1,9 +1,10 @@
|
|||
subdirs=engines
|
||||
targets=libDatabase
|
||||
cppflags_force=-I ../include
|
||||
cflags_force=-W -fPIC `pkg-config --cflags libSystem`
|
||||
cflags=-Wall -g -O2 -pedantic -fstack-protector
|
||||
ldflags=`pkg-config --libs libSystem`
|
||||
cflags_force=`pkg-config --cflags libSystem` -fPIC
|
||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
ldflags_force=`pkg-config --libs libSystem`
|
||||
ldflags=-Wl,-z,relro -Wl,-z,now
|
||||
dist=Makefile,python/project.conf,python/Makefile,python/libDatabase.c,python/libDatabase.py
|
||||
|
||||
[libDatabase]
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
targets=_libDatabase
|
||||
cflags_force=-W `pkg-config --cflags python-2.7 libDatabase` -fPIC
|
||||
cflags=-Wall -g -O2 -pedantic -fstack-protector
|
||||
cflags_force=`pkg-config --cflags python-2.7 libDatabase` -fPIC
|
||||
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
ldflags_force=`pkg-config --libs python-2.7 libDatabase`
|
||||
ldflags=-L.. -L$(LIBDIR) -Wl,-rpath,$(LIBDIR)
|
||||
dist=Makefile,libDatabase.py
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
targets=client
|
||||
cppflags_force=-I ../include
|
||||
cflags_force=-W `pkg-config --cflags libSystem`
|
||||
cflags=-Wall -g -O2 -pedantic -fPIC -fstack-protector
|
||||
cflags_force=`pkg-config --cflags libSystem`
|
||||
cflags=-W -Wall -g -O2 -pedantic -fPIE -D_FORTIFY_SOURCE=2 -fstack-protector-all
|
||||
ldflags_force=`pkg-config --libs libSystem` -L ../src -Wl,-rpath,../src -lDatabase
|
||||
ldflags=-Wl,-pie
|
||||
ldflags=-Wl,-pie -Wl,-z,relro -Wl,-z,now
|
||||
dist=Makefile
|
||||
|
||||
[client]
|
||||
|
|
Loading…
Reference in New Issue
Block a user