X-Git-Url: http://git.xonotic.org/?a=blobdiff_plain;f=library-bundler;h=e9a7ccddf12d1eef487ed2cb93015a2ea0eb7310;hb=fa4a5ccafc7fa6ef1cce4d63112f78a9b95c4fc2;hp=54056c41fe527b803fc399d9ab42898931bcf1ee;hpb=8ed06a95e6808498c3e020f360c042137aa8156f;p=xonotic%2Fnetradiant.git 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 }