-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathlibmpeg2-0.5.1.diff
More file actions
77 lines (75 loc) · 3.33 KB
/
libmpeg2-0.5.1.diff
File metadata and controls
77 lines (75 loc) · 3.33 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
# Patch fo fix CFLAGS
# Copyright (C) 2010-2016 Georgi D. Sotirov <gdsotirov@gmail.com>
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
# as published by the Free Software Foundation; either version 2
# of the License, or (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
#
# You should have received a copy of the GNU General Public License
# along with this program; if not, write to the Free Software
# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
#
# Visit SlackPack at https://sotirov-bg.net/slackpack/
#
diff -N -U 3 -r libmpeg2-0.5.1-orig/configure libmpeg2-0.5.1/configure
--- libmpeg2-0.5.1-orig/configure 2008-07-18 17:41:54.000000000 +0300
+++ libmpeg2-0.5.1/configure 2010-01-06 23:20:05.000000000 +0200
@@ -4859,11 +4859,11 @@
_ACEOF
case "$host" in
- i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
- i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
- i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
- i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
- k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
+ i386-*) TRY_CFLAGS="$OPT_CFLAGS -march=i386";;
+ i486-*) TRY_CFLAGS="$OPT_CFLAGS -march=i486";;
+ i586-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentium";;
+ i686-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentiumpro";;
+ k6-*) TRY_CFLAGS="$OPT_CFLAGS -march=k6";;
esac
{ echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
@@ -5084,7 +5084,7 @@
#define ARCH_SPARC
_ACEOF
- TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
+ TRY_CFLAGS="$OPT_CFLAGS -march=ultrasparc -mvis"
{ echo "$as_me:$LINENO: checking if $CC supports $TRY_CFLAGS $CFLAGS flags" >&5
echo $ECHO_N "checking if $CC supports $TRY_CFLAGS $CFLAGS flags... $ECHO_C" >&6; }
SAVE_CFLAGS="$CFLAGS"
diff -N -U 3 -r libmpeg2-0.5.1-orig/configure.ac libmpeg2-0.5.1/configure.ac
--- libmpeg2-0.5.1-orig/configure.ac 2008-07-18 17:30:17.000000000 +0300
+++ libmpeg2-0.5.1/configure.ac 2010-01-06 23:20:37.000000000 +0200
@@ -64,11 +64,11 @@
i?86-* | k?-* | x86_64-* | amd64-*)
AC_DEFINE([ARCH_X86],,[x86 architecture])
case "$host" in
- i386-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i386";;
- i486-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=i486";;
- i586-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentium";;
- i686-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=pentiumpro";;
- k6-*) TRY_CFLAGS="$OPT_CFLAGS -mcpu=k6";;
+ i386-*) TRY_CFLAGS="$OPT_CFLAGS -march=i386";;
+ i486-*) TRY_CFLAGS="$OPT_CFLAGS -march=i486";;
+ i586-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentium";;
+ i686-*) TRY_CFLAGS="$OPT_CFLAGS -march=pentiumpro";;
+ k6-*) TRY_CFLAGS="$OPT_CFLAGS -march=k6";;
esac
AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"]);;
ppc-* | powerpc-*)
@@ -97,7 +97,7 @@
done;;
sparc-* | sparc64-*)
AC_DEFINE([ARCH_SPARC],,[sparc architecture])
- TRY_CFLAGS="$OPT_CFLAGS -mcpu=ultrasparc -mvis"
+ TRY_CFLAGS="$OPT_CFLAGS -march=ultrasparc -mvis"
AC_TRY_CFLAGS([$TRY_CFLAGS $CFLAGS],[OPT_CFLAGS="$TRY_CFLAGS"]);;
alpha*)
AC_DEFINE([ARCH_ALPHA],,[alpha architecture]);;