delibtoolize.pl revision 1425
98N/A# Usage: delibtoolize.pl [-P] [-s] [--shared=<so>] <path>
1549N/Amy @shared_args = ();
1549N/Adie unless GetOptions(
963N/Amy %so_versions = ();
963N/Amy %ltlib_names = ();
sub rulename_to_filename {
return $rulename;
sub expand_macros {
$in =~ s{\$\(([^\)]+)\)}{
return $in;
sub scan_file {
my $old_file = $_;
my %makefile_macros = ();
my %makefile_ldflags = ();
my @makefile_ltlibs = ();
while (my $n = <$OLD>) {
close($OLD) or die;
\%makefile_macros);
my $vers;
} elsif ($v =~ m/^(\d+)[:\d]*$/ms) {
$vers = $v;
if ($single_file) {
sub modify_file {
my ($filename) = @_;
my $compiler;
my @inlines = ();
while (my $n = <$OLD>) {
push @inlines, $l;
close($OLD) or die;
foreach $l (@inlines) {
$l =~ s{\$\(LIBTOOL\)
(?:[\\\s]+ \$\(LT_QUIET\))?
(?:[\\\s]+ \$\(AM_V_lt\))?
$l =~ s{\$\(LIBTOOL\)
(?:[\\\s]+ \$\(LT_QUIET\))?
(?:[\\\s]+ \$\(AM_V_lt\))?
[\\\s]+ --mode=link
}{}xs;
if ($l =~ m/_la_LDFLAGS\s*=/) {
if ($single_file) {
fi; \
$l .= $installrule;
if ($curtarget =~ m/^.*\.a$/) {
close($NEW) or die;