File tree 2 files changed +16
-1
lines changed
2 files changed +16
-1
lines changed Original file line number Diff line number Diff line change
1
+ 2007-09-20 Paul Jarc <
[email protected] >
2
+
3
+ PR bootstrap/31906
4
+ * libtool-ldflags: Don't prefix arguments with -Xcompiler if
5
+ they're already prefixed.
6
+
1
7
2007-09-19 Benjamin Kosnik <
[email protected] >
2
8
3
9
* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Move libgomp before
Original file line number Diff line number Diff line change 31
31
# The output of the script. This string is built up as we process the
32
32
# arguments.
33
33
result=
34
+ prev_arg=
34
35
35
36
for arg
36
37
do
43
44
# options. So, we prefix these options with -Xcompiler to
44
45
# make clear to libtool that they are in fact compiler
45
46
# options.
46
- result=" $result -Xcompiler"
47
+ case $prev_arg in
48
+ -Xpreprocessor|-Xcompiler|-Xlinker)
49
+ # This option is already prefixed; don't prefix it again.
50
+ ;;
51
+ * )
52
+ result=" $result -Xcompiler"
53
+ ;;
54
+ esac
47
55
;;
48
56
* )
49
57
# We do not want to add -Xcompiler to other options because
50
58
# that would prevent libtool itself from recognizing them.
51
59
;;
52
60
esac
61
+ prev_arg=$arg
53
62
54
63
# If $(LDFLAGS) is (say):
55
64
# a "b'c d" e
You can’t perform that action at this time.
0 commit comments