2 # Copyright (c) 1999, 2008 Oracle and/or its affiliates. All rights reserved.
6 # Makefile.PL for ::Project
12 use ExtUtils::MakeMaker;
15 my @defines = ( DEFINE => exists($ENV{RELEASE_BUILD}) ? '-DNDEBUG' : '' );
17 # List of POD pages to install.
18 my @man3pods = ( MAN3PODS => {} );
21 # If not building as part of ON.
23 if (! exists($ENV{CODEMGR_WS})) {
26 # Suppress the setting of LD_RUN_PATH. The ON build environment
27 # contains a modified MakeMaker that does this automatically, so we
28 # only need to do this if we are building outside of ON.
33 # Override const_loadlibs to remove LD_RUN_PATH cruft.
37 delete($self->{LD_RUN_PATH});
38 return($self->SUPER::const_loadlibs(@_));
41 # Override dynamic_lib to get rid of LD_RUN_PATH cruft.
45 my $txt = $self->SUPER::dynamic_lib(@_);
46 $txt =~ s/LD_RUN_PATH=\S*\s*//;
54 # Install the POD documentation for non-ON builds.
56 my $man3pfx = '$(INST_MAN3DIR)/Sun::Solaris::Project';
58 MAN3PODS => { 'pod/Project.pod' => $man3pfx . '.$(MAN3EXT)' }
63 NAME => 'Sun::Solaris::Project',
64 VERSION_FROM => 'Project.pm',
65 LIBS => '-lproject -lgen',