vlc | branch: master | Felix Paul Kühne <[email protected]> | Wed Nov 27 16:16:04 2019 +0100| [43826f9fd75b53346c79ba9b8071237c03723c9e] | committer: Felix Paul Kühne
apple/build: fix cross-compilation for x86_64 > http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=43826f9fd75b53346c79ba9b8071237c03723c9e --- extras/package/apple/build.sh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/extras/package/apple/build.sh b/extras/package/apple/build.sh index 5f7f0ed6f5..f35dcd4de0 100755 --- a/extras/package/apple/build.sh +++ b/extras/package/apple/build.sh @@ -407,11 +407,14 @@ check_tool xcrun # Validate given SDK name validate_sdk_name "$VLC_APPLE_SDK_NAME" +# Set triplet (query the compiler for this) +# FIXME: we hard-code the version number here so HOST and BUILD will not be same +# which fixes cross-compilation for x86_64 +# note that for 'aarch64', we need to specify it like this here and sanity to 'arm64' afterwards +readonly VLC_HOST_TRIPLET="${VLC_HOST_ARCH}-apple-darwin18" + # Validate architecture argument validate_architecture "$VLC_HOST_ARCH" - -# Set triplet (query the compiler for this) -readonly VLC_HOST_TRIPLET="$(${CC:-cc} -arch "$VLC_HOST_ARCH" -dumpmachine)" # Set pseudo-triplet readonly VLC_PSEUDO_TRIPLET="${VLC_HOST_ARCH}-apple-${VLC_HOST_PLATFORM}_${VLC_DEPLOYMENT_TARGET}" # Contrib install dir _______________________________________________ vlc-commits mailing list [email protected] https://mailman.videolan.org/listinfo/vlc-commits
