From 853a9cce964c48f03f8ec6445787e3b4d5342ce6 Mon Sep 17 00:00:00 2001 From: Ryan Prichard Date: Mon, 1 Nov 2021 16:55:09 -0700 Subject: [PATCH] Use a relative target for 'as' symlinks Bug: https://github.com/android/ndk/issues/1569 Test: checkbuild.py Test: verify that all symlinks are relative Test: Use -fno-integrated-as manually Change-Id: I977734b3681b341f86cf72a95a19a798682fb93c --- ndk/checkbuild.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ndk/checkbuild.py b/ndk/checkbuild.py index 651431d1..052a8f71 100755 --- a/ndk/checkbuild.py +++ b/ndk/checkbuild.py @@ -1526,7 +1526,7 @@ def install(self) -> None: if self.host is Host.Windows64: shutil.copy2(gas, triple_bin_dir / 'as.exe') else: - (triple_bin_dir / 'as').symlink_to(bin_dir / gas_name) + make_symlink(triple_bin_dir / 'as', bin_dir / gas_name) # Without a GCC lib directory, Clang will not consider the # toolchain to be a binutils directory, so won't find GAS when