X-Git-Url: https://de.git.xonotic.org/?p=xonotic%2Fnetradiant.git;a=blobdiff_plain;f=library-bundler;h=e9a7ccddf12d1eef487ed2cb93015a2ea0eb7310;hp=54056c41fe527b803fc399d9ab42898931bcf1ee;hb=611170782a3eb4f8e771afe90d2e336487bddf4e;hpb=8ed06a95e6808498c3e020f360c042137aa8156f diff --git a/library-bundler b/library-bundler index 54056c41..e9a7ccdd 100755 --- a/library-bundler +++ b/library-bundler @@ -105,7 +105,7 @@ Multi::excludeLdd () { Common::noOp # FreeBSD specific elif echo "${ldd_line}" \ - | egrep -q '/libc++|/libgxxrt' + | egrep -q '/libc\+\+|/libgxxrt' then Common::noOp else @@ -176,17 +176,17 @@ Multi::getRootPrefix () { local lib_file="${1}" case "${system_name}" in - 'linux'|'freebsd') - echo "${lib_file}" \ - | cut -f2 -d'/' + 'linux') + echo 'usr' + ;; + 'freebsd'|'macos') + echo 'usr/local' ;; 'windows') basename "${lib_file}" \ | xargs -n1 -P1 which \ | cut -f2 -d'/' ;; - 'macos') - echo 'usr/local' esac }