dislocker: remove -O1
This commit is contained in:
parent
3f6198c895
commit
3e0728c483
1 changed files with 13 additions and 0 deletions
13
srcpkgs/dislocker/patches/fix-cflags.patch
Normal file
13
srcpkgs/dislocker/patches/fix-cflags.patch
Normal file
|
@ -0,0 +1,13 @@
|
|||
Index: src/CMakeLists.txt
|
||||
===================================================================
|
||||
--- src/CMakeLists.txt.orig
|
||||
+++ src/CMakeLists.txt
|
||||
@@ -71,7 +71,7 @@ if(NOT DEFINED WARN_FLAGS)
|
||||
set (WARN_FLAGS "-Wall -Wextra" CACHE STRING "" FORCE)
|
||||
endif()
|
||||
if(NOT DEFINED HARDEN_FLAGS)
|
||||
- set (HARDEN_FLAGS "-fstack-protector -fstrict-aliasing -D_FORTIFY_SOURCE=2 -O1" CACHE STRING "" FORCE)
|
||||
+ set (HARDEN_FLAGS "-fstack-protector -fstrict-aliasing" CACHE STRING "" FORCE)
|
||||
endif()
|
||||
|
||||
set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -fPIC")
|
Loading…
Reference in a new issue