summaryrefslogtreecommitdiff
path: root/libtool-ldflags
diff options
context:
space:
mode:
authorLorry Tar Creator <lorry-tar-importer@baserock.org>2015-04-22 10:21:45 +0000
committer <>2015-04-25 21:44:09 +0000
commitf80b5ea1605c9f9408c5aa386ba71c16d918ebbf (patch)
treebb7eafaa81fc4b8c5c215bc08d517fd158db234a /libtool-ldflags
parentc27a97d04853380f1e80525391b3f0d156ed4c84 (diff)
downloadgcc-tarball-f80b5ea1605c9f9408c5aa386ba71c16d918ebbf.tar.gz
Imported from /home/lorry/working-area/delta_gcc-tarball/gcc-5.1.0.tar.bz2.gcc-5.1.0
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 e32e37bf10..5de9e2978d 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.