File: 0003-allow-debian-flags-to-be-added.patch

package info (click to toggle)
intel-cmt-cat 25.04-1
  • links: PTS
  • area: main
  • in suites: trixie
  • size: 7,728 kB
  • sloc: ansic: 52,004; python: 11,324; makefile: 2,201; perl: 1,165; javascript: 37; sh: 23
file content (64 lines) | stat: -rw-r--r-- 2,623 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
Description: Hard code in hardening options
Forwarded: not-needed
Author: Colin Ian King <colin.i.king@gmail.com>

Index: intel-cmt-cat-25.04/lib/Makefile
===================================================================
--- intel-cmt-cat-25.04.orig/lib/Makefile
+++ intel-cmt-cat-25.04/lib/Makefile
@@ -39,8 +39,8 @@ LIB = libpqos
 VERSION = 6.0.1
 SO_VERSION = 6
 SHARED ?= y
-LDFLAGS = -L. -lpthread -z noexecstack -z relro -z now
-CFLAGS = -pthread -I./ -D_GNU_SOURCE \
+LDFLAGS += -L. -lpthread -z noexecstack -z relro -z now
+CFLAGS += -pthread -I./ -D_GNU_SOURCE \
 	-W -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
 	-Wmissing-declarations -Wold-style-definition -Wpointer-arith \
 	-Wcast-qual -Wundef -Wwrite-strings \
Index: intel-cmt-cat-25.04/pqos/Makefile
===================================================================
--- intel-cmt-cat-25.04.orig/pqos/Makefile
+++ intel-cmt-cat-25.04/pqos/Makefile
@@ -38,9 +38,9 @@ include ../pre-build.mk
 
 OBJDIR = obj
 LIBDIR ?= ../lib
-LDFLAGS = -L$(LIBDIR) -pie -z noexecstack -z relro -z now
+LDFLAGS += -L$(LIBDIR) -pie -z noexecstack -z relro -z now
 LDLIBS = -lpqos -lpthread
-CFLAGS = -I$(LIBDIR) \
+CFLAGS += -I$(LIBDIR) \
 	-W -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
 	-Wmissing-declarations -Wold-style-definition -Wpointer-arith \
 	-Wcast-qual -Wundef -Wwrite-strings \
Index: intel-cmt-cat-25.04/rdtset/Makefile
===================================================================
--- intel-cmt-cat-25.04.orig/rdtset/Makefile
+++ intel-cmt-cat-25.04/rdtset/Makefile
@@ -37,9 +37,9 @@
 include ../pre-build.mk
 
 LIBDIR ?= ../lib
-LDFLAGS = -L$(LIBDIR) -pie -z noexecstack -z relro -z now
+LDFLAGS += -L$(LIBDIR) -pie -z noexecstack -z relro -z now
 LDLIBS = -lpqos -lpthread
-CFLAGS = -I$(LIBDIR) \
+CFLAGS += -I$(LIBDIR) \
 	-W -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
 	-Wmissing-declarations -Wold-style-definition -Wpointer-arith \
 	-Wcast-qual -Wundef -Wwrite-strings \
Index: intel-cmt-cat-25.04/tools/membw/Makefile
===================================================================
--- intel-cmt-cat-25.04.orig/tools/membw/Makefile
+++ intel-cmt-cat-25.04/tools/membw/Makefile
@@ -44,7 +44,7 @@ PREFIX ?= /usr/local
 BIN_DIR = $(DESTDIR)/usr/bin
 MAN_DIR = $(DESTDIR)/usr/share/man/man8
 
-CFLAGS=-W -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
+CFLAGS += -W -Wall -Wextra -Wstrict-prototypes -Wmissing-prototypes \
 	-Wmissing-declarations -Wold-style-definition -Wpointer-arith \
 	-Wcast-qual -Wundef -Wwrite-strings \
 	-Wformat -Wformat-security -fstack-protector-strong -fPIE \