summaryrefslogtreecommitdiffstats
path: root/libtool-ldflags
diff options
context:
space:
mode:
authorJakub Jelinek <jakub@redhat.com>2014-04-17 14:23:28 +0200
committerJakub Jelinek <jakub@gcc.gnu.org>2014-04-17 14:23:28 +0200
commitffe7f7a75f2e5709f2678d01bf1a92890304c346 (patch)
tree939f1ccdf6369001e5600ee2c4b597483c98bc23 /libtool-ldflags
parentdwarf2out: Use normal constant values in bound_info if possible. (diff)
downloadgcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.tar.gz
gcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.tar.bz2
gcc-ffe7f7a75f2e5709f2678d01bf1a92890304c346.tar.xz
re PR sanitizer/56781 (boostrap-asan failure: fixincl fails to link (missing -lasan))
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. From-SVN: r209475
Diffstat (limited to 'libtool-ldflags')
-rwxr-xr-xlibtool-ldflags7
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 @@
2 2
3# Script to translate LDFLAGS into a form suitable for use with libtool. 3# Script to translate LDFLAGS into a form suitable for use with libtool.
4 4
5# Copyright (C) 2005 Free Software Foundation, Inc. 5# Copyright (C) 2005-2014 Free Software Foundation, Inc.
6# 6#
7# This file is free software; you can redistribute it and/or modify 7# This file is free software; you can redistribute it and/or modify
8# it under the terms of the GNU General Public License as published by 8# it under the terms of the GNU General Public License as published by
@@ -36,14 +36,15 @@ prev_arg=
36for arg 36for arg
37do 37do
38 case $arg in 38 case $arg in
39 -f*|--*) 39 -f*|--*|-static-lib*|-shared-lib*|-B*)
40 # Libtool does not ascribe any special meaning options 40 # Libtool does not ascribe any special meaning options
41 # that begin with -f or with a double-dash. So, it will 41 # that begin with -f or with a double-dash. So, it will
42 # think these options are linker options, and prefix them 42 # think these options are linker options, and prefix them
43 # with "-Wl,". Then, the compiler driver will ignore the 43 # with "-Wl,". Then, the compiler driver will ignore the
44 # options. So, we prefix these options with -Xcompiler to 44 # options. So, we prefix these options with -Xcompiler to
45 # make clear to libtool that they are in fact compiler 45 # make clear to libtool that they are in fact compiler
46 # options. 46 # options. Similarly for e.g. -static-libstdc++, or
47 # -B/some/path.
47 case $prev_arg in 48 case $prev_arg in
48 -Xpreprocessor|-Xcompiler|-Xlinker) 49 -Xpreprocessor|-Xcompiler|-Xlinker)
49 # This option is already prefixed; don't prefix it again. 50 # This option is already prefixed; don't prefix it again.