Skip to content

Commit

Permalink
_build.sh: enable -fstack-protector-all for linux targets
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Aug 30, 2023
1 parent 5b814ce commit 5c1765d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -678,8 +678,8 @@ build_single_target() {

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

_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC"
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC"
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC -fstack-protector-all"
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC -fstack-protector-all"

_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -Wl,-z,relro,-z,now"
fi
Expand Down

0 comments on commit 5c1765d

Please sign in to comment.