Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Roman Haefeli
iem-ci
Commits
5cd73e8f
Commit
5cd73e8f
authored
Jan 15, 2021
by
Roman Haefeli
Browse files
more streamlining
parent
ea7f978a
Changes
1
Hide whitespace changes
Inline
Side-by-side
pd-lib-builder/localdeps.linux.sh
View file @
5cd73e8f
...
...
@@ -70,11 +70,9 @@ make_local_copy_and_set_rpath() {
# make a local copy of all linked libraries of given binary
# and set RUNPATH to $ORIGIN (exclude "standard" libraries)
# arg1: binary to check
ldd
$1
|
grep
' => '
|
while
read
ldd_line
ldd
$1
|
grep
' => '
|
awk
'{ print $1 " " $3 }'
|
while
read
libname libpath
do
libname
=
$(
echo
"
$ldd_line
"
|
awk
'{ print $1 }'
)
libpath
=
$(
echo
"
$ldd_line
"
|
awk
'{ print $3 }'
)
if
!
[
-f
"
$(
basename
$libname
)
"
]
&&
!
library_in_exclude_list
"
$libname
"
if
!
[
-f
"
$libname
"
]
&&
!
library_in_exclude_list
"
$libname
"
then
cp
"
$libpath
"
.
fi
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment