Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 897220 Details for
Bug 906000
app-crypt/yubihsm-shell-2.4.0 fails to compile (MUSL-SYSTEM): <command-line>: error: "_FORTIFY_SOURCE" redefined
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Stop CMake from adding compiler option -D_FORTIFY_SOURCE=2
yubihsm-shell-2.4.0-remove-hardcoded-compiler-opts.patch (text/plain), 1018 bytes, created by
Linus Nordberg
on 2024-07-06 19:36:37 UTC
(
hide
)
Description:
Stop CMake from adding compiler option -D_FORTIFY_SOURCE=2
Filename:
MIME Type:
Creator:
Linus Nordberg
Created:
2024-07-06 19:36:37 UTC
Size:
1018 bytes
patch
obsolete
>diff -ru yubihsm-shell-2.4.0-orig/cmake/SecurityFlags.cmake yubihsm-shell-2.4.0/cmake/SecurityFlags.cmake >--- yubihsm-shell-2.4.0-orig/cmake/SecurityFlags.cmake 2023-01-21 21:29:44.000000000 +0100 >+++ yubihsm-shell-2.4.0/cmake/SecurityFlags.cmake 2024-07-06 19:47:10.316666675 +0200 >@@ -4,7 +4,7 @@ > CMAKE_C_COMPILER_ID STREQUAL "AppleClang" OR > CMAKE_C_COMPILER_ID STREQUAL "GNU") > >- add_compile_options (-Wall -Wextra -Werror) >+ add_compile_options (-Wall -Wextra) > add_compile_options (-Wformat -Wformat-nonliteral -Wformat-security) > add_compile_options (-Wshadow) > add_compile_options (-Wcast-qual) >@@ -12,10 +12,6 @@ > add_compile_options (-Wbad-function-cast) > add_compile_options (-pedantic -pedantic-errors) > add_compile_options (-fpie -fpic) >- if (NOT FUZZ) >- add_compile_options(-O2) >- add_definitions (-D_FORTIFY_SOURCE=2) >- endif () > > check_c_compiler_flag("-fstack-protector-all" HAVE_STACK_PROTECTOR_ALL) > if (HAVE_STACK_PROTECTOR_ALL)
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 906000
:
861363
| 897220