Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ffmpeg: use ar / nm / ranlib / strip from toolchain #15978

Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions recipes/ffmpeg/all/conanfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -537,12 +537,20 @@ def opt_append_disable_if_set(args, what, v):
if not self.options.with_programs:
args.append("--disable-programs")
# since ffmpeg"s build system ignores CC and CXX
if tools.get_env("AR"):
args.append("--ar={}".format(tools.get_env("AR")))
if tools.get_env("AS"):
args.append("--as={}".format(tools.get_env("AS")))
if tools.get_env("CC"):
args.append("--cc={}".format(tools.get_env("CC")))
if tools.get_env("CXX"):
args.append("--cxx={}".format(tools.get_env("CXX")))
if tools.get_env("NM"):
args.append("--nm={}".format(tools.get_env("NM")))
if tools.get_env("RANLIB"):
args.append("--ranlib={}".format(tools.get_env("RANLIB")))
if tools.get_env("STRIP"):
args.append("--strip={}".format(tools.get_env("STRIP")))
extra_cflags = []
extra_ldflags = []
if is_apple_os(self) and self.settings.os.version:
Expand Down