a1695f9
From 0b7ac4f6b5f8d41bfe9f9fc0ae907f6aa0decc8e Mon Sep 17 00:00:00 2001
a1695f9
From: =?UTF-8?q?Petr=20P=C3=ADsa=C5=99?= <ppisar@redhat.com>
a1695f9
Date: Thu, 10 Jun 2021 12:23:35 +0200
a1695f9
Subject: [PATCH] Do not set rpath on Linux
a1695f9
MIME-Version: 1.0
a1695f9
Content-Type: text/plain; charset=UTF-8
a1695f9
Content-Transfer-Encoding: 8bit
a1695f9
a1695f9
Our libraries are in standard dynamic linker path.
a1695f9
a1695f9
Signed-off-by: Petr Písař <ppisar@redhat.com>
a1695f9
---
a1695f9
 inc/My/Builder/Unix.pm | 2 +-
a1695f9
 1 file changed, 1 insertion(+), 1 deletion(-)
a1695f9
a1695f9
diff --git a/inc/My/Builder/Unix.pm b/inc/My/Builder/Unix.pm
a1695f9
index 15291d5..5bd61f5 100644
a1695f9
--- a/inc/My/Builder/Unix.pm
a1695f9
+++ b/inc/My/Builder/Unix.pm
a1695f9
@@ -33,7 +33,7 @@ sub get_additional_libs {
a1695f9
     my $ld       = $inc_lib_candidates->{$_};
a1695f9
     if( -d $_ && -d $ld ) {
a1695f9
       $rv{"-L$ld"}          = 1;
a1695f9
-      $rv{"-Wl,-rpath,$ld"} = 1 if $^O =~ /^linux|dragonfly|.+bsd$/;
a1695f9
+      $rv{"-Wl,-rpath,$ld"} = 1 if $^O =~ /dragonfly|.+bsd$/;
a1695f9
     }
a1695f9
   }
a1695f9
   push @list, (keys %rv);
a1695f9
-- 
a1695f9
2.31.1
a1695f9