From: Steven M. Schultz Date: Fri, 16 Apr 2004 02:51:23 +0000 (+0000) Subject: FreeBSD pthread patch by ("Steven M. Schultz" ) X-Git-Tag: android-x86-4.4-r1~42810 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=12043e1d8b541589eb70f0f5c0cc02db7482bcfb;p=android-x86%2Fexternal-ffmpeg.git FreeBSD pthread patch by ("Steven M. Schultz" ) Originally committed as revision 3021 to svn://svn.ffmpeg.org/ffmpeg/trunk --- diff --git a/configure b/configure index 939877b348..53f14ca2f6 100755 --- a/configure +++ b/configure @@ -224,7 +224,8 @@ v4l="no" audio_oss="yes" dv1394="no" make="gmake" -LDFLAGS="$LDFLAGS -export-dynamic" +CFLAGS="-pthread" +LDFLAGS="$LDFLAGS -export-dynamic -pthread" ;; BSD/OS) v4l="no" @@ -1092,7 +1093,9 @@ fi if test "$pthreads" = "yes" ; then echo "HAVE_PTHREADS=yes" >> config.mak echo "#define HAVE_PTHREADS 1" >> $TMPH - extralibs="$extralibs -lpthread" + if $targetos != FreeBSD; then + extralibs="$extralibs -lpthread" + fi fi if test "$sdl" = "yes" ; then echo "CONFIG_SDL=yes" >> config.mak