From 9ecb8140b9553c95bacf411a889fe2f0ad0b9cc8 Mon Sep 17 00:00:00 2001 From: Fabian Groffen Date: Wed, 25 Nov 2009 11:34:29 +0000 Subject: [PATCH] avoid duplicate/useless lines in NEEDED.XCOFF.1 (aix) Patch by Michael Haubenwallner svn path=/main/branches/prefix/; revision=14878 --- bin/misc-functions.sh | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bin/misc-functions.sh b/bin/misc-functions.sh index db902ccae..bab3755ec 100644 --- a/bin/misc-functions.sh +++ b/bin/misc-functions.sh @@ -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 -- 2.26.2