summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2013-01-10 21:34:30 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2013-01-10 21:34:30 +0000
commitf16a68c72d450392b4520c3e9d2e9cc56450e8ae (patch)
treef58c69b5f10de54dbf632a12146c517be5c3cb3a
parent1f7463b896c7f1247aada935560a239c9f58dffc (diff)
Honor -Wc and -Xcompiler in link mode like GNU does. OK espie@
-rw-r--r--usr.bin/libtool/LT/Mode/Link.pm6
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(.*)/) {