From: Pavel Charvat Date: Wed, 15 Jan 2014 16:08:12 +0000 (+0100) Subject: Build: Make sure that we link against the locally compiled dynamic libraries. X-Git-Tag: v5.99~26 X-Git-Url: http://mj.ucw.cz/gitweb/?a=commitdiff_plain;h=4dbc1cf028eb6a4dbf146833b1186f46d6a7d161;p=libucw.git Build: Make sure that we link against the locally compiled dynamic libraries. --- diff --git a/ucw/perl/UCW/Configure/C.pm b/ucw/perl/UCW/Configure/C.pm index 0eca1f98..88a8570b 100644 --- a/ucw/perl/UCW/Configure/C.pm +++ b/ucw/perl/UCW/Configure/C.pm @@ -121,8 +121,10 @@ Set("LIBS" => ""); Set("CSHARED" => '-fPIC'); if (IsSet("CONFIG_LOCAL")) { Set("SONAME_PREFIX" => "lib/"); + Append("LOPT" => "-Wl,--rpath-link -Wl,run"); } else { Set("SONAME_PREFIX" => ""); + Append("LOPT" => "-Wl,--rpath-link -Wl,run/lib"); } if (IsSet("CONFIG_DARWIN")) { Set("LSHARED" => '-dynamiclib -install_name $(SONAME_PREFIX)$(@F)$(SONAME_SUFFIX) -undefined dynamic_lookup');