On May 23, 2020 2:15:45 AM GMT+02:00, David Edelsohn via Gcc-patches 
<gcc-patches@gcc.gnu.org> wrote:
>TL;DR: This patch updates configure.ac and Makefile.in in libcpp and
>libdecnumber to substitute AR archiver.
>
>AIX supports "FAT" libraries containing 32 bit and 64 bit objects
>(similar to Darwin), but commands for manipulating libraries do not
>default to accept both 32 bit and 64 bit object files.  While updating
>the AIX configuration to support building and running GCC as a 64 bit
>application, I have encountered some build libraries that hard code
>AR=ar instead of testing the environment.
>
>This patch adds AR_CHECK_TOOL(AR, ar) to configure.ac for the two
>libraries and updates Makefile.in to accept the substitution.
>
>Bootstrapped on powerpc64le-ibm-linux-gnu.
>
>Okay?

OK. 

Richard. 
>
>Thanks, David
>
>libcpp/
>        * Makefile.in (AR): Substitute @AR@.
>        * configure.ac (CHECK_PROG AR): New.
>        * configure: Regenerate.
>
>libdecnumber/
>        * Makefile.in (AR): Substitute @AR@.
>        * configure.ac (CHECK_PROG AR): New.
>        * configure: Regenerate.
>
>diff --git a/libcpp/Makefile.in b/libcpp/Makefile.in
>index ebbca07..5fbba9b 100644
>--- a/libcpp/Makefile.in
>+++ b/libcpp/Makefile.in
>@@ -25,7 +25,7 @@ srcdir = @srcdir@
> top_builddir = .
> VPATH = @srcdir@
> INSTALL = @INSTALL@
>-AR = ar
>+AR = @AR@
> ARFLAGS = cru
> ACLOCAL = @ACLOCAL@
> AUTOCONF = @AUTOCONF@
>diff --git a/libcpp/configure.ac b/libcpp/configure.ac
>index 540efeb..1efa96f 100644
>--- a/libcpp/configure.ac
>+++ b/libcpp/configure.ac
>@@ -12,6 +12,7 @@ AC_PROG_INSTALL
> AC_PROG_CC
> AC_PROG_CXX
> AC_PROG_RANLIB
>+AC_CHECK_TOOL(AR, ar)
>
> AC_USE_SYSTEM_EXTENSIONS
> AC_SYS_LARGEFILE
>diff --git a/libdecnumber/Makefile.in b/libdecnumber/Makefile.in
>index 9260b48..9da028d 100644
>--- a/libdecnumber/Makefile.in
>+++ b/libdecnumber/Makefile.in
>@@ -25,7 +25,7 @@ srcdir = @srcdir@
> top_builddir = .
> VPATH = @srcdir@
> INSTALL = @INSTALL@
>-AR = ar
>+AR = @AR@
> ARFLAGS = cru
> ACLOCAL = @ACLOCAL@
> AUTOCONF = @AUTOCONF@
>diff --git a/libdecnumber/configure.ac b/libdecnumber/configure.ac
>index de7e008..ae475a0 100644
>--- a/libdecnumber/configure.ac
>+++ b/libdecnumber/configure.ac
>@@ -28,6 +28,7 @@ AC_CONFIG_AUX_DIR(..)
> AC_PROG_MAKE_SET
> AC_PROG_CC
> AC_PROG_RANLIB
>+AC_CHECK_TOOL(AR, ar)
>
> MISSING=`cd $ac_aux_dir && ${PWDCMD-pwd}`/missing
> AC_CHECK_PROGS([ACLOCAL], [aclocal], [$MISSING aclocal])

Reply via email to