xstarter: hardening

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

View 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")

View File

@ -1,7 +1,7 @@
# Template file for 'xstarter'
pkgname=xstarter
version=0.8.0
revision=1
revision=2
build_style=cmake
hostmakedepends="pkg-config"
makedepends="glib-devel ncurses-devel"