[packages/tini] adjust compile and link flags

atler atler at pld-linux.org
Fri Aug 23 16:20:58 CEST 2024


commit 6e4b933bf9b78e195b650faec5226005f0a062cb
Author: Jan Palus <atler at pld-linux.org>
Date:   Fri Aug 23 15:42:52 2024 +0200

    adjust compile and link flags

 flags.patch | 13 +++++++++++++
 tini.spec   |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/tini.spec b/tini.spec
index 854579a..f3be806 100644
--- a/tini.spec
+++ b/tini.spec
@@ -13,6 +13,7 @@ License:	MIT
 Group:		Base
 Source0:	https://github.com/krallin/tini/archive/v%{version}/%{name}-%{version}.tar.gz
 # Source0-md5:	72935bca9232313409a052833068fb1d
+Patch0:		flags.patch
 URL:		https://github.com/krallin/tini
 BuildRequires:	cmake >= 2.8.0
 %{?with_static:BuildRequires:	glibc-static}
@@ -46,6 +47,7 @@ sense if you do not use libc in your container.
 
 %prep
 %setup -q
+%patch0 -p1
 
 %build
 install -d build
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..08f2e1e
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,13 @@
+--- tini-0.19.0/CMakeLists.txt.orig	2020-04-19 19:33:22.000000000 +0200
++++ tini-0.19.0/CMakeLists.txt	2024-08-23 15:40:32.698990873 +0200
+@@ -53,8 +53,8 @@
+ 	add_definitions(-D_FORTIFY_SOURCE=2)
+ endif()
+ 
+-set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Werror -Wextra -Wall -pedantic-errors -O2 -fstack-protector --param=ssp-buffer-size=4 -Wformat")
+-set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bsymbolic-functions -Wl,-z,relro -Wl,-s")
++set (CMAKE_C_FLAGS "${CMAKE_C_FLAGS} -std=gnu99 -Werror -Wextra -Wall -pedantic-errors -Wformat")
++set (CMAKE_EXE_LINKER_FLAGS "${CMAKE_EXE_LINKER_FLAGS} -Wl,-Bsymbolic-functions -Wl,-z,relro")
+ 
+ # Build
+ 
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/tini.git/commitdiff/6e4b933bf9b78e195b650faec5226005f0a062cb



More information about the pld-cvs-commit mailing list