traverso: hardening

This commit is contained in:
Đoàn Trần Công Danh 2021-03-27 19:04:09 +07:00
parent e2b0cc6802
commit e2f8037ae0
2 changed files with 29 additions and 1 deletions

View 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 (

View file

@ -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"