xstarter: hardening
This commit is contained in:
parent
e2f8037ae0
commit
bb3a94e7ce
2 changed files with 23 additions and 1 deletions
22
srcpkgs/xstarter/patches/cmake-build-type-none.patch
Normal file
22
srcpkgs/xstarter/patches/cmake-build-type-none.patch
Normal file
|
@ -0,0 +1,22 @@
|
||||||
|
Index: CMakeLists.txt
|
||||||
|
===================================================================
|
||||||
|
--- CMakeLists.txt.orig
|
||||||
|
+++ CMakeLists.txt
|
||||||
|
@@ -5,16 +5,8 @@ CMAKE_MINIMUM_REQUIRED(VERSION 2.8)
|
||||||
|
|
||||||
|
project(xstarter)
|
||||||
|
|
||||||
|
-if(NOT CMAKE_BUILD_TYPE)
|
||||||
|
- set(CMAKE_BUILD_TYPE Debug CACHE STRING "Choose the type of build (Debug or Release)" FORCE)
|
||||||
|
-endif()
|
||||||
|
-
|
||||||
|
set(PROJECT_VERSION "0.8.0")
|
||||||
|
-if (CMAKE_BUILD_TYPE STREQUAL Debug)
|
||||||
|
- set(CMAKE_C_FLAGS "-g -Wall -pedantic")
|
||||||
|
-else()
|
||||||
|
- set(CMAKE_C_FLAGS "-Wall -pedantic -O3")
|
||||||
|
-endif()
|
||||||
|
+set(CMAKE_C_FLAGS "-Wall -pedantic ${CMAKE_C_FLAGS}")
|
||||||
|
set(CMAKE_RUNTIME_OUTPUT_DIRECTORY "${CMAKE_SOURCE_DIR}/bin")
|
||||||
|
|
||||||
|
set (CMAKE_MODULE_PATH "${CMAKE_SOURCE_DIR}/cmake")
|
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'xstarter'
|
# Template file for 'xstarter'
|
||||||
pkgname=xstarter
|
pkgname=xstarter
|
||||||
version=0.8.0
|
version=0.8.0
|
||||||
revision=1
|
revision=2
|
||||||
build_style=cmake
|
build_style=cmake
|
||||||
hostmakedepends="pkg-config"
|
hostmakedepends="pkg-config"
|
||||||
makedepends="glib-devel ncurses-devel"
|
makedepends="glib-devel ncurses-devel"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue