summaryrefslogtreecommitdiff
path: root/build/make
diff options
context:
space:
mode:
authorJames Zern <jzern@google.com>2015-01-14 23:09:57 -0800
committerJames Zern <jzern@google.com>2015-01-14 23:25:02 -0800
commit0373dbf5a50c03cd9facc4090ac68205c1b9e39d (patch)
tree793383181e0f6e379ea29f32cc7e700c5d065f51 /build/make
parent5ca96f9d60d3ad7f538b949ce898262bc815bb1f (diff)
downloadlibvpx-0373dbf5a50c03cd9facc4090ac68205c1b9e39d.tar
libvpx-0373dbf5a50c03cd9facc4090ac68205c1b9e39d.tar.gz
libvpx-0373dbf5a50c03cd9facc4090ac68205c1b9e39d.tar.bz2
libvpx-0373dbf5a50c03cd9facc4090ac68205c1b9e39d.zip
workaround stack bashing by asm on 32-bit OpenBSD
like Darwin, disable x86inc with 32-bit PIC/shared library builds; avoids stack smashing done by vp9_subpixel_* workaround for issue #808 Change-Id: I3f2f16bd91822c8e8dad0242b5dcfb0e621aea97
Diffstat (limited to 'build/make')
-rw-r--r--build/make/configure.sh6
1 files changed, 5 insertions, 1 deletions
diff --git a/build/make/configure.sh b/build/make/configure.sh
index f98018027..ff76dcb7e 100644
--- a/build/make/configure.sh
+++ b/build/make/configure.sh
@@ -1243,10 +1243,14 @@ EOF
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