mirror of
https://github.com/mpv-player/mpv
synced 2025-01-29 11:12:56 +00:00
Prefer FSF-style AltiVec flags over Apple-style.
FSF gcc is better than Apple gcc. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26720 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
b77add3447
commit
1290235b58
6
configure
vendored
6
configure
vendored
@ -2418,11 +2418,9 @@ if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
|
||||
cat > $TMPC << EOF
|
||||
int main(void) { return 0; }
|
||||
EOF
|
||||
# check for Darwin-style flags first, since gcc-3.3 (August Update
|
||||
# from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
|
||||
cc_check -faltivec && _altivec_gcc_flags=-faltivec \
|
||||
|| cc_check -maltivec -mabi=altivec \
|
||||
cc_check -maltivec -mabi=altivec \
|
||||
&& _altivec_gcc_flags="-maltivec -mabi=altivec" \
|
||||
|| cc_check -faltivec && _altivec_gcc_flags=-faltivec \
|
||||
|| _altivec=no
|
||||
echores "$_altivec_gcc_flags"
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user