With (at least) GCC 4.9 on Debian jessie the GCC spec files have changed
to always use -plugin / -plugin-opt and load the LTO plugin, even if
-flto is not specified to GCC.
This breaks stunt ld which does not understand these options. Dropping
them from the linker command appears to do no harm.
inter1="$1"; shift || noshift
inter2="$1"; shift || noshift
;;
+ -plugin|-plugin-opt)
+ shift || noshift
+ ;;
+ -plugin-opt=*)
+ ;;
*)
fail "unknown option $a"
;;