From bb117ec1b7c9de9516f16c5154cd6054a6f2a7f47861ed0339464c92f795f5db Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ismail=20D=C3=B6nmez?= Date: Fri, 5 Apr 2013 11:09:40 +0000 Subject: [PATCH] Accepting request 162666 from home:k0da:ppc - fix altivec CFLAGS (libmikmod-altivec.patch) OBS-URL: https://build.opensuse.org/request/show/162666 OBS-URL: https://build.opensuse.org/package/show/multimedia:libs/libmikmod?expand=0&rev=20 --- libmikmod-altivec.patch | 35 +++++++++++++++++++++++++++++++++++ libmikmod.changes | 5 +++++ libmikmod.spec | 2 ++ 3 files changed, 42 insertions(+) create mode 100644 libmikmod-altivec.patch diff --git a/libmikmod-altivec.patch b/libmikmod-altivec.patch new file mode 100644 index 0000000..22b0f17 --- /dev/null +++ b/libmikmod-altivec.patch @@ -0,0 +1,35 @@ +Index: libmikmod-3.2.0/configure +=================================================================== +--- libmikmod-3.2.0.orig/configure ++++ libmikmod-3.2.0/configure +@@ -13701,10 +13701,10 @@ $as_echo_n "checking whether to use alti + then + case `uname` in + Darwin) +- CFLAGS="$CFLAGS -faltivec -force_cpusubtype_ALL" ++ CFLAGS="$CFLAGS -maltivec -force_cpusubtype_ALL" + ;; + Linux) +- CFLAGS="$CFLAGS -faltivec" ++ CFLAGS="$CFLAGS -maltivec" + ;; + esac + fi +Index: libmikmod-3.2.0/configure.in +=================================================================== +--- libmikmod-3.2.0.orig/configure.in ++++ libmikmod-3.2.0/configure.in +@@ -720,11 +720,11 @@ ppc|ppc64|powerpc|powerpc64) + case `uname` in + Darwin) + dnl compile all Altivec functions, check at run-time +- CFLAGS="$CFLAGS -faltivec -force_cpusubtype_ALL" ++ CFLAGS="$CFLAGS -maltivec -force_cpusubtype_ALL" + ;; + Linux) + dnl force_cpusubtype_ALL not allowed for Linux as +- CFLAGS="$CFLAGS -faltivec" ++ CFLAGS="$CFLAGS -maltivec" + ;; + esac + fi diff --git a/libmikmod.changes b/libmikmod.changes index 47675d1..a8fba56 100644 --- a/libmikmod.changes +++ b/libmikmod.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Apr 4 21:56:30 UTC 2013 - dvaleev@suse.com + +- fix altivec CFLAGS (libmikmod-altivec.patch) + ------------------------------------------------------------------- Tue Mar 26 16:49:21 UTC 2013 - meissner@suse.com diff --git a/libmikmod.spec b/libmikmod.spec index 47f2df2..3708557 100644 --- a/libmikmod.spec +++ b/libmikmod.spec @@ -35,6 +35,7 @@ Source2: baselibs.conf Patch0: libmikmod-lp64.patch Patch1: CVE-2007-6720.diff Patch2: libmikmod-3.2.0-loopingvolume-fix.diff +Patch3: libmikmod-altivec.patch BuildRoot: %{_tmppath}/%{name}-%{version}-build %description @@ -93,6 +94,7 @@ mtm, xm, and it. %patch0 -p1 %patch1 -p1 %patch2 -p1 +%patch3 -p1 %build %configure --disable-static --with-pic