Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(88)

Side by Side Diff: third_party/instrumented_libraries/fix_rpaths

Issue 50423003: Adds a flag "use_instrumented_libraries" and corresponding target with 2 simple libs (Closed) Base URL: https://src.chromium.org/chrome/trunk/src/
Patch Set: Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
Property Changes:
Added: svn:executable
+ *
OLDNEW
(Empty)
1 #!/bin/bash
2 #
3 # Changes all RPATHs from XORIGIN to $ORIGIN
Alexander Potapenko 2013/10/29 13:36:11 "all RPATHs in a given directory"
alextaran1 2013/10/30 11:16:29 Done.
4
5 # Fixes rpath from XORIGIN to $ORIGIN in a single file $1
Alexander Potapenko 2013/10/29 13:36:11 Period at the end of the comment here and everywhe
alextaran1 2013/10/30 11:16:29 Done.
6 function fix_rpath {
7 chrpath -r $(chrpath $1 | cut -d " " -f 2 | sed s/XORIGIN/\$ORIGIN/g \
8 | sed s/RPATH=//g) $1
9 }
10
11 for i in $(find $1 | grep "\.so$"); do
12 fix_rpath $i > /dev/null
Alexander Potapenko 2013/10/29 13:36:11 Why suppress the output? Does chrpath print too mu
alextaran1 2013/10/30 11:16:29 It prints 2 lines for each file: old rpath and new
13 done
14
15 # Mark that rpaths are fixed
16 touch $1/rpaths.fixed.txt
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698