From 795e7ec16240613dd13e8378128bb5fa66b6dc93 Mon Sep 17 00:00:00 2001 From: Calvin Buckley Date: Mon, 19 Nov 2018 14:18:34 +0000 Subject: [PATCH] Fix build on IBM i * Lots of warnings about subdirectories. Set an automake option to deal with this. * Set an ar flag for explicit 64-bit when on IBM i, due to it defaulting to 64-bit output with official gcc by default. --- configure.ac | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/configure.ac b/configure.ac index 03e05847..82af3a20 100644 --- a/configure.ac +++ b/configure.ac @@ -5,7 +5,7 @@ AC_PREREQ(2.50) AC_CONFIG_HEADERS([irssi-config.h]) AC_CONFIG_MACRO_DIR([m4]) -AM_INIT_AUTOMAKE([1.9 no-define foreign]) +AM_INIT_AUTOMAKE([1.9 no-define foreign subdir-objects]) AM_SILENT_RULES([yes]) @@ -199,6 +199,12 @@ case "$host_os" in hpux*) CFLAGS="$CFLAGS -D_XOPEN_SOURCE_EXTENDED" ;; + os400*) + dnl IBM i uses ppc64 gcc by default, but binutils defaults to 32-bit. Force + dnl IBM binutils, and force it into ppc64 mode. This isn't set for AIX + dnl because gcc there defaults to ppc32. + AR="/usr/bin/ar -X64" + ;; *) ;; esac