]> jfr.im git - irc/irssi/irssi.git/commitdiff
Fix build on IBM i
authorCalvin Buckley <redacted>
Mon, 19 Nov 2018 14:18:34 +0000 (14:18 +0000)
committerCalvin Buckley <redacted>
Mon, 19 Nov 2018 14:18:34 +0000 (14:18 +0000)
* 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

index 03e05847bb0d5c052064585b7711875c2a70d72d..82af3a208d4c90b87f5e44fa4d7f43b1230cb30a 100644 (file)
@@ -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