updated on Thu Jan 26 12:02:26 UTC 2012
[aur-mirror.git] / cromfs / make-generic.patch
blob4a3841a355714dd9a1f41abddf7705cc4a3e2983
1 diff -aur old/configure new/configure
2 --- old/configure 2011-01-16 14:01:44.453354844 +0100
3 +++ new/configure 2011-01-16 14:25:19.110021633 +0100
4 @@ -86,10 +86,9 @@
5 fi
8 -CFLAGS=""
9 -CPPFLAGS=""
10 -LDFLAGS=""
11 -OPTIM=""
12 +CPPFLAGS="$CXXFLAGS"
13 +LDFLAGS="$LDFLAGS"
14 +OPTIM="$CFLAGS"
16 do_echo -n "Determining compiler version to use... "
17 select_tool CXX g++ icc `(IFS=':'; for s in $PATH;do cd "$s"&&echo g++-*;done) 2>/dev/null`
18 @@ -401,33 +400,6 @@
19 done
20 fi
22 -(echo "Your CPU has these features:"
23 - grep flags /proc/cpuinfo | uniq | sed 's/.*://' | tr ' ' '\012'|sort|grep .|(fmt -w60||cat)|sed 's/^/- /'
24 -) >> $DEVNULL
26 -if [ ! "$CC" = "icc" ]; then
27 - cpu_check MMX mmx -mmmx __MMX__
28 - cpu_check 3dnow 3dnow -m3dnow
29 - cpu_check SSE sse -msse __SSE__
30 - cpu_check SSE2 sse2 -msse2 __SSE2__
31 - cpu_check SSE3 sse3 -msse3 __SSE3__
32 - cpu_check SSSE3 ssse3 -mssse3 __SSSE3__
33 - #cpu_check ABM abm -abm __SSE4_2__
34 - cpu_check sahf lahf_lm -msahf HAS_SAHF
35 -else
36 - # ICC can only take one (1) cpu feature flag, so we test these options
37 - # in age succession and choose the options from the last succeeding test.
38 - # We use the -ax options rather than the -x options so that the code
39 - # will still run on processors lacking those features.
40 - BEST_CPUFEATURE=""
41 - OPTIM_BACKUP="$OPTIM"
42 - cpu_check SSE sse -xK __SSE__
43 - cpu_check SSE2 sse2 -xW __SSE2__
44 - cpu_check SSE3 sse3 "-xO -msse3" __SSE3__
45 - cpu_check SSSE3 ssse3 "-xT -mssse3" __SSSE3__
46 - OPTIM="$OPTIM_BACKUP $BEST_CPUFEATURE"
47 -fi
49 do_echo "Updating Makefile.sets ..."
51 DATE="`LC_ALL=C date`"