summaryrefslogtreecommitdiff
path: root/boost-1.75.0-build-optflags.patch
diff options
context:
space:
mode:
authorCoprDistGit <infra@openeuler.org>2024-08-01 14:12:40 +0000
committerCoprDistGit <infra@openeuler.org>2024-08-01 14:12:40 +0000
commit0bc0c8464fa84c1873dadb5cee5b053b890ed61a (patch)
tree2462c2b6cd7b871e401b644de855af589d216fe5 /boost-1.75.0-build-optflags.patch
parentf1d6eb29c0e0330cb5aa0f2cc3c069ad50f2b513 (diff)
automatic import of boostopeneuler24.03_LTSopeneuler23.09
Diffstat (limited to 'boost-1.75.0-build-optflags.patch')
-rw-r--r--boost-1.75.0-build-optflags.patch60
1 files changed, 60 insertions, 0 deletions
diff --git a/boost-1.75.0-build-optflags.patch b/boost-1.75.0-build-optflags.patch
new file mode 100644
index 0000000..d9c6dd4
--- /dev/null
+++ b/boost-1.75.0-build-optflags.patch
@@ -0,0 +1,60 @@
+diff --git a/tools/build/src/tools/gcc.jam b/tools/build/src/tools/gcc.jam
+index ff3209f7b..1d8e7cbfe 100644
+--- a/tools/build/src/tools/gcc.jam
++++ b/tools/build/src/tools/gcc.jam
+@@ -577,7 +577,7 @@ rule compile.fortran ( targets * : sources * : properties * )
+
+ actions compile.c++ bind PCH_FILE
+ {
+- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)"
++ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" -c -o "$(<:W)" "$(>:W)"
+ }
+
+ actions compile.c bind PCH_FILE
+@@ -587,7 +587,7 @@ actions compile.c bind PCH_FILE
+
+ actions compile.c++.preprocess bind PCH_FILE
+ {
+- "$(CONFIG_COMMAND)" $(LANG) -ftemplate-depth-$(TEMPLATE_DEPTH) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)"
++ "$(CONFIG_COMMAND)" $(LANG) $(OPTIONS) $(USER_OPTIONS) -D$(DEFINES) -I"$(PCH_FILE:D)" -I"$(INCLUDES)" -include"$(FORCE_INCLUDES)" "$(>:W)" -E >"$(<:W)"
+ }
+
+ actions compile.c.preprocess bind PCH_FILE
+@@ -704,20 +704,20 @@ actions compile.c.pch
+ ###
+
+ # Declare flags and action for compilation.
+-toolset.flags gcc.compile OPTIONS <optimization>off : -O0 ;
+-toolset.flags gcc.compile OPTIONS <optimization>speed : -O3 ;
+-toolset.flags gcc.compile OPTIONS <optimization>space : -Os ;
+-
+-toolset.flags gcc.compile OPTIONS <inlining>off : -fno-inline ;
+-toolset.flags gcc.compile OPTIONS <inlining>on : -Wno-inline ;
+-toolset.flags gcc.compile OPTIONS <inlining>full : -finline-functions -Wno-inline ;
+-
+-toolset.flags gcc.compile OPTIONS <warnings>off : -w ;
+-toolset.flags gcc.compile OPTIONS <warnings>on : -Wall ;
+-toolset.flags gcc.compile OPTIONS <warnings>all : -Wall ;
+-toolset.flags gcc.compile OPTIONS <warnings>extra : -Wall -Wextra ;
+-toolset.flags gcc.compile OPTIONS <warnings>pedantic : -Wall -Wextra -pedantic ;
+-toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : -Werror ;
++toolset.flags gcc.compile OPTIONS <optimization>off : ;
++toolset.flags gcc.compile OPTIONS <optimization>speed : ;
++toolset.flags gcc.compile OPTIONS <optimization>space : ;
++
++toolset.flags gcc.compile OPTIONS <inlining>off : ;
++toolset.flags gcc.compile OPTIONS <inlining>on : ;
++toolset.flags gcc.compile OPTIONS <inlining>full : ;
++
++toolset.flags gcc.compile OPTIONS <warnings>off : ;
++toolset.flags gcc.compile OPTIONS <warnings>on : ;
++toolset.flags gcc.compile OPTIONS <warnings>all : ;
++toolset.flags gcc.compile OPTIONS <warnings>extra : ;
++toolset.flags gcc.compile OPTIONS <warnings>pedantic : ;
++toolset.flags gcc.compile OPTIONS <warnings-as-errors>on : ;
+
+ toolset.flags gcc.compile OPTIONS <debug-symbols>on : -g ;
+ toolset.flags gcc.compile OPTIONS <profiling>on : -pg ;
+--
+2.26.2
+