diff options
Diffstat (limited to 'chrome/tools')
-rwxr-xr-x | chrome/tools/build/linux/chrome-wrapper | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/tools/build/linux/chrome-wrapper b/chrome/tools/build/linux/chrome-wrapper index 090891f..ba11872 100755 --- a/chrome/tools/build/linux/chrome-wrapper +++ b/chrome/tools/build/linux/chrome-wrapper @@ -81,7 +81,13 @@ case ":$PATH:" in esac # Always use our ffmpeg and other shared libs. -export LD_LIBRARY_PATH="$HERE:$HERE/lib:$HERE/lib.target:$LD_LIBRARY_PATH" +if [[ -n "$LD_LIBRARY_PATH" ]]; then + LD_LIBRARY_PATH="$HERE:$HERE/lib:$HERE/lib.target:$LD_LIBRARY_PATH" +else + LD_LIBRARY_PATH="$HERE:$HERE/lib:$HERE/lib.target" +fi +export LD_LIBRARY_PATH + MISSING_LIBS=$(ldd "$HERE/chrome" 2> /dev/null |grep "not found$" | cut -d" " -f 1|sed 's/\t//') CHROME_ARCH=$(check_executable "$HERE/chrome") |