Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
S
src
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
9
Issues
9
List
Boards
Labels
Service Desk
Milestones
Merge Requests
1
Merge Requests
1
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Code Review
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Pmodules
src
Commits
94d57557
Commit
94d57557
authored
May 25, 2020
by
gsell
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bug in installing shared libs fixed
parent
766f6bd1
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
Pmodules/libpbuild.bash
Pmodules/libpbuild.bash
+8
-2
No files found.
Pmodules/libpbuild.bash
View file @
94d57557
...
...
@@ -600,14 +600,20 @@ pbuild::install_shared_libs() {
install_shared_libs_Linux
()
{
local
libs
=(
$(
ldd
"
${
binary
}
"
|
\
awk
"/ =>
\/
/ && /
${
pattern
}
/ {print
\$
3}"
)
)
[[
-n
"
${
libs
}
"
]]
&&
cp
-vL
"
${
libs
[@]
}
"
"
${
dstdir
}
"
if
[[
-n
"
${
libs
}
"
]]
;
then
cp
-vL
"
${
libs
[@]
}
"
"
${
dstdir
}
"
||
return
$?
fi
return
0
}
install_shared_libs_Darwin
()
{
# https://stackoverflow.com/questions/33991581/install-name-tool-to-update-a-executable-to-search-for-dylib-in-mac-os-x
local
libs
=(
$(
otool
-L
"
${
binary
}
"
|
\
awk
"/
${
pattern
}
/ {print
\$
1}"
)
)
[[
-n
"
${
libs
}
"
]]
&&
cp
-vL
"
${
libs
[@]
}
"
"
${
dstdir
}
"
if
[[
-n
"
${
libs
}
"
]]
;
then
cp
-vL
"
${
libs
[@]
}
"
"
${
dstdir
}
"
||
return
$?
fi
return
0
}
test
-e
"
${
binary
}
"
||
\
...
...
Write
Preview
Markdown
is supported
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