]> git.sesse.net Git - ffmpeg/commitdiff
FreeBSD pthread patch by ("Steven M. Schultz" <sms at 2BSD dot COM>)
authorSteven M. Schultz <sms@2bsd.com>
Fri, 16 Apr 2004 02:51:23 +0000 (02:51 +0000)
committerMichael Niedermayer <michaelni@gmx.at>
Fri, 16 Apr 2004 02:51:23 +0000 (02:51 +0000)
Originally committed as revision 3021 to svn://svn.ffmpeg.org/ffmpeg/trunk

configure

index 939877b348fb8368a835b16eed10ae777fc5f80a..53f14ca2f6240e29b779d626f2e4771e45cc1f41 100755 (executable)
--- 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