|
@@ -56,6 +56,11 @@ package("ffmpeg")
|
|
|
package:add("deps", dep)
|
|
|
end
|
|
|
end
|
|
|
+ -- https://www.ffmpeg.org/platform.html#toc-Advanced-linking-configuration
|
|
|
+ if package:config("pic") ~= false then
|
|
|
+ package:add("shflags", "-Wl,-Bsymbolic")
|
|
|
+ package:add("ldflags", "-Wl,-Bsymbolic")
|
|
|
+ end
|
|
|
end)
|
|
|
|
|
|
on_install("windows|x64", "mingw|x86_64", function (package)
|
|
@@ -86,6 +91,9 @@ package("ffmpeg")
|
|
|
else
|
|
|
table.insert(configs, "--disable-debug")
|
|
|
end
|
|
|
+ if package:config("pic") ~= false then
|
|
|
+ table.insert(configs, "--enable-pic")
|
|
|
+ end
|
|
|
if package:is_plat("android") then
|
|
|
import("core.base.option")
|
|
|
import("core.tool.toolchain")
|