diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2013-01-10 21:34:30 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2013-01-10 21:34:30 +0000 |
commit | f16a68c72d450392b4520c3e9d2e9cc56450e8ae (patch) | |
tree | f58c69b5f10de54dbf632a12146c517be5c3cb3a /usr.bin/libtool/LT | |
parent | 1f7463b896c7f1247aada935560a239c9f58dffc (diff) |
Honor -Wc and -Xcompiler in link mode like GNU does. OK espie@
Diffstat (limited to 'usr.bin/libtool/LT')
-rw-r--r-- | usr.bin/libtool/LT/Mode/Link.pm | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/usr.bin/libtool/LT/Mode/Link.pm b/usr.bin/libtool/LT/Mode/Link.pm index 5b34eb45004..e6d889c6410 100644 --- a/usr.bin/libtool/LT/Mode/Link.pm +++ b/usr.bin/libtool/LT/Mode/Link.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Link.pm,v 1.23 2012/11/09 10:55:01 espie Exp $ +# $OpenBSD: Link.pm,v 1.24 2013/01/10 21:34:29 millert Exp $ # # Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org> # Copyright (c) 2012 Marc Espie <espie@openbsd.org> @@ -551,6 +551,10 @@ sub internal_parse_linkargs1 tsay {" processing $_"}; if (!$_ || $_ eq '' || m/^\s+$/) { # skip empty arguments + } elsif (m/^-Wc,(.*)/) { + push(@$result, $1); + } elsif ($_ eq '-Xcompiler') { + next; } elsif ($_ eq '-pthread') { $self->{pthread} = 1; } elsif (m/^-L(.*)/) { |