File: buildflags.patch

package info (click to toggle)
sumatra 1.0.36%2Bds-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 356 kB
  • sloc: ansic: 651; sh: 127; makefile: 60
file content (37 lines) | stat: -rw-r--r-- 864 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
Description: propagate all Debian build flags.
Author: Étienne Mollier <emollier@debian.org>
Bug-Debian: https://bugs.debian.org/1119579
Forwarded: not-needed
Last-Update: 2025-12-09
---
This patch header follows DEP-3: http://dep.debian.net/deps/dep3/
--- sumatra.orig/Makefile
+++ sumatra/Makefile
@@ -1,6 +1,6 @@
 PREFIX=/usr
 
-CFLAGS=-I$(PREFIX)/include
+CFLAGS += -I$(PREFIX)/include
 
 EXEC = sumatra
 
@@ -27,7 +27,7 @@
 # executable compilation and link
 
 sumatra: $(SUMATRA_OBJ)
-	$(CC) $(LDFLAGS) -o $@ -pthread $(SUMATRA_OBJ) $(LIBSUMAPATH) $(LIB)
+	$(CC) $(CPPFLAGS) $(CFLAGS) $(LDFLAGS) -o $@ -pthread $(SUMATRA_OBJ) $(LIBSUMAPATH) $(LIB)
 	
 ########
 #
--- sumatra.orig/global.mk
+++ sumatra/global.mk
@@ -17,7 +17,7 @@
 default: all
 
 %.o: %.c
-	$(CC) $(CFLAGS) -c -o $@ $< $(LIB)
+	$(CC) $(CPPFLAGS) $(CFLAGS) -c -o $@ $< $(LIB)
 
 
 ########