Skip to content

Commit

Permalink
2007-09-20 Paul Jarc <prj-bugzilla-gcc@multivac.cwru.edu>
Browse files Browse the repository at this point in the history
	PR bootstrap/31906
	* libtool-ldflags: Don't prefix arguments with -Xcompiler if
        they're already prefixed.



git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@128617 138bc75d-0d04-0410-961f-82ee72b054a4
  • Loading branch information
paolo committed Sep 20, 2007
1 parent e64c07b commit 9658ef8
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 1 deletion.
6 changes: 6 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
2007-09-20 Paul Jarc <prj-bugzilla-gcc@multivac.cwru.edu>

PR bootstrap/31906
* libtool-ldflags: Don't prefix arguments with -Xcompiler if
they're already prefixed.

2007-09-19 Benjamin Kosnik <bkoz@redhat.com>

* configure.ac (TOPLEVEL_CONFIGURE_ARGUMENTS): Move libgomp before
Expand Down
11 changes: 10 additions & 1 deletion libtool-ldflags
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@
# The output of the script. This string is built up as we process the
# arguments.
result=
prev_arg=

for arg
do
Expand All @@ -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.
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
prev_arg=$arg

# If $(LDFLAGS) is (say):
# a "b'c d" e
Expand Down

0 comments on commit 9658ef8

Please sign in to comment.