From abfece01746e77557636731e3a2526fc8fa7f140 Mon Sep 17 00:00:00 2001
From: Valerio Mariani <valerio.mariani@unibas.ch>
Date: Wed, 11 Jul 2012 14:37:44 +0200
Subject: [PATCH] Fixes the 'loader cannot load itself error'

---
 deployment/linux/ldd-rec.pl | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/deployment/linux/ldd-rec.pl b/deployment/linux/ldd-rec.pl
index e770bb6c0..52e8455cf 100644
--- a/deployment/linux/ldd-rec.pl
+++ b/deployment/linux/ldd-rec.pl
@@ -16,7 +16,7 @@ push @check_queue, @ARGV;
 
 while (@check_queue) {
   my $to_check = pop @check_queue;
-  if (exists $checked_libs{$to_check}) {
+  if (exists $checked_libs{$to_check} or $to_check =~ /ld-linux.so.2/) {
     next;
   } else {
     $checked_libs{$to_check} = 1;
-- 
GitLab