diff options
author | Alyssa Ross <hi@alyssa.is> | 2019-02-08 16:54:35 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-02-08 16:54:35 +0000 |
commit | 21d991b1fd78214023551a0dada17b129cbd5cd5 (patch) | |
tree | b4d62fc6a52de5540bf1fbbdaabd6b1222cde506 /pkgs/build-support/setup-hooks | |
parent | fd16049d7d840739bf116f51fb7097bac5bbc568 (diff) | |
parent | b9b83748f32b105b2cca0242ae4131521ad18290 (diff) |
Merge pull request #54578 from alyssais/gcj-darwin
gcj: fix build on Darwin
Diffstat (limited to 'pkgs/build-support/setup-hooks')
-rw-r--r-- | pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh b/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh index 1b36f5f555d..af2ff0cc966 100644 --- a/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh +++ b/pkgs/build-support/setup-hooks/fix-darwin-dylib-names.sh @@ -23,7 +23,14 @@ fixDarwinDylibNames() { for fn in "$@"; do if [ -L "$fn" ]; then continue; fi echo "$fn: fixing dylib" - install_name_tool -id "$fn" "${flags[@]}" "$fn" + int_out=$(install_name_tool -id "$fn" "${flags[@]}" "$fn" 2>&1) + result=$? + if [ "$result" -ne 0 ] && + ! grep "shared library stub file and can't be changed" <<< "$out" + then + echo "$int_out" >&2 + exit "$result" + fi done } |