Skip to content

Commit 127b6b5

Browse files
committed
_build.sh: enable -fstack-protector-all for linux targets
1 parent 2dc1021 commit 127b6b5

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

_build.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -678,8 +678,8 @@ build_single_target() {
678678

679679
_CPPFLAGS_GLOBAL="${_CPPFLAGS_GLOBAL} -D_FORTIFY_SOURCE=2"
680680

681-
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC"
682-
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC"
681+
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC -fstack-protector-all"
682+
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC -fstack-protector-all"
683683

684684
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -Wl,-z,relro,-z,now"
685685
fi

0 commit comments

Comments
 (0)