summaryrefslogtreecommitdiff
path: root/usr.bin/libtool
diff options
context:
space:
mode:
authorVadim Zhukov <zhuk@cvs.openbsd.org>2017-05-27 10:35:42 +0000
committerVadim Zhukov <zhuk@cvs.openbsd.org>2017-05-27 10:35:42 +0000
commite33e37d8057c599bca0a6f6bac991d7c23a61039 (patch)
treeb2dc08a41a3b1b551813542b815b488beaeb7752 /usr.bin/libtool
parentefb6405e7545eb5d56da61172ae8d83dd2d83f68 (diff)
Make libtool handle --tag=... inside command line.
Unbreaks (and changes PLIST) multimedia/lives under Clang, and maybe others. okay espie@
Diffstat (limited to 'usr.bin/libtool')
-rw-r--r--usr.bin/libtool/LT/Getopt.pm3
1 files changed, 2 insertions, 1 deletions
diff --git a/usr.bin/libtool/LT/Getopt.pm b/usr.bin/libtool/LT/Getopt.pm
index 77810ecf2dc..1798518bf6c 100644
--- a/usr.bin/libtool/LT/Getopt.pm
+++ b/usr.bin/libtool/LT/Getopt.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Getopt.pm,v 1.12 2014/03/19 02:16:22 afresh1 Exp $
+# $OpenBSD: Getopt.pm,v 1.13 2017/05/27 10:35:41 zhuk Exp $
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
#
@@ -228,6 +228,7 @@ sub create_options
my ($self, @l) = @_;
my @options = ();
# first pass creates accessors
+ push(@l, '-tag=', sub { $self->add_tag($_[2]); });
while (my $opt = shift @l) {
my $isarray = ($opt =~ s/\@$//);
# default code or not