File: hardening-no-fortify-functions.patch

package info (click to toggle)
osmo-tetra 0.0~git20230902.c0956b9-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 776 kB
  • sloc: ansic: 5,416; python: 1,002; sh: 187; makefile: 33
file content (14 lines) | stat: -rw-r--r-- 793 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Author: Nate Doris <nate.doris@gmail.com>
Description: in accordance with Debian's hardening rules [1], CPPFLAGS is required.
[1] https://wiki.debian.org/HardeningWalkthrough#Enabling_dpkg-buildflags_in_your_debian.2Frules_files
Index: osmo-tetra/src/Makefile
===================================================================
--- osmo-tetra.orig/src/Makefile	2025-11-01 19:14:44.604629653 +0100
+++ osmo-tetra/src/Makefile	2025-11-01 19:16:50.125702807 +0100
@@ -1,4 +1,5 @@
-CFLAGS=-g -O3 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.
+CFLAGS += -g -O3 -Wall `pkg-config --cflags libosmocore 2> /dev/null` -I.
+CFLAGS += `dpkg-buildflags --get CPPFLAGS`
 LDLIBS=`pkg-config --libs libosmocore 2> /dev/null` -losmocore
 
 all: conv_enc_test crc_test tetra-rx float_to_bits tunctl