mirror of
https://github.com/ivabus/pantry
synced 2024-11-22 08:25:07 +03:00
fix(grpc)
missing rpaths
This commit is contained in:
parent
1422534428
commit
7ed04f32f3
1 changed files with 10 additions and 2 deletions
|
@ -48,9 +48,17 @@ build:
|
||||||
- cp grpc_cli "{{prefix}}/bin"
|
- cp grpc_cli "{{prefix}}/bin"
|
||||||
- cp libgrpc++_test_config.* "{{prefix}}/lib"
|
- cp libgrpc++_test_config.* "{{prefix}}/lib"
|
||||||
|
|
||||||
- run: install_name_tool -add_rpath @loader_path libgrpc++_test_config.dylib
|
# grpc has libs and binaries that end up with name @rpath/libgrpc_plugin_support.{{version}}.dylib (offset 24)
|
||||||
working-directory: '{{prefix}}/lib'
|
# so we need to add @loader_path to the rpath
|
||||||
|
- run: |
|
||||||
|
for f in bin/* lib/libgrpc++_test_config.dylib; do
|
||||||
|
if test -f $f; then
|
||||||
|
install_name_tool -add_rpath @loader_path/../lib $f
|
||||||
|
fi
|
||||||
|
done
|
||||||
|
working-directory: '{{prefix}}'
|
||||||
if: darwin
|
if: darwin
|
||||||
|
|
||||||
env:
|
env:
|
||||||
COMMON_ARGS:
|
COMMON_ARGS:
|
||||||
- -DCMAKE_BUILD_TYPE=Release
|
- -DCMAKE_BUILD_TYPE=Release
|
||||||
|
|
Loading…
Reference in a new issue