From aad01ff4db38fabd814f59adc87a47d92a48770b Mon Sep 17 00:00:00 2001 From: =?utf8?q?Alexander=20K=C3=B6plinger?= Date: Mon, 3 Oct 2016 00:33:15 +0200 Subject: [PATCH] [btls] Fix i386 build on Linux by setting -arch on Darwin only The -arch option is an Apple extension, it caused failures on i386 Linux: "unrecognized command line option '-arch'" --- configure.ac | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 27a9d324991..f79f320c009 100644 --- a/configure.ac +++ b/configure.ac @@ -3937,7 +3937,11 @@ if test "x$enable_btls" = "xyes"; then case "$BTLS_PLATFORM" in i386) btls_arch=i386 - btls_cflags="-m32 -arch i386" + btls_cflags="-m32" + case $host_os in + darwin*) + btls_cflags="$btls_cflags -arch i386" + esac ;; x86_64) btls_arch=x86_64 -- 2.11.4.GIT