From 4670c4409ee1857dbab9ee0fa2620c5c377bd0ab Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C4=90o=C3=A0n=20Tr=E1=BA=A7n=20C=C3=B4ng=20Danh?= Date: Fri, 26 Mar 2021 21:20:13 +0700 Subject: [PATCH] msg2: hardening --- srcpkgs/msg2/patches/fix-cflags.patch | 13 +++++++++++++ srcpkgs/msg2/template | 2 +- 2 files changed, 14 insertions(+), 1 deletion(-) create mode 100644 srcpkgs/msg2/patches/fix-cflags.patch diff --git a/srcpkgs/msg2/patches/fix-cflags.patch b/srcpkgs/msg2/patches/fix-cflags.patch new file mode 100644 index 00000000000..64404bf44fc --- /dev/null +++ b/srcpkgs/msg2/patches/fix-cflags.patch @@ -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) diff --git a/srcpkgs/msg2/template b/srcpkgs/msg2/template index b4f77400bf2..473b3c4ec4d 100644 --- a/srcpkgs/msg2/template +++ b/srcpkgs/msg2/template @@ -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 "