[Bps-public-commit] r10262 - bpsbuilder/BPB/lib/BPB

sunnavy at bestpractical.com sunnavy at bestpractical.com
Tue Jan 8 05:26:10 EST 2008


Author: sunnavy
Date: Tue Jan  8 05:26:08 2008
New Revision: 10262

Modified:
   bpsbuilder/BPB/lib/BPB/Build.pm

Log:
added lib in install base to (DY)LD_LIBRARY_PATH

Modified: bpsbuilder/BPB/lib/BPB/Build.pm
==============================================================================
--- bpsbuilder/BPB/lib/BPB/Build.pm	(original)
+++ bpsbuilder/BPB/lib/BPB/Build.pm	Tue Jan  8 05:26:08 2008
@@ -21,8 +21,17 @@
     my $self  = {@_};
     $self->{build_base} =
       File::Spec->catfile( tempdir( CLEANUP => 0 ), 'build' );
-
     bless $self, $class;
+
+    no warnings 'uninitialized';
+
+    $ENV{DYLD_LIBRARY_PATH} =
+      File::Spec->catfile( $self->install_base, 'lib' ) . ':'
+      . $ENV{DYLD_LIBRARY_PATH};
+    $ENV{LD_LIBRARY_PATH} =
+      File::Spec->catfile( $self->install_base, 'lib' ) . ':'
+      . $ENV{LD_LIBRARY_PATH};
+    return $self;
 }
 
 sub run {



More information about the Bps-public-commit mailing list