Small usr.bin/libtool cleanup

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

Small usr.bin/libtool cleanup

Jeremie Courreges-Anglas-2

We don't support vax any more.  ok?


Index: libtool
===================================================================
--- libtool.orig
+++ libtool
@@ -52,24 +52,14 @@ sub new
  ltdir => $ltdir,
  version => $version,
  objdir => $ltdir,
+ build_libtool_libs => 'no',
  build_old_libs => 'yes',
  pic_flags => join(' ', @picflags),
+ elf => 1,
+ noshared => 0,
     }, $class;
     ($self->{gnu_arch} = $self->{machine_arch}) =~ s/amd64/x86_64/;
 
-    if (grep { $_ eq $self->{machine_arch} } qw(vax)) {
- $self->{build_libtool_libs} = 'yes';
- $self->{noshared} = 1;
-    } else {
- $self->{build_libtool_libs} = 'no';
- $self->{noshared} = 0;
-    }
-    if (grep { $_ eq $self->{machine_arch} } qw(vax)) {
- $self->{elf} = 0;
-    } else {
- $self->{elf} = 1;
-    }
-
     return $self;
 }
 

--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE

Reply | Threaded
Open this post in threaded view
|

Re: Small usr.bin/libtool cleanup

Jeremie Courreges-Anglas-2
On Fri, Dec 07 2018, Jeremie Courreges-Anglas <[hidden email]> wrote:
> We don't support vax any more.  ok?

On top of previous diff, build_libtool_libs and build_old_libs aren't
used in the code.  Can't we delete those as well?


Index: libtool
===================================================================
--- libtool.orig
+++ libtool
@@ -51,9 +51,7 @@ sub new
  machine_arch => $Config{ARCH},
  ltdir => $ltdir,
  version => $version,
- objdir => $ltdir,
- build_libtool_libs => 'no',
- build_old_libs => 'yes',
+ objdir => $ltdir,
  pic_flags => join(' ', @picflags),
  elf => 1,
  noshared => 0,


--
jca | PGP : 0x1524E7EE / 5135 92C1 AD36 5293 2BDF  DDCC 0DFA 74AE 1524 E7EE