[packages/mupdf] drop superfluous flags

atler atler at pld-linux.org
Sun Jul 18 21:27:34 CEST 2021


commit 72dec4f3182976e64d7927e9939b9f2b14c4c8d3
Author: Jan Palus <atler at pld-linux.org>
Date:   Sun Jul 18 21:26:29 2021 +0200

    drop superfluous flags

 mupdf-flags.patch | 13 +++++++++++++
 mupdf.spec        |  2 ++
 2 files changed, 15 insertions(+)
---
diff --git a/mupdf.spec b/mupdf.spec
index 1d95cc3..bae605a 100644
--- a/mupdf.spec
+++ b/mupdf.spec
@@ -8,6 +8,7 @@ Group:		Applications/Text
 Source0:	https://www.mupdf.com/downloads/archive/%{name}-%{version}-source.tar.gz
 # Source0-md5:	6f42be1365350f05270f8776517a3872
 Patch0:		%{name}-soname.patch
+Patch1:		%{name}-flags.patch
 URL:		https://www.mupdf.com/
 BuildRequires:	OpenGL-glut-devel
 BuildRequires:	curl-devel >= 7.66.0
@@ -92,6 +93,7 @@ Statyczne biblioteki MuPDF.
 %prep
 %setup -q -n %{name}-%{version}-source
 %patch0 -p1
+%patch1 -p1
 
 # use system libs instead:
 # curl 7.66.0
diff --git a/mupdf-flags.patch b/mupdf-flags.patch
new file mode 100644
index 0000000..5f70682
--- /dev/null
+++ b/mupdf-flags.patch
@@ -0,0 +1,13 @@
+--- mupdf-1.18.0-source/Makerules.orig	2020-10-07 12:35:03.000000000 +0200
++++ mupdf-1.18.0-source/Makerules	2021-07-18 20:55:06.667136139 +0200
+@@ -40,8 +40,8 @@
+   CFLAGS += -pipe -g
+   LDFLAGS += -g
+ else ifeq ($(build),release)
+-  CFLAGS += -pipe -O2 -DNDEBUG -fomit-frame-pointer
+-  LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
++  CFLAGS += -DNDEBUG
++  LDFLAGS += $(LDREMOVEUNREACH)
+ else ifeq ($(build),small)
+   CFLAGS += -pipe -Os -DNDEBUG -fomit-frame-pointer
+   LDFLAGS += $(LDREMOVEUNREACH) -Wl,-s
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/mupdf.git/commitdiff/72dec4f3182976e64d7927e9939b9f2b14c4c8d3



More information about the pld-cvs-commit mailing list