]> mj.ucw.cz Git - libucw.git/commitdiff
Build: Make sure that we link against the locally compiled dynamic libraries.
authorPavel Charvat <pchar@ucw.cz>
Wed, 15 Jan 2014 16:08:12 +0000 (17:08 +0100)
committerPavel Charvat <pchar@ucw.cz>
Wed, 15 Jan 2014 16:08:12 +0000 (17:08 +0100)
ucw/perl/UCW/Configure/C.pm

index 0eca1f98b92c08a00ad1ffd44ad0ec395ab84561..88a8570bd60ea8ace9e2456d20fbb5ceed834d23 100644 (file)
@@ -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');