From d56662ea7c444525c4ff39d5ac0a40a211bcc358 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 13:55:41 +0700 Subject: [PATCH] libvidstab: remove -O3 --- srcpkgs/libvidstab/patches/fix-cflags.patch | 39 +++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 srcpkgs/libvidstab/patches/fix-cflags.patch diff --git a/srcpkgs/libvidstab/patches/fix-cflags.patch b/srcpkgs/libvidstab/patches/fix-cflags.patch new file mode 100644 index 00000000000..51c357efb10 --- /dev/null +++ b/srcpkgs/libvidstab/patches/fix-cflags.patch @@ -0,0 +1,39 @@ +Index: CMakeLists.txt +=================================================================== +--- CMakeLists.txt.orig ++++ CMakeLists.txt +@@ -25,7 +25,7 @@ else() + set(LIBSUFFIX "") + endif() + +-add_definitions( -Wall -O3 -g -Wno-pointer-sign -fPIC -std=gnu99) ++add_definitions( -Wall -Wno-pointer-sign -fPIC -std=gnu99) + # add_definitions( -Wall -O0 -g -Wno-pointer-sign ) + + ### ORC is not used in any active code at the moment ### +Index: tests/CMakeLists.txt +=================================================================== +--- tests/CMakeLists.txt.orig ++++ tests/CMakeLists.txt +@@ -11,7 +11,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT + option(USE_OMP "use parallelization use OMP" ON) + + #add_definitions( -Wall -O3 -Wno-pointer-sign -DTESTING -std=gnu99) +-add_definitions( -Wall -O0 -g -Wno-pointer-sign -DTESTING -std=gnu99) ++add_definitions( -Wall -Wno-pointer-sign -DTESTING -std=gnu99) + find_package(Orc) + if(ORC_FOUND) + add_definitions( -DUSE_ORC ${ORC_DEFINITIONS}) +Index: transcode/CMakeLists.txt +=================================================================== +--- transcode/CMakeLists.txt.orig ++++ transcode/CMakeLists.txt +@@ -9,7 +9,7 @@ set(CMAKE_MODULE_PATH ${CMAKE_MODULE_PAT + set(TRANSCODE_ROOT ../../transcode) + + +-add_definitions( -Wall -O3 -Wno-pointer-sign -DTRANSCODE -std=gnu99) ++add_definitions( -Wall -Wno-pointer-sign -DTRANSCODE -std=gnu99) + #add_definitions( -Wall -O0 -g -Wno-pointer-sign ) + # I tried it with 0.4.14 + # 0.4.10 did not work (not all opcode implemented)