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