mirror of https://github.com/mpv-player/mpv
Simplify AltiVec compiler flag test.
Add a note about the new build system to the AUTHORS file. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@26719 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
dd73597f8c
commit
b77add3447
1
AUTHORS
1
AUTHORS
|
@ -133,6 +133,7 @@ Biurrun, Diego (DonDiego) <diego@biurrun.de>
|
||||||
* skin review part I
|
* skin review part I
|
||||||
* patch review
|
* patch review
|
||||||
* build system overhaul
|
* build system overhaul
|
||||||
|
* shiny new non-recursive build
|
||||||
|
|
||||||
Blomenkamp, Marcus <Marcus.Blomenkamp@epost.de>
|
Blomenkamp, Marcus <Marcus.Blomenkamp@epost.de>
|
||||||
* VIDIX patches (Rage128, Radeon 7000)
|
* VIDIX patches (Rage128, Radeon 7000)
|
||||||
|
|
|
@ -2414,25 +2414,17 @@ echores $_asmalign_pot
|
||||||
if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
|
if test "$_altivec" = yes || test "$_runtime_cpudetection" = yes ; then
|
||||||
|
|
||||||
# check if AltiVec is supported by the compiler, and how to enable it
|
# check if AltiVec is supported by the compiler, and how to enable it
|
||||||
echocheck "GCC altivec support"
|
echocheck "GCC AltiVec flags"
|
||||||
_altivec_gcc_flags=''
|
|
||||||
p='none'
|
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
int main(void) { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
FSF_flags='-maltivec -mabi=altivec'
|
|
||||||
Darwin_flags='-faltivec'
|
|
||||||
|
|
||||||
# check for Darwin-style flags first, since gcc-3.3 (August Update
|
# 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...
|
# from Apple) on MacOS 10.2.8 accepts but ignores FSF-style flags...
|
||||||
cc_check $Darwin_flags && p='Darwin' \
|
cc_check -faltivec && _altivec_gcc_flags=-faltivec \
|
||||||
|| cc_check $FSF_flags && p='FSF'
|
|| cc_check -maltivec -mabi=altivec \
|
||||||
case $p in
|
&& _altivec_gcc_flags="-maltivec -mabi=altivec" \
|
||||||
FSF) _altivec_gcc_flags="$FSF_flags" _altivec=yes ;;
|
|| _altivec=no
|
||||||
Darwin) _altivec_gcc_flags="$Darwin_flags" _altivec=yes ;;
|
echores "$_altivec_gcc_flags"
|
||||||
*) _altivec=no ;;
|
|
||||||
esac
|
|
||||||
echores "$p-style ($_altivec_gcc_flags)"
|
|
||||||
|
|
||||||
# check if <altivec.h> should be included
|
# check if <altivec.h> should be included
|
||||||
echocheck "altivec.h"
|
echocheck "altivec.h"
|
||||||
|
|
Loading…
Reference in New Issue