mirror of https://github.com/mpv-player/mpv
-lm added to -lGL, Sergei Golubchik <sergii@pisem.net>
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2097 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3c70ade9c1
commit
e2d5cc56c0
|
@ -865,9 +865,9 @@ $_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lXxf86vm $_socklib > /dev/null 2>&
|
||||||
|
|
||||||
# this is not yet checked with OpenBSD - atmos
|
# this is not yet checked with OpenBSD - atmos
|
||||||
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
|
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
|
||||||
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 && _gl=yes
|
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -lm -pthread $_socklib > /dev/null 2>&1 && _gl=yes
|
||||||
else
|
else
|
||||||
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 && _gl=yes
|
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -lm $_socklib > /dev/null 2>&1 && _gl=yes
|
||||||
fi
|
fi
|
||||||
|
|
||||||
cat > $TMPC << EOF
|
cat > $TMPC << EOF
|
||||||
|
@ -876,10 +876,10 @@ int main( void ) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
# this is not yet checked with OpenBSD - atmos
|
# this is not yet checked with OpenBSD - atmos
|
||||||
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
|
if [ "$system_name" = "FreeBSD" -o "$system_name" = "OpenBSD" ]; then
|
||||||
$_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -pthread $_socklib > /dev/null 2>&1 || \
|
$_cc $_x11incdir $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -lm -pthread $_socklib > /dev/null 2>&1 || \
|
||||||
{ _gl=no; echo "GL includes not found!";}
|
{ _gl=no; echo "GL includes not found!";}
|
||||||
else
|
else
|
||||||
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL $_socklib > /dev/null 2>&1 || \
|
$_cc $TMPC -o $TMPO $_x11libdir -lX11 -lXext -lGL -lm $_socklib > /dev/null 2>&1 || \
|
||||||
{ _gl=no; echo "GL includes not found!";}
|
{ _gl=no; echo "GL includes not found!";}
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue