void-packages/srcpkgs/libvidstab/patches/fix-cflags.patch

40 lines
1.5 KiB
Diff

Index: CMakeLists.txt
===================================================================
--- a/CMakeLists.txt
+++ b/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
===================================================================
--- a/tests/CMakeLists.txt
+++ b/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
===================================================================
--- a/transcode/CMakeLists.txt
+++ b/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)