diff --git a/src/cap5/CA.pm b/src/cap5/CA.pm index 15e5b5f9f..993af54fe 100644 --- a/src/cap5/CA.pm +++ b/src/cap5/CA.pm @@ -28,9 +28,10 @@ our @ISA = qw(DynaLoader); require DynaLoader; -# Add our lib/ directory to the library search path -use FindBin qw($Bin); -push @DynaLoader::dl_library_path, "$Bin/../../lib/$ENV{EPICS_HOST_ARCH}"; +# Add our lib/ directory to the shared library search path +use File::Basename; +my $Lib = dirname(__FILE__); +push @DynaLoader::dl_library_path, "$Lib/../$ENV{EPICS_HOST_ARCH}"; bootstrap Cap5 $VERSION;