]> xenbits.xensource.com Git - rumpuser-xen.git/commitdiff
stunt ld: Drop (LTO) -plugin and -plugin-opt from ld command
authorMartin Lucina <martin@lucina.net>
Thu, 30 Oct 2014 15:28:18 +0000 (16:28 +0100)
committerMartin Lucina <martin@lucina.net>
Thu, 30 Oct 2014 15:28:18 +0000 (16:28 +0100)
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.

app-tools/ld

index faef8a80ee8ce4dd07994bedf378894cecc79488..056c50d58327770032159854eccf8cf1245633d7 100755 (executable)
@@ -34,6 +34,11 @@ while [ $# != 0 ]; do
                inter1="$1"; shift || noshift
                inter2="$1"; shift || noshift
                ;;
+       -plugin|-plugin-opt)
+               shift || noshift
+               ;;
+       -plugin-opt=*)
+               ;;
        *)
                fail "unknown option $a"
                ;;