diff options
author | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 12:23:28 +0000 |
---|---|---|
committer | jakub <jakub@138bc75d-0d04-0410-961f-82ee72b054a4> | 2014-04-17 12:23:28 +0000 |
commit | 478532eb6ce5146124ce550550d3c903c95bc497 (patch) | |
tree | 939f1ccdf6369001e5600ee2c4b597483c98bc23 /libtool-ldflags | |
parent | 7de380af566c189319d706d3b4ab04e32ecc5d90 (diff) | |
download | linaro-gcc-478532eb6ce5146124ce550550d3c903c95bc497.tar.gz linaro-gcc-478532eb6ce5146124ce550550d3c903c95bc497.tar.bz2 linaro-gcc-478532eb6ce5146124ce550550d3c903c95bc497.zip |
PR sanitizer/56781
* libtool-ldflags: Also prefix -static-lib*, -shared-lib*
and -B* options with -Xcompiler.
lto-plugin/
* Makefile.am (LTLDFLAGS, liblto_plugin_la_LINK): New variables.
* Makefile.in: Regenerated.
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@209475 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libtool-ldflags')
-rwxr-xr-x | libtool-ldflags | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/libtool-ldflags b/libtool-ldflags index e32e37bf10d..5de9e2978d4 100755 --- a/libtool-ldflags +++ b/libtool-ldflags @@ -2,7 +2,7 @@ # Script to translate LDFLAGS into a form suitable for use with libtool. -# Copyright (C) 2005 Free Software Foundation, Inc. +# Copyright (C) 2005-2014 Free Software Foundation, Inc. # # This file is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by @@ -36,14 +36,15 @@ prev_arg= for arg do case $arg in - -f*|--*) + -f*|--*|-static-lib*|-shared-lib*|-B*) # Libtool does not ascribe any special meaning options # that begin with -f or with a double-dash. So, it will # think these options are linker options, and prefix them # with "-Wl,". Then, the compiler driver will ignore the # options. So, we prefix these options with -Xcompiler to # make clear to libtool that they are in fact compiler - # options. + # options. Similarly for e.g. -static-libstdc++, or + # -B/some/path. case $prev_arg in -Xpreprocessor|-Xcompiler|-Xlinker) # This option is already prefixed; don't prefix it again. |