Skip to content

Commit c6bb3ec

Browse files
committed
Build with SSP and PIE by default
1 parent 520a85c commit c6bb3ec

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

src/project.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ subdirs=arch,format
22
targets=libAsm,asm,deasm
33
cppflags_force=-I ../include
44
cppflags=
5-
cflags_force=-W `pkg-config --cflags cpp`
6-
cflags=-Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
5+
cflags_force=`pkg-config --cflags cpp`
6+
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector
77
ldflags_force=`pkg-config --libs cpp`
88
ldflags=-ldl
99
dist=Makefile,arch.h,code.h,common.h,format.h,parser.h,token.h,python/project.conf,python/Makefile,python/libasm.c,python/libasm.py

src/python/project.conf

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
targets=_libasm
2-
cflags_force=-W `pkg-config --cflags python-2.7 Asm` -fPIC
3-
cflags=-Wall -g -O2
2+
cflags_force=`pkg-config --cflags python-2.7 Asm` -fPIC
3+
cflags=-W -Wall -g -O2 -pedantic -D_FORTIFY_SOURCE=2 -fstack-protector-all
44
ldflags_force=`pkg-config --libs python-2.7 Asm`
55
ldflags=-L.. -L$(LIBDIR) -Wl,-rpath,$(LIBDIR)
66
dist=Makefile,libasm.py

0 commit comments

Comments
 (0)