Remove -flto from LLVM & Clang plugins
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
This commit is contained in:
parent
ae694799b2
commit
f8ba357744
|
@ -0,0 +1,40 @@
|
|||
From 01ac24b72b225d74e3685f02d2967b2d80b4184d Mon Sep 17 00:00:00 2001
|
||||
From: David Abdurachmanov <davidlt@rivosinc.com>
|
||||
Date: Thu, 4 Aug 2022 07:05:05 +0300
|
||||
Subject: [PATCH] Remove -flto from Clang & LLVM plugins
|
||||
|
||||
This requres LLVMgold.so, which is not supported right now.
|
||||
|
||||
Signed-off-by: David Abdurachmanov <davidlt@rivosinc.com>
|
||||
---
|
||||
clang-plugin/Makefile.in | 1 -
|
||||
llvm-plugin/Makefile.in | 1 -
|
||||
2 files changed, 2 deletions(-)
|
||||
|
||||
diff --git a/clang-plugin/Makefile.in b/clang-plugin/Makefile.in
|
||||
index 5e4dc24..26cd5d9 100644
|
||||
--- a/clang-plugin/Makefile.in
|
||||
+++ b/clang-plugin/Makefile.in
|
||||
@@ -14,7 +14,6 @@ PLUGIN_OPTIONS = \
|
||||
-fPIC \
|
||||
-Wall \
|
||||
-O2 \
|
||||
- -flto \
|
||||
-g -grecord-gcc-switches \
|
||||
-Wl,--build-id=md5 \
|
||||
-Wl,-z,now
|
||||
diff --git a/llvm-plugin/Makefile.in b/llvm-plugin/Makefile.in
|
||||
index 1148a1c..fb333ab 100644
|
||||
--- a/llvm-plugin/Makefile.in
|
||||
+++ b/llvm-plugin/Makefile.in
|
||||
@@ -14,7 +14,6 @@ PLUGIN_OPTIONS = \
|
||||
-fPIC \
|
||||
-Wall \
|
||||
-O2 \
|
||||
- -flto \
|
||||
-g -grecord-gcc-switches \
|
||||
-Wl,--build-id=md5 \
|
||||
-Wl,-z,now
|
||||
--
|
||||
2.37.1
|
||||
|
|
@ -76,6 +76,7 @@ Source: https://nickc.fedorapeople.org/%{annobin_sources}
|
|||
# Patch01: annobin-foo.patch
|
||||
|
||||
Patch10: 0001-Set-target_plugin-for-riscv.patch
|
||||
Patch11: 0001-Remove-flto-from-Clang-LLVM-plugins.patch
|
||||
|
||||
#---------------------------------------------------------------------------------
|
||||
|
||||
|
|
Loading…
Reference in New Issue