File: 0002-Add-CPPFLAGS-to-upstream-makefiles.patch

package info (click to toggle)
valkey 8.1.1%2Bdfsg1-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 22,772 kB
  • sloc: ansic: 216,193; tcl: 52,362; sh: 4,516; perl: 4,214; makefile: 2,003; python: 1,397; ruby: 886; cpp: 539; javascript: 30; csh: 7
file content (64 lines) | stat: -rw-r--r-- 1,920 bytes parent folder | download
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
From: Chris Lamb <lamby@debian.org>
Date: Mon, 28 Apr 2025 15:45:49 -0300
Subject: Add CPPFLAGS to upstream makefiles

Last-Update: 30-10-2015
---
 deps/fpconv/Makefile        | 2 +-
 deps/hdr_histogram/Makefile | 2 +-
 deps/linenoise/Makefile     | 2 +-
 src/Makefile                | 2 +-
 4 files changed, 4 insertions(+), 4 deletions(-)

diff --git a/deps/fpconv/Makefile b/deps/fpconv/Makefile
index 2654888..64d2ed0 100644
--- a/deps/fpconv/Makefile
+++ b/deps/fpconv/Makefile
@@ -2,7 +2,7 @@ STD=
 WARN= -Wall
 OPT= -Os
 
-R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
+R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(CPPFLAGS)
 R_LDFLAGS= $(LDFLAGS)
 DEBUG= -g
 
diff --git a/deps/hdr_histogram/Makefile b/deps/hdr_histogram/Makefile
index 28dd93e..3a6413e 100644
--- a/deps/hdr_histogram/Makefile
+++ b/deps/hdr_histogram/Makefile
@@ -2,7 +2,7 @@ STD= -std=c99
 WARN= -Wall
 OPT= -Os
 
-R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) -DHDR_MALLOC_INCLUDE=\"hdr_redis_malloc.h\"
+R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS) $(CPPFLAGS) -DHDR_MALLOC_INCLUDE=\"hdr_redis_malloc.h\"
 R_LDFLAGS= $(LDFLAGS)
 DEBUG= -g
 
diff --git a/deps/linenoise/Makefile b/deps/linenoise/Makefile
index 1dd894b..12ada21 100644
--- a/deps/linenoise/Makefile
+++ b/deps/linenoise/Makefile
@@ -6,7 +6,7 @@ R_CFLAGS= $(STD) $(WARN) $(OPT) $(DEBUG) $(CFLAGS)
 R_LDFLAGS= $(LDFLAGS)
 DEBUG= -g
 
-R_CC=$(CC) $(R_CFLAGS)
+R_CC=$(CC) $(R_CFLAGS) $(CPPFLAGS)
 R_LD=$(CC) $(R_LDFLAGS)
 
 linenoise.o: linenoise.h linenoise.c
diff --git a/src/Makefile b/src/Makefile
index 1437f41..ac88fc0 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -385,7 +385,7 @@ else
 	MAYBE_UNINSTALL_REDIS_SYMLINK=
 endif
 
-SERVER_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS)
+SERVER_CC=$(QUIET_CC)$(CC) $(FINAL_CFLAGS) $(CPPFLAGS)
 SERVER_AR=$(QUIET_AR)$(AR)
 SERVER_LD=$(QUIET_LINK)$(CC) $(FINAL_LDFLAGS)
 ENGINE_INSTALL=$(QUIET_INSTALL)$(INSTALL)