From 6caad4c497726983864401545aa7a29934ddd67d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahelenia=20Ziemia=C5=84ska?= Date: Fri, 9 Oct 2020 17:39:42 +0200 Subject: configure.ac, arch/x86_64: handle x32 as subarch of x86_64 and don't specify -mcmodel=large there MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Ahelenia ZiemiaƄska Signed-off-by: Simon Horman --- configure.ac | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'configure.ac') diff --git a/configure.ac b/configure.ac index f025823..eb3ecac 100644 --- a/configure.ac +++ b/configure.ac @@ -63,6 +63,17 @@ case $target_cpu in ;; esac +if test "$ARCH" = "x86_64" ; then + case $target in + *x32 ) + SUBARCH="x32" + ;; + * ) + SUBARCH="" + ;; + esac +fi + dnl ---Options OBJDIR=`pwd`/objdir -- cgit v1.2.1