msg2: hardening

This commit is contained in:
Đoàn Trần Công Danh 2021-03-26 21:20:13 +07:00
parent 57367a7692
commit 4670c4409e
2 changed files with 14 additions and 1 deletions

View file

@ -0,0 +1,13 @@
Index: CMakeLists.txt
===================================================================
--- CMakeLists.txt.orig
+++ CMakeLists.txt
@@ -3,7 +3,7 @@ project(msg2)
# Flags
set(CMAKE_CXX_STANDARD 17)
-set(CMAKE_CXX_FLAGS "-Os -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -pedantic -Wno-parentheses -Wfatal-errors")
+set(CMAKE_CXX_FLAGS "${CMAKE_CXX_FLAGS} -pipe -fPIC -fno-plt -fstack-protector-strong -Wall -Wshadow -pedantic -Wno-parentheses -Wfatal-errors")
# Add source files
add_executable(msg2 main.cpp)

View file

@ -1,7 +1,7 @@
# Template file for 'msg2'
pkgname=msg2
version=1.2.0
revision=1
revision=2
build_style=cmake
short_desc="Output a blue arrow and a white message on the commandline"
maintainer="Orphaned <orphan@voidlinux.org>"