From: Jan Palus Date: Sun, 18 Jul 2021 19:26:29 +0000 (+0200) Subject: drop superfluous flags X-Git-Tag: auto/th/mupdf-1.18.0-1 X-Git-Url: http://git.pld-linux.org/?p=packages%2Fmupdf.git;a=commitdiff_plain;h=72dec4f drop superfluous flags --- 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 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