Skip to content
Snippets Groups Projects
Commit 234ba118 authored by Markus Blatt's avatar Markus Blatt
Browse files

[multiarch,release] Support Debian oldstable's gcc-4.4

Unfortunately gcc-4.4 does not support --print-multiarch.
Therefore we fallback to cc -v and grep for the target in this case.
parent ca8dc751
No related branches found
No related tags found
No related merge requests found
......@@ -241,7 +241,11 @@ extract_multiarch(){
fi
fi
set -e
export MULTIARCH_LIBDIR="lib/$($my_cxx_compiler --print-multiarch)"
multiarch=$($my_cxx_compiler --print-multiarch 2>/dev/null)
if test $? -gt 0; then
multiarch=$($my_cxx_compiler -v 2>&1| $GREP target | sed "s/.*target=\([a-z0-9_-]\+\)/\1/")
fi
export MULTIARCH_LIBDIR="lib/$multiarch"
}
export PREFIX_DIR="`canonicalpath "$0"`/.."
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment