浏览代码

add pthread for ffmpeg

ruki 6 年之前
父节点
当前提交
5ad9540e13
共有 1 个文件被更改,包括 2 次插入0 次删除
  1. 2 0
      packages/f/ffmpeg/xmake.lua

+ 2 - 0
packages/f/ffmpeg/xmake.lua

@@ -22,6 +22,8 @@ package("ffmpeg")
     add_links("avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
     add_links("avfilter", "avdevice", "avformat", "avcodec", "swscale", "swresample", "avutil")
     if is_plat("macosx") then
     if is_plat("macosx") then
         add_frameworks("CoreFoundation", "Foundation", "CoreVideo", "CoreMedia", "AudioToolbox", "VideoToolbox", "Security")
         add_frameworks("CoreFoundation", "Foundation", "CoreVideo", "CoreMedia", "AudioToolbox", "VideoToolbox", "Security")
+    elseif is_plat("linux") then
+        add_syslinks("pthread")
     end
     end
 
 
     if is_plat("macosx", "linux") then
     if is_plat("macosx", "linux") then