summaryrefslogtreecommitdiff
path: root/hook-functions
diff options
context:
space:
mode:
authorLoic Minier <lool@dooz.org>2009-04-14 11:11:52 +0200
committermaximilian attems <maks@debian.org>2009-04-21 15:02:10 +0200
commit4cf1ab73b5a1abdfb2fe37862b345976c8507dd1 (patch)
tree9a3423e6462730bc089716f718f57b3a91c06606 /hook-functions
parentceb549235df16f54d4ec6ef2a6c7c50ade751884 (diff)
downloadinitramfs-tools-4cf1ab73b5a1abdfb2fe37862b345976c8507dd1.tar.gz
initramfs-tools-4cf1ab73b5a1abdfb2fe37862b345976c8507dd1.zip
copy_exec: also avoid picking sse2, neon, and vfp hwcaps libs.
merge 0.92bubuntu29 Signed-off-by: maximilian attems <maks@debian.org>
Diffstat (limited to 'hook-functions')
-rw-r--r--hook-functions5
1 files changed, 3 insertions, 2 deletions
diff --git a/hook-functions b/hook-functions
index 96c61bf..295bce8 100644
--- a/hook-functions
+++ b/hook-functions
@@ -152,8 +152,9 @@ copy_exec() {
s/[[:blank:]]*\([^[:blank:]]*\) (.*)/\1/' 2>/dev/null); do
# Try to use non-optimised libraries where possible.
- # We assume that all HWCAP libraries will be in tls.
- nonoptlib=$(echo "${x}" | sed -e 's#/lib/\(tls\|i686\).*/\(lib.*\)#/lib/\2#')
+ # We assume that all HWCAP libraries will be in tls,
+ # sse2, vfp or neon.
+ nonoptlib=$(echo "${x}" | sed -e 's#/lib/\(tls\|i686\|sse2\|neon\|vfp\).*/\(lib.*\)#/lib/\2#')
if [ -e "${nonoptlib}" ]; then
x="${nonoptlib}"