From fb8e239cb46c44911d4369d3c8418bd286b28893 Mon Sep 17 00:00:00 2001 From: Johnothan King Date: Mon, 17 Jan 2022 11:52:55 -0800 Subject: [PATCH] Fix build error on AIX 64-bit (#428) This commit adds a wrapper for the AIX ar command that uses the -X64 flag to avoid build errors on that platform. Resolves: https://github.com/ksh93/ksh/issues/385 --- src/cmd/INIT/ar.ibm.risc | 2 +- src/cmd/INIT/ar.ibm.risc-64 | 9 +++++++++ 2 files changed, 10 insertions(+), 1 deletion(-) create mode 100755 src/cmd/INIT/ar.ibm.risc-64 diff --git a/src/cmd/INIT/ar.ibm.risc b/src/cmd/INIT/ar.ibm.risc index 0247643e7..022dc08b6 100755 --- a/src/cmd/INIT/ar.ibm.risc +++ b/src/cmd/INIT/ar.ibm.risc @@ -1,4 +1,4 @@ -: stupid stupid stupid to require a non-standard option for ar to work : 2009-10-06 : +: ar requires a non-standard option to work : 2009-10-06 : op=$1 shift diff --git a/src/cmd/INIT/ar.ibm.risc-64 b/src/cmd/INIT/ar.ibm.risc-64 new file mode 100755 index 000000000..ca3122b2c --- /dev/null +++ b/src/cmd/INIT/ar.ibm.risc-64 @@ -0,0 +1,9 @@ +: ar requires a non-standard option to work : 2022-01-14 : + +op=$1 +shift +case $op in +-*) ;; +*) op=-$op ;; +esac +/usr/bin/ar -X64 "$op" "$@"