summaryrefslogtreecommitdiff
path: root/solenv/bin/gccinstlib.pl
diff options
context:
space:
mode:
Diffstat (limited to 'solenv/bin/gccinstlib.pl')
-rwxr-xr-xsolenv/bin/gccinstlib.pl9
1 files changed, 9 insertions, 0 deletions
diff --git a/solenv/bin/gccinstlib.pl b/solenv/bin/gccinstlib.pl
index 7c9ac4b24c2e..90c8f02a3e06 100755
--- a/solenv/bin/gccinstlib.pl
+++ b/solenv/bin/gccinstlib.pl
@@ -53,4 +53,13 @@ foreach $Src (@CopySrc) {
system ("/bin/cp $Src $Dest") && die "copy failed: $!";
}
+
+foreach $File (@ARGV) {
+ #https://bugzilla.redhat.com/show_bug.cgi?id=149465
+ printf "unprelinking $Dest/$File\n";
+ #If it's already unprelinked .i.e. no .gnu.prelink_undo section, that's fine
+ #If prelink is not installed, it's massively unlikely that it's prelinked
+ system ("prelink -u $Dest/$File > /dev/null 2>&1");
+}
+
exit (0);