mirror of
https://github.com/mpv-player/mpv
synced 2025-01-24 19:37:30 +01:00
configure: Move PIC test out of the x86 section
It is not only required on x86. git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@31729 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
c2e37e4346
commit
3f413403e8
27
configure
vendored
27
configure
vendored
@ -2515,6 +2515,21 @@ else
|
|||||||
fi
|
fi
|
||||||
echores $_asmalign_pot
|
echores $_asmalign_pot
|
||||||
|
|
||||||
|
|
||||||
|
echocheck "PIC"
|
||||||
|
pic=no
|
||||||
|
cat > $TMPC << EOF
|
||||||
|
int main(void) {
|
||||||
|
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
|
||||||
|
#error PIC not enabled
|
||||||
|
#endif
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
EOF
|
||||||
|
cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
|
||||||
|
echores $pic
|
||||||
|
|
||||||
|
|
||||||
if x86 ; then
|
if x86 ; then
|
||||||
echocheck "10 assembler operands"
|
echocheck "10 assembler operands"
|
||||||
ten_operands=no
|
ten_operands=no
|
||||||
@ -2552,18 +2567,6 @@ EOF
|
|||||||
cc_check && ebx_available=yes && def_ebx_available='#define HAVE_EBX_AVAILABLE 1'
|
cc_check && ebx_available=yes && def_ebx_available='#define HAVE_EBX_AVAILABLE 1'
|
||||||
echores $ebx_available
|
echores $ebx_available
|
||||||
|
|
||||||
echocheck "PIC"
|
|
||||||
pic=no
|
|
||||||
cat > $TMPC << EOF
|
|
||||||
int main(void) {
|
|
||||||
#if !(defined(__PIC__) || defined(__pic__) || defined(PIC))
|
|
||||||
#error PIC not enabled
|
|
||||||
#endif
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
EOF
|
|
||||||
cc_check && pic=yes && extra_cflags="$extra_cflags -DPIC"
|
|
||||||
echores $pic
|
|
||||||
|
|
||||||
echocheck "yasm"
|
echocheck "yasm"
|
||||||
if test -z "$YASMFLAGS" ; then
|
if test -z "$YASMFLAGS" ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user