mirror of
https://github.com/mpv-player/mpv
synced 2025-01-01 12:22:22 +00:00
AMD-64's version of Suse ships a version of 3.3 hacked with broken
backported patches from gcc 3.4, which broke CPU + GCC version detection. Patch by Corey Hickey < bugfood - ml WOOP fatooh POUM org> git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@15708 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
2f376d1b39
commit
638b833133
15
configure
vendored
15
configure
vendored
@ -807,9 +807,9 @@ case "$host_arch" in
|
||||
fi
|
||||
;;
|
||||
15) iproc=686
|
||||
# athlon64 cpu-type only supported in gcc >= 3.4.0, but that will be
|
||||
# caught and remedied in the optimation tests below.
|
||||
proc=athlon64
|
||||
# k8 cpu-type only supported in gcc >= 3.4.0, but that will be
|
||||
# caught and remedied in the optimization tests below.
|
||||
proc=k8
|
||||
;;
|
||||
|
||||
*) proc=athlon-xp iproc=686 ;;
|
||||
@ -964,16 +964,15 @@ EOF
|
||||
_target_arch='TARGET_ARCH_X86_64 = yes'
|
||||
iproc='x86_64'
|
||||
|
||||
# athlon64 cpu-type only supported in gcc >= 3.4.0
|
||||
# also, gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead
|
||||
# gcc >= 3.4.0 doesn't support -mcpu, we have to use -mtune instead
|
||||
if test "$cc_vendor" = "gnu" && test "$_cc_major" -gt 3 -o "$_cc_major" -eq 3 -a "$_cc_minor" -ge 4 ; then
|
||||
proc=athlon64
|
||||
cpuopt=-mtune
|
||||
else
|
||||
proc=athlon-xp
|
||||
cpuopt=-mcpu
|
||||
fi
|
||||
|
||||
# k8 cpu-type only supported in gcc >= 3.4.0, but that will be
|
||||
# caught and remedied in the optimization tests below.
|
||||
proc=k8
|
||||
|
||||
echocheck "GCC & CPU optimization abilities"
|
||||
cat > $TMPC << EOF
|
||||
|
Loading…
Reference in New Issue
Block a user