configure: do not bypass cpuflags section if --cpu not given
authorMans Rullgard <mans@mansr.com>
Mon, 3 Dec 2012 19:21:42 +0000 (19:21 +0000)
committerMans Rullgard <mans@mansr.com>
Fri, 7 Dec 2012 16:54:03 +0000 (16:54 +0000)
This will allow arch-specific ways of determining the target
variant when none is specified on the command line.

Signed-off-by: Mans Rullgard <mans@mansr.com>
configure

index fbfafe0..0c13619 100755 (executable)
--- a/configure
+++ b/configure
@@ -2524,10 +2524,7 @@ is_in $arch $ARCH_LIST || warn "unknown architecture $arch"
 enable $arch
 
 # Add processor-specific flags
-if test "$cpu" = generic; then
-    : do nothing
-
-elif enabled aarch64; then
+if enabled aarch64; then
 
     case $cpu in
         armv*)
@@ -2680,8 +2677,10 @@ elif enabled x86; then
 
 fi
 
-add_cflags $cpuflags
-add_asflags $cpuflags
+if [ "$cpu" != generic ]; then
+    add_cflags  $cpuflags
+    add_asflags $cpuflags
+fi
 
 # compiler sanity check
 check_exec <<EOF