]> granicus.if.org Git - handbrake/commitdiff
LinGui: fix linking with mingw
authorjstebbins <jstebbins.hb@gmail.com>
Tue, 6 May 2014 15:02:07 +0000 (15:02 +0000)
committerjstebbins <jstebbins.hb@gmail.com>
Tue, 6 May 2014 15:02:07 +0000 (15:02 +0000)
Fedora's mingw pthreads no longer has pthread_win32_process_attach_np,
so force linking to the pthreadw32 contrib package.

git-svn-id: svn://svn.handbrake.fr/HandBrake/trunk@6173 b64f7644-9d1e-0410-96f1-a4d463321fa5

gtk/configure.ac

index 52da947b0519048dce5476dbb51e4163d06d7a2d..f24323bf1f7478588adf62f79209734ff9bcba4f 100644 (file)
@@ -171,16 +171,17 @@ fi
 GHB_TOOLS_CFLAGS=`$BUILD_PKG_CONFIG --cflags glib-2.0 gdk-pixbuf-2.0`
 GHB_TOOLS_LIBS=`$BUILD_PKG_CONFIG --libs glib-2.0 gdk-pixbuf-2.0`
 
-HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lpthread -lbluray -lass -lfontconfig -lfreetype -lxml2"
+HB_LIBS="-lhandbrake -lavresample -lavformat -lavcodec -lavutil -ldvdnav -ldvdread -lmp3lame -lvorbis -lvorbisenc -logg -lsamplerate -lx264 -lswscale -ltheoraenc -ltheoradec -lvpx -lz -lbz2 -lbluray -lass -lfontconfig -lfreetype -lxml2"
 
 case $host in
   *-*-mingw*)
     if test "x$use_libdl" = "xyes" ; then
-               HB_LIBS+=" -ldl"
+               HB_LIBS+=" -ldl -lpthreadGC2"
        fi
+    HB_LIBS+=" -lpthreadGC2"
     ;;
   *)
-    HB_LIBS+=" -ldl"
+    HB_LIBS+=" -ldl -lpthread"
     ;;
 esac