summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarc Espie <espie@cvs.openbsd.org>2012-07-07 18:21:57 +0000
committerMarc Espie <espie@cvs.openbsd.org>2012-07-07 18:21:57 +0000
commitb1a0e0e7a95f2b46839fee6c5e2c0b1d7ff3e158 (patch)
tree0be99a9d5242a614972d2548669d96098a820137
parentb60a5b71268b3b2aef1fa5764461d0f23c5bf7e3 (diff)
streamlined code
-rwxr-xr-xusr.bin/libtool/libtool11
1 files changed, 4 insertions, 7 deletions
diff --git a/usr.bin/libtool/libtool b/usr.bin/libtool/libtool
index 410bb462713..42888145448 100755
--- a/usr.bin/libtool/libtool
+++ b/usr.bin/libtool/libtool
@@ -1,5 +1,5 @@
#!/usr/bin/perl
-# $OpenBSD: libtool,v 1.16 2012/07/07 18:08:11 jasper Exp $
+# $OpenBSD: libtool,v 1.17 2012/07/07 18:21:56 espie Exp $
# Copyright (c) 2007-2010 Steven Mestdagh <steven@openbsd.org>
# Copyright (c) 2012 Marc Espie <espie@openbsd.org>
@@ -44,11 +44,9 @@ use Config;
sub new
{
my $class = shift;
- my $self = {
+ bless {
machine_arch => $Config{'ARCH'},
- };
- bless $self, $class;
- return $self;
+ }, $class;
}
package LT::Options;
@@ -160,8 +158,7 @@ use subs qw(
notyet
);
-#my $config = LT::OSConfig->new();
-my $ltconfig = LT::OSConfig->new();
+my $ltconfig = LT::OSConfig->new;
my @no_shared_archs = qw(m88k vax);
(my $gnu_arch = $ltconfig->{'machine_arch'}) =~ s/amd64/x86_64/;
my $cwd = getcwd();