зеркало из https://github.com/github/ruby.git
Try -fstack-protector-strong on MinGW
The CI for MinGW has used it.
This commit is contained in:
Родитель
2821423105
Коммит
0717cb8419
|
@ -32,10 +32,10 @@ jobs:
|
|||
MSYSTEM: ${{ matrix.msystem }}
|
||||
MSYS2_ARCH: x86_64
|
||||
CHOST: "x86_64-w64-mingw32"
|
||||
CFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe -fstack-protector-strong"
|
||||
CFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe"
|
||||
CXXFLAGS: "-march=x86-64 -mtune=generic -O3 -pipe"
|
||||
CPPFLAGS: "-D_FORTIFY_SOURCE=2 -D__USE_MINGW_ANSI_STDIO=1 -DFD_SETSIZE=2048"
|
||||
LDFLAGS: "-pipe -fstack-protector-strong"
|
||||
LDFLAGS: "-pipe"
|
||||
UPDATE_UNICODE: "UNICODE_FILES=. UNICODE_PROPERTY_FILES=. UNICODE_AUXILIARY_FILES=. UNICODE_EMOJI_FILES=."
|
||||
GITPULLOPTIONS: --no-tags origin ${{github.ref}}
|
||||
strategy:
|
||||
|
|
|
@ -794,7 +794,7 @@ AS_IF([test "$GCC" = yes], [
|
|||
|
||||
# -fstack-protector
|
||||
AS_CASE(["$target_os"],
|
||||
[mingw*|emscripten*|wasi*], [
|
||||
[emscripten*|wasi*], [
|
||||
stack_protector=no
|
||||
])
|
||||
AS_IF([test -z "${stack_protector+set}"], [
|
||||
|
@ -806,6 +806,8 @@ AS_IF([test "$GCC" = yes], [
|
|||
AS_IF([test "x$stack_protector" = xyes], [stack_protector=option; break])
|
||||
])
|
||||
])
|
||||
AC_MSG_CHECKING([for -fstack-protector])
|
||||
AC_MSG_RESULT(["$stack_protector"])
|
||||
AS_CASE(["$stack_protector"], [-*], [
|
||||
RUBY_APPEND_OPTION(XCFLAGS, $stack_protector)
|
||||
RUBY_APPEND_OPTION(XLDFLAGS, $stack_protector)
|
||||
|
|
Загрузка…
Ссылка в новой задаче