Do not prepend filenames with '.' twice when calculating the
preserve-lib helper-filenames. Can't say which commit triggers this
problem, as this did work before.
fi
prev_FILE=${FILE}
- [[ " ${FLAGS} " == *" SHROBJ "* ]] || continue
+ # shared objects have both EXEC and SHROBJ flags,
+ # while executables have EXEC flag only.
+ [[ " ${FLAGS} " == *" EXEC "* ]] || continue
# Make sure we disallow insecure RUNPATH's
# Don't want paths that point to the tree where the package was built
def as_contentmember(obj):
if obj.endswith("]"):
if obj.find("/") >= 0:
+ if obj[obj.rfind("/")+1] == ".":
+ return obj
return obj[:obj.rfind("/")] + "/." + obj[obj.rfind("/")+1:]
+ if obj[0] == ".":
+ return obj
return "." + obj
return obj