summaryrefslogtreecommitdiff
path: root/package/libx264/patches/patch-configure
blob: ed9d2ed94bffb314a7a3cb2163770785d1e36ea2 (plain)
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
--- libx264-1.0.1.orig/configure	2014-01-22 11:20:21.000000000 +0100
+++ libx264-1.0.1/configure	2014-01-22 19:42:21.000000000 +0100
@@ -662,7 +662,7 @@ case $host_cpu in
                 LDFLAGS="$LDFLAGS -arch armv7"
             fi
         else
-            AS="${AS-${cross_prefix}gcc}"
+            AS="${cross_prefix}gcc"
         fi
         ;;
     s390|s390x)
@@ -1007,9 +1007,9 @@ if [ "$debug" = "yes" ]; then
 elif [ $ARCH = ARM ]; then
     # arm-gcc-4.2 produces incorrect output with -ffast-math
     # and it doesn't save any speed anyway on 4.4, so disable it
-    CFLAGS="-O3 -fno-fast-math $CFLAGS"
+    CFLAGS="-fno-fast-math $CFLAGS"
 else
-    CFLAGS="-O3 -ffast-math $CFLAGS"
+    CFLAGS="-ffast-math $CFLAGS"
 fi
 
 if cc_check '' -fno-tree-vectorize ; then
@@ -1147,6 +1147,7 @@ bindir=$bindir
 libdir=$libdir
 includedir=$includedir
 ARCH=$ARCH
+ASM=$asm
 SYS=$SYS
 CC=$CC
 CFLAGS=$CFLAGS