diff options
author | Mike Lundy <mlundy@splunk.com> | 2024-11-01 18:13:23 -0700 |
---|---|---|
committer | Chris Packham <judge.packham@gmail.com> | 2024-11-17 20:00:37 +1300 |
commit | 1c395b298d2436244b9e7ef82c58364f6f2f54ed (patch) | |
tree | 9589c4d70487e202e7259721cd98b8382b4c719e | |
parent | 558d67ec0df4bcdf495376629639ebaffd8b1fe6 (diff) | |
download | crosstool-ng-1c395b298d2436244b9e7ef82c58364f6f2f54ed.tar.gz crosstool-ng-1c395b298d2436244b9e7ef82c58364f6f2f54ed.tar.bz2 crosstool-ng-1c395b298d2436244b9e7ef82c58364f6f2f54ed.zip |
mold: tell cmake which compilers to use
The mold build was using gcc in the PATH, instead of the shiny gcc we
just built (the way the other companion libs/tools do)
Signed-off-by: Mike Lundy <mlundy@splunk.com>
-rw-r--r-- | scripts/build/linker/100-mold.sh | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/build/linker/100-mold.sh b/scripts/build/linker/100-mold.sh index 710ca969..c743c9c7 100644 --- a/scripts/build/linker/100-mold.sh +++ b/scripts/build/linker/100-mold.sh @@ -16,6 +16,8 @@ do_linker_mold_build() { CT_DoLog EXTRA "Configuring mold for host" CT_DoExecLog CFG \ + CC="${CT_HOST}-gcc" \ + CXX="${CT_HOST}-g++" \ CFLAGS="${CT_CFLAGS_FOR_HOST}" \ LDFLAGS="${CT_LDFLAGS_FOR_HOST}" \ cmake "${CT_SRC_DIR}/mold" \ |