mirror of
https://github.com/mpv-player/mpv
synced 2024-12-13 18:36:09 +00:00
catching SIGILL instead of dumping core - patch by Steven M. Schultz <sms@2BSD.COM>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@6130 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
d900b93493
commit
376e46cbf1
7
configure
vendored
7
configure
vendored
@ -722,7 +722,12 @@ if x86 && test "$_runtime_cpudetection" = no ; then
|
||||
if test "$1" = yes ; then
|
||||
echocheck "kernel support of $2"
|
||||
cat > $TMPC <<EOF
|
||||
int main(void){__asm__ __volatile__ ("$3":::"memory");return(0);}
|
||||
#include <signal.h>
|
||||
void catch() { exit(1); }
|
||||
int main(void){
|
||||
signal(SIGILL, catch);
|
||||
__asm__ __volatile__ ("$3":::"memory");return(0);
|
||||
}
|
||||
EOF
|
||||
|
||||
if ( cc_check && $TMPO ) > /dev/null 2>&1 ; then
|
||||
|
Loading…
Reference in New Issue
Block a user