Skip to content

Commit 11e6b1d

Browse files
committed
_build.sh: enable full relro for linux target
1 parent 8321067 commit 11e6b1d

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
@@ -652,6 +652,8 @@ build_single_target() {
652652

653653
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC"
654654
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC"
655+
656+
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -Wl,-z,relro,-z,now"
655657
fi
656658

657659
# Suppress CMake warnings meant for upstream developers

0 commit comments

Comments
 (0)