1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
|
Last-Update: 2014-04-19
Forwarded: not-needed
Author: Dmitry Smirnov <onlyjob@member.fsf.org>
Description: use `dpkg-architecture` instead of `arch` to get build architecture
Fixes build in `pbuilder` on amd64 for i386.
--- a/configure.ac
+++ b/configure.ac
@@ -87,7 +87,7 @@ AM_CXXFLAGS="${AM_CXXFLAGS}"
# Check for yasm
if yasm -f elf64 src/common/crc32c_intel_fast_asm.S -o /dev/null; then
echo 'we have a modern and working yasm'
- if test `arch` = "x86_64"; then
+ if test `dpkg-architecture -qDEB_BUILD_GNU_CPU` = "x86_64"; then
echo 'we are x86_64'
AC_DEFINE([HAVE_GOOD_YASM_ELF64], [1], [we have a recent yasm and are x86_64])
with_good_yasm=yes
|