File: 0004-use-debian-flavor-build-options.patch

package info (click to toggle)
mupdf 1.25.1%2Bds1-7
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 21,644 kB
  • sloc: ansic: 270,937; python: 20,709; java: 6,916; javascript: 1,865; makefile: 1,130; xml: 550; sh: 430; cpp: 325; cs: 313; awk: 10; sed: 7; lisp: 3
file content (25 lines) | stat: -rw-r--r-- 671 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
From: Kan-Ru Chen <kanru@kanru.info>
Date: Mon, 30 Apr 2018 09:40:47 +0900
Subject: use debian flavor build options

Do not strip binaries by default and use Debian LDFLAGS
---
 Makerules | 5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

diff --git a/Makerules b/Makerules
index f582dc0..67ff962 100644
--- a/Makerules
+++ b/Makerules
@@ -112,7 +112,10 @@ endif
 
 ifeq ($(build),debug)
   CFLAGS += -pipe -g
-  LDFLAGS += -g
+  LDFLAGS += -g $(LDREMOVEUNREACH)
+else ifeq ($(build),debian)
+  CFLAGS += -pipe -O2 -DNDEBUG 
+  LDFLAGS += -g $(LDREMOVEUNREACH)
 else ifeq ($(build),release)
   CFLAGS += -pipe -O2 -DNDEBUG
   LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s