[packages/xavs] drop custom optimization/debugging flags

atler atler at pld-linux.org
Wed Nov 26 01:47:07 CET 2025


commit de8722cb822c2cc660cffecf3155ebeb129f881a
Author: Jan Palus <atler at pld-linux.org>
Date:   Tue Nov 25 23:51:44 2025 +0100

    drop custom optimization/debugging flags

 flags.patch | 20 ++++++++++++++++++++
 xavs.spec   |  2 ++
 2 files changed, 22 insertions(+)
---
diff --git a/xavs.spec b/xavs.spec
index 9113227..134443c 100644
--- a/xavs.spec
+++ b/xavs.spec
@@ -19,6 +19,7 @@ Source0:	%{name}-r%{svnver}.tar.xz
 # Source0-md5:	c4f73561424d850a5c59ef202d85f0d7
 Patch0:		%{name}-dynamic-xavs.patch
 Patch1:		%{name}-asm.patch
+Patch2:		flags.patch
 URL:		http://xavs.sourceforge.net/
 BuildRequires:	tar >= 1:1.22
 # for svnversion
@@ -67,6 +68,7 @@ Statyczna biblioteka AVS.
 %setup -q -n %{name}
 %patch -P0 -p1
 %patch -P1 -p1
+%patch -P2 -p1
 
 %build
 # not autoconf script
diff --git a/flags.patch b/flags.patch
new file mode 100644
index 0000000..b7bc596
--- /dev/null
+++ b/flags.patch
@@ -0,0 +1,20 @@
+--- xavs/configure.orig	2025-11-25 23:39:57.331188206 +0100
++++ xavs/configure	2025-11-25 23:46:03.569957134 +0100
+@@ -403,17 +403,6 @@
+     cc_check stdio.h -Wl,-Bsymbolic && LDFLAGS="$LDFLAGS -Wl,-Bsymbolic"
+ fi
+ 
+-if [ "$debug" != "yes" -a "$gprof" != "yes" ]; then
+-    CFLAGS="$CFLAGS -s -fomit-frame-pointer"
+-    LDFLAGS="$LDFLAGS -s"
+-fi
+-
+-if [ "$debug" = "yes" ]; then
+-    CFLAGS="-O1 -g $CFLAGS"
+-else
+-    CFLAGS="-O4 -ffast-math $CFLAGS"
+-fi
+-
+ if cc_check "stdio.h" "" "fseeko(stdin,0,0);" ; then
+     echo "#define fseek fseeko" >> config.h
+     echo "#define ftell ftello" >> config.h
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/xavs.git/commitdiff/3eb0d5cd2e4a1c3a7df74cef51f589a1d678ab4b




More information about the pld-cvs-commit mailing list