depends, refactor: Avoid hardcoding host_prefix in toolchain file

This change allows the entire `depends/<host_prefix>` directory to be
relocatable.
This commit is contained in:
Hennadii Stepanov
2024-11-22 15:44:58 +00:00
parent 2638fdb4f9
commit d9c8aacce3
2 changed files with 2 additions and 3 deletions

View File

@@ -209,7 +209,6 @@ $(host_prefix)/toolchain.cmake : toolchain.cmake.in $(host_prefix)/.stamp_$(fina
-e 's|@STRIP@|$(host_STRIP)|' \
-e 's|@OBJCOPY@|$(host_OBJCOPY)|' \
-e 's|@OBJDUMP@|$(host_OBJDUMP)|' \
-e 's|@depends_prefix@|$(host_prefix)|' \
-e 's|@CFLAGS@|$(strip $(host_CFLAGS))|' \
-e 's|@CFLAGS_RELEASE@|$(strip $(host_release_CFLAGS))|' \
-e 's|@CFLAGS_DEBUG@|$(strip $(host_debug_CFLAGS))|' \