Skip to content

Commit

Permalink
alpine-21
Browse files Browse the repository at this point in the history
  • Loading branch information
vszakats committed Sep 1, 2023
1 parent d04b2aa commit 32ebf7f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion _build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,12 @@ build_single_target() {
_CFLAGS_GLOBAL="${_CFLAGS_GLOBAL} -fPIC -fstack-protector-all"
_CXXFLAGS_GLOBAL="${_CXXFLAGS_GLOBAL} -fPIC -fstack-protector-all"

_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -static-pie -Wl,-z,relro,-z,now"
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -Wl,-z,relro,-z,now"

if [ "${_CRT}" = 'musl' ]; then
# _LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -static-pie"
_LDFLAGS_GLOBAL="${_LDFLAGS_GLOBAL} -static"
fi
fi

_CMAKE_GLOBAL="${_CMAKE_GLOBAL} -DCMAKE_INSTALL_MESSAGE=NEVER"
Expand Down

0 comments on commit 32ebf7f

Please sign in to comment.