traverso: hardening
This commit is contained in:
parent
e2b0cc6802
commit
e2f8037ae0
2 changed files with 29 additions and 1 deletions
28
srcpkgs/traverso/patches/cmake-build-type-none.patch
Normal file
28
srcpkgs/traverso/patches/cmake-build-type-none.patch
Normal file
|
@ -0,0 +1,28 @@
|
|||
Index: CMakeLists.txt
|
||||
===================================================================
|
||||
--- CMakeLists.txt.orig
|
||||
+++ CMakeLists.txt
|
||||
@@ -65,13 +65,7 @@ SET(TRAVERSO_DEFINES -DSTATIC_BUILD)
|
||||
|
||||
#BUILD SETUP
|
||||
#None, Debug, Release, .. or custom ones
|
||||
-IF(WANT_DEBUG)
|
||||
- SET(CMAKE_BUILD_TYPE DEBUG)
|
||||
- SET(WANT_TRAVERSO_DEBUG ON)
|
||||
-ELSE(WANT_DEBUG)
|
||||
- SET(CMAKE_BUILD_TYPE RELEASE)
|
||||
- LIST(APPEND TRAVERSO_DEFINES -DQT_NO_DEBUG)
|
||||
-ENDIF(WANT_DEBUG)
|
||||
+LIST(APPEND TRAVERSO_DEFINES -DQT_NO_DEBUG)
|
||||
|
||||
|
||||
IF(WANT_TRAVERSO_DEBUG)
|
||||
@@ -326,7 +320,7 @@ ${Qt5Xml_INCLUDE_DIRS}
|
||||
${Qt5Xml_INCLUDES}
|
||||
)
|
||||
|
||||
-set(CMAKE_CXX_FLAGS "-fPIC")
|
||||
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -fPIC")
|
||||
|
||||
#Set up libraries to link with all found packages
|
||||
LINK_LIBRARIES (
|
|
@ -1,7 +1,7 @@
|
|||
# Template file for 'traverso'
|
||||
pkgname=traverso
|
||||
version=0.49.6
|
||||
revision=1
|
||||
revision=2
|
||||
build_style=cmake
|
||||
configure_args="-DWANT_MP3_ENCODE=ON -DDETECT_HOST_CPU_FEATURES=OFF"
|
||||
hostmakedepends="pkg-config qt5-qmake qt5-host-tools"
|
||||
|
|
Loading…
Reference in a new issue