ref: 1fba21a2b19ba2b847f4598b910b10280a949710
parent: a5f49183da7720f78176e7aacd66ddfa30fd4337
parent: 08d75a8ec9bd0b795398a88002c5357b3487855d
author: Tom Finegan <[email protected]>
date: Fri Jun 27 12:17:35 EDT 2014
Merge "configure.sh: Tweak default of use_x86inc for 64-bit, non-pic, and Darwin."
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1222,10 +1222,12 @@
fi
fi
- # default use_x86inc to yes if pic is no or 64bit or we are not on darwin
- if [ ${tgt_isa} = x86_64 -o ! "$pic" = "yes" -o \
- "${tgt_os#darwin}" = "${tgt_os}" ]; then
- soft_enable use_x86inc
+ tgt_os_no_version=$(echo "${tgt_os}" | tr -d "[0-9]")
+ # Default use_x86inc to yes when we are 64 bit, non-pic, or on any
+ # non-Darwin target.
+ if [ "${tgt_isa}" = "x86_64" ] || [ "${pic}" != "yes" ] || \
+ [ "${tgt_os_no_version}" != "darwin" ]; then
+ soft_enable use_x86inc
fi
# Position Independent Code (PIC) support, for building relocatable