avoid duplicate/useless lines in NEEDED.XCOFF.1 (aix)
authorFabian Groffen <grobian@gentoo.org>
Wed, 25 Nov 2009 11:34:29 +0000 (11:34 -0000)
committerFabian Groffen <grobian@gentoo.org>
Wed, 25 Nov 2009 11:34:29 +0000 (11:34 -0000)
Patch by Michael Haubenwallner

svn path=/main/branches/prefix/; revision=14878

bin/misc-functions.sh

index db902ccae140b9f5ce05865d7dc55311fd6ddbd0..bab3755ec50f391ac83c625214a0f609150ba4e8 100644 (file)
@@ -922,10 +922,11 @@ install_qa_check_xcoff() {
                        local FILE= MEMBER= FLAGS= FORMAT= RUNPATH= DEPLIBS=
                        eval ${queryline}
 
-                       if [[ ${prev_FILE} != ${FILE} ]]; then
+                       if [[ -n ${MEMBER} && ${prev_FILE} != ${FILE} ]]; then
                                # Save NEEDED information for the archive library stub
                                echo "${FORMAT##* }${FORMAT%%-*};${FILE#${D%/}};${FILE##*/};;" >&${neededfd}
                        fi
+                       prev_FILE=${FILE}
 
                        # Make sure we disallow insecure RUNPATH's
                        # Don't want paths that point to the tree where the package was built