diff options
author | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-12-26 08:51:06 +0000 |
---|---|---|
committer | Rafael Garcia-Suarez <rgarciasuarez@gmail.com> | 2003-12-26 08:51:06 +0000 |
commit | 3e9d3e5b21291ba6b38dda724868f34a49149045 (patch) | |
tree | 5eff2deb8a2951aff7cd48ba30e8456edf4b1c93 /ext/SDBM_File | |
parent | 13ec70afab644813396652ff23a6e02fbd3d00d7 (diff) | |
download | perl-3e9d3e5b21291ba6b38dda724868f34a49149045.tar.gz |
Restore ext/SDBM_File/sdbm/Makefile to its pre-21655 state.
This fixes building SDBM_File on AIX.
p4raw-id: //depot/perl@21959
Diffstat (limited to 'ext/SDBM_File')
-rw-r--r-- | ext/SDBM_File/sdbm/Makefile.PL | 21 |
1 files changed, 12 insertions, 9 deletions
diff --git a/ext/SDBM_File/sdbm/Makefile.PL b/ext/SDBM_File/sdbm/Makefile.PL index 1859aaeb04..48e3c4916e 100644 --- a/ext/SDBM_File/sdbm/Makefile.PL +++ b/ext/SDBM_File/sdbm/Makefile.PL @@ -10,18 +10,18 @@ if ($^O eq 'VMS') { # Old VAXC compiler can't handle Duff's device WriteMakefile( NAME => 'sdbm', # (doesn't matter what the name is here) oh yes it does - LINKTYPE => 'static', +# LINKTYPE => 'static', DEFINE => $define, INC => '-I$(PERL_INC)', # force PERL_INC dir ahead of system -I's + SKIP => [qw(dynamic dynamic_lib dlsyms)], OBJECT => '$(O_FILES)', clean => {'FILES' => 'dbu libsdbm.a dbd dba dbe x-dbu *.dir *.pag'}, H => [qw(tune.h sdbm.h pair.h $(PERL_INC)/config.h)], C => [qw(sdbm.c pair.c hash.c)] ); - -package MY; -sub constants { +sub MY::constants { + package MY; my $self = shift; $self->{INST_STATIC} = 'libsdbm$(LIB_EXT)'; @@ -29,22 +29,25 @@ sub constants { return $self->SUPER::constants(); } -sub top_targets { - my $self = shift; - return $self->SUPER::top_targets if $^O eq 'VMS'; +sub MY::top_targets { my $r = ' all :: static $(NOECHO) $(NOOP) +config :: + $(NOECHO) $(NOOP) + lint: lint -abchx $(LIBSRCS) +'; + $r .= ' # This is a workaround, the problem is that our old GNU make exports # variables into the environment so $(MYEXTLIB) is set in here to this # value which can not be built. sdbm/libsdbm.a: $(NOECHO) $(NOOP) -'; +' unless $^O eq 'VMS'; - return $r . $self->SUPER::top_targets; + return $r; } |