Patchwork [2/4] Add slim-lto support to ltmain.sh

login
register
mail settings
Submitter Markus Trippelsdorf
Date Sept. 14, 2012, 10:25 a.m.
Message ID <20120914102545.GC263@x4>
Download mbox | patch
Permalink /patch/183872/
State New
Headers show

Comments

Markus Trippelsdorf - Sept. 14, 2012, 10:25 a.m.
Credits go to Ralf Wildenhues.

2012-09-13  Markus Trippelsdorf  <markus@trippelsdorf.de>

	* ltmain.sh: Handle lto options

Patch

diff --git a/ltmain.sh b/ltmain.sh
index a03433f..2e09101 100644
--- a/ltmain.sh
+++ b/ltmain.sh
@@ -4980,7 +4980,8 @@  func_mode_link ()
       # @file GCC response files
       # -tp=* Portland pgcc target processor selection
       -64|-mips[0-9]|-r[0-9][0-9]*|-xarch=*|-xtarget=*|+DA*|+DD*|-q*|-m*| \
-      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*)
+      -t[45]*|-txscale*|-p|-pg|--coverage|-fprofile-*|-F*|@*|-tp=*| \
+      -O*|-flto*|-fwhopr|-fuse-linker-plugin)
         func_quote_for_eval "$arg"
 	arg="$func_quote_for_eval_result"
         func_append com