[Mplayer-dev-eng] Re: FreeBSD support: part II
Vladimir Kushnir
vkushnir at Alfacom.net
Fri Jun 22 00:05:41 CEST 2001
Hello all,
Sorry that was the a little wrong patch. Here goes correction (against
today's CVS).
Regards,
Vladimir
--
Vladimir Kushnir - vkushnir at Alfacom.net
-------------- next part --------------
*** /home/volodya/devel/software/main/configure Wed Jun 20 21:40:50 2001
--- configure Thu Jun 21 11:31:00 2001
***************
*** 673,679 ****
int main (void) { return 0;}
EOF
! $_cc -I/usr/X11R6/unclude $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes
# Note: the -lXxf86vm library is the VideoMode extension and though it's
# not needed for DGA, AFAIK every distribution packages together with DGA
# stuffs named 'X extensions' or something similar. This check can be usefull
--- 673,679 ----
int main (void) { return 0;}
EOF
! $_cc $_x11incdir $TMPC -o $TMPO -L/usr/X11R6/lib -L/usr/X11/lib -lX11 -lXext -lXxf86dga -lXxf86vm $_socklib > /dev/null 2>&1 && _dga=yes
# Note: the -lXxf86vm library is the VideoMode extension and though it's
# not needed for DGA, AFAIK every distribution packages together with DGA
# stuffs named 'X extensions' or something similar. This check can be usefull
***************
*** 1284,1289 ****
--- 1284,1295 ----
CFLAGS="-O4 -march=$proc -mcpu=$proc -pipe -ffast-math -fomit-frame-pointer"
fi
fi
+ # Under FreeBSD (maybe other systems as well?) we have to add to CFLAGS
+ # for MT applications:
+ if [ "$system_name" = "FreeBSD" ]; then
+ CFLAGS="$CFLAGS -D_THREAD_SAFE"
+ fi
+
echo
echo "Creating $MCONF"
cat > $MCONF << EOF
More information about the MPlayer-dev-eng
mailing list