This patch does a check for the existence of the 'rpath' attribute before using it.

There will be platforms which have dynamic loading, but no capability to hard code the path of the library into the executable. We therefore need to cater for the case where parrot_is_shared is set, but rpath is not. [They will probably need to use LD_LIBRARY_PATH or another environment variable as a workaround]

Nick

Index: config/inter/libparrot.pm
===================================================================
--- config/inter/libparrot.pm   (revision 10936)
+++ config/inter/libparrot.pm   (working copy)
@@ -53,7 +53,7 @@
     );                       
 
     $conf->data->set(
-        rpath_blib => ($parrot_is_shared) 
+        rpath_blib => ($parrot_is_shared) && $conf->data->get('rpath')
         ? $conf->data->get('rpath')
           .  $conf->data->get('build_dir')
           .  $conf->data->get('slash')

Reply via email to