From 5f674355701aabb1ef8ea7241f88633c9d0c46df Mon Sep 17 00:00:00 2001 From: InsanePrawn Date: Thu, 7 Oct 2021 13:51:01 +0200 Subject: [PATCH] Really really make crossdirect work: symlink /usr/include to /include --- chroot.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/chroot.py b/chroot.py index 6c090d4..63556af 100644 --- a/chroot.py +++ b/chroot.py @@ -175,8 +175,10 @@ def mount_crossdirect(native_chroot: str, target_chroot: str, target_arch: str, cc_path = os.path.join(native_chroot, 'usr', 'bin', cc) target_lib_dir = os.path.join(target_chroot, 'lib64') + # TODO: crosscompiler weirdness, find proper fix for /include instead of /usr/include + target_include_dir = os.path.join(target_chroot, 'include') - for target, source in {cc_path: gcc, target_lib_dir: 'lib'}.items(): + for target, source in {cc_path: gcc, target_lib_dir: 'lib', target_include_dir: 'usr/include'}.items(): if not os.path.exists(target): logging.debug(f'Symlinking {source} at {target}') os.symlink(source, target)