From 3e0728c483e525035cc86efac0d4b3cea194069f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Sat, 27 Mar 2021 12:22:29 +0700 Subject: [PATCH] dislocker: remove -O1 --- srcpkgs/dislocker/patches/fix-cflags.patch | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 srcpkgs/dislocker/patches/fix-cflags.patch diff --git a/srcpkgs/dislocker/patches/fix-cflags.patch b/srcpkgs/dislocker/patches/fix-cflags.patch new file mode 100644 index 00000000000..1229efeeaf0 --- /dev/null +++ b/srcpkgs/dislocker/patches/fix-cflags.patch @@ -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")