Skip to content

Commit e5a987a

Browse files
committed
_build.sh: enable _FORTIFY_SOURCE=2 for linux targets
1 parent e6387bd commit e5a987a

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
@@ -650,6 +650,8 @@ build_single_target() {
650650
# Override defaults such as: 'lib/aarch64-linux-gnu'
651651
_CMAKE_GLOBAL="${_CMAKE_GLOBAL} -DCMAKE_INSTALL_LIBDIR=lib"
652652

653+
_CPPFLAGS_GLOBAL="${_CPPFLAGS_GLOBAL} -D_FORTIFY_SOURCE=2"
654+
653655
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC"
654656
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC"
655657

0 commit comments

Comments
 (0)