Skip to content

Commit f565168

Browse files
committed
_build.sh: enable full relro for linux target
1 parent 33de7dd commit f565168

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

_build.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -660,6 +660,8 @@ build_single_target() {
660660

661661
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC"
662662
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC"
663+
664+
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -Wl,-z,relro,-z,now"
663665
fi
664666

665667
# Suppress CMake warnings meant for upstream developers

0 commit comments

Comments
 (0)