Skip to content

Commit

Permalink
Fix windows cross-compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
star-hengxing committed Jan 1, 2025
1 parent 9e59a2e commit c2ff310
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions packages/f/ffmpeg/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,11 @@ package("ffmpeg")
if package:is_arch("arm", "arm64") then
envs.PATH = path.join(os.programdir(), "scripts") .. path.envsep() .. envs.PATH
end
if package:is_cross() then
-- The makedef script always assumes that the AR environment variable is gnu ar
-- @see https://github.com/microsoft/vcpkg/issues/42365
envs.AR = nil
end
autoconf.install(package, configs, {envs = envs})
else
import("core.base.option")
Expand Down

0 comments on commit c2ff310

Please sign in to comment.