OSDN Git Service
(root)
/
pf3gnuchains
/
gcc-fork.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
runtime: Print stack trace on panic or signal.
[pf3gnuchains/gcc-fork.git]
/
libtool-ldflags
diff --git
a/libtool-ldflags
b/libtool-ldflags
index
6321747
..
e32e37b
100755
(executable)
--- a/
libtool-ldflags
+++ b/
libtool-ldflags
@@
-31,6
+31,7
@@
# The output of the script. This string is built up as we process the
# arguments.
result=
# The output of the script. This string is built up as we process the
# arguments.
result=
+prev_arg=
for arg
do
for arg
do
@@
-43,13
+44,21
@@
do
# options. So, we prefix these options with -Xcompiler to
# make clear to libtool that they are in fact compiler
# options.
# options. So, we prefix these options with -Xcompiler to
# make clear to libtool that they are in fact compiler
# options.
- result="$result -Xcompiler"
+ case $prev_arg in
+ -Xpreprocessor|-Xcompiler|-Xlinker)
+ # This option is already prefixed; don't prefix it again.
+ ;;
+ *)
+ result="$result -Xcompiler"
+ ;;
+ esac
;;
*)
# We do not want to add -Xcompiler to other options because
# that would prevent libtool itself from recognizing them.
;;
esac
;;
*)
# We do not want to add -Xcompiler to other options because
# that would prevent libtool itself from recognizing them.
;;
esac
+ prev_arg=$arg
# If $(LDFLAGS) is (say):
# a "b'c d" e
# If $(LDFLAGS) is (say):
# a "b'c d" e