forked from cms-sw/cmsdist
-
Notifications
You must be signed in to change notification settings - Fork 0
/
cmssw-lto.patch
34 lines (33 loc) · 1.34 KB
/
cmssw-lto.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
diff --git a/config/BuildFile.xml b/config/BuildFile.xml
index 3964dde..628ce06 100755
--- a/config/BuildFile.xml
+++ b/config/BuildFile.xml
@@ -29,6 +29,19 @@
<flags REM_LCGDICT_CXXFLAGS="-fipa%"/>
<flags LCGDICT_CXXFLAGS="-Os -Wno-unused-variable"/>
<flags CXXFLAGS="-DBOOST_DISABLE_ASSERTS"/>
+<flags REM_LCGDICT_CXXFLAGS="-flto%"/>
+<flags REM_LCGDICT_CXXFLAGS="-fno-fat-lto-objects%"/>
+<flags REM_LCGDICT_CXXFLAGS="-ffunction-sections%"/>
+<flags REM_CXXFLAGS="-fipa%"/>
+<flags LCGDICT_CXXFLAGS="-Os -Wno-unused-variable"/>
+<flags EDM_CXXFLAGS="-fvisibility=hidden"/>
+<flags CXXFLAGS="-flto"/>
+<flags CXXFLAGS="-fno-fat-lto-objects"/>
+<flags REM_CXXFLAGS="-Werror=maybe-uninitialized"/>
+<flags CXXFLAGS="-Wno-maybe-uninitialized"/>
+<flags REM_CXXFLAGS="-Werror=unused-variable"/>
+<flags CXXFLAGS="-Wno-unused-variable"/>
+<flags CAPABILITIES_CXXFLAGS="-fvisibility=default"/>
<flags LLVM_PLUGIN="UtilitiesStaticAnalyzers"/>
<flags LLVM_CHECKERS="-enable-checker threadsafety"/>
@@ -37,9 +45,6 @@
# <flags EDM_LDFLAGS="-Wl,--version-script,$(SCRAM_CONFIGDIR)/SCRAM/EdmPluginVisibility.lds"/>
<flags MISSING_SYMBOL_FLAGS="-Wl,-z,defs"/>
</architecture>
-<architecture name="slc5.*_gcc4[6789]">
- <flags LDFLAGS="-Wl,--icf=all"/>
-</architecture>
<architecture name="osx">
<flags MISSING_SYMBOL_FLAGS="-Wl,-undefined,error"/>
</architecture>