ref: 880ca0ecad0ba62d8e08c39602dc00346ec26521
parent: 0b6e35a90dea29cafe52a475e3e7be0dd58e31cd
parent: 0373dbf5a50c03cd9facc4090ac68205c1b9e39d
author: James Zern <[email protected]>
date: Thu Jan 22 15:04:07 EST 2015
Merge "workaround stack bashing by asm on 32-bit OpenBSD"
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1251,10 +1251,14 @@
fi
tgt_os_no_version=$(echo "${tgt_os}" | tr -d "[0-9]")
+ if [ "${tgt_os_no_version}" = "darwin" ] || \
+ [ "${tgt_os_no_version}" = "openbsd" ] || [ "`uname`" = "OpenBSD" ]; then
+ openbsd_like=yes
+ fi
# 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
+ [ "${openbsd_like}" != "yes" ]; then
soft_enable use_x86inc
fi