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

Submitted by Markus Trippelsdorf on Sept. 14, 2012, 10:25 a.m.

Details

Message ID 20120914102545.GC263@x4
State New
Headers show

Commit Message

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 hide | download patch | download mbox

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