don't run all those expensice ELF checks on Darwin, it has scanelf, but it doesn...
authorFabian Groffen <grobian@gentoo.org>
Mon, 28 Sep 2009 20:32:37 +0000 (20:32 -0000)
committerFabian Groffen <grobian@gentoo.org>
Mon, 28 Sep 2009 20:32:37 +0000 (20:32 -0000)
svn path=/main/branches/prefix/; revision=14457

bin/misc-functions.sh

index 393cf97f56dfaeea4cd277a84dc1a923c88c84a9..40ef835d4593689442bba9dd4074973775e5f26e 100644 (file)
@@ -59,7 +59,7 @@ install_qa_check() {
                sleep 1
        done
 
-       if type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then
+       if [[ ${CHOST} != *-darwin* ]] && type -P scanelf > /dev/null && ! hasq binchecks ${RESTRICT}; then
                local qa_var insecure_rpath=0 tmp_quiet=${PORTAGE_QUIET}
                local f x
 
@@ -520,7 +520,7 @@ install_qa_check() {
                fi
        fi
 
-       if [[ ${CHOST} == *-darwin* ]] ; then
+       if [[ ${CHOST} == *-darwin* ]] && ! hasq binchecks ${RESTRICT} ; then
                # on Darwin, dynamic libraries are called .dylibs instead of
                # .sos.  In addition the version component is before the
                # extension, not after it.  Check for this, and *only* warn