From patchwork Sat May 23 00:15:45 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: David Edelsohn X-Patchwork-Id: 1296563 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=sourceware.org; envelope-from=gcc-patches-bounces@gcc.gnu.org; receiver=) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=gcc.gnu.org Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; unprotected) header.d=gcc.gnu.org header.i=@gcc.gnu.org header.a=rsa-sha256 header.s=default header.b=R1O7UrhZ; dkim-atps=neutral Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 49TP5z4g8dz9sRf for ; Sat, 23 May 2020 10:16:05 +1000 (AEST) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 215DB3870856; Sat, 23 May 2020 00:16:01 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 215DB3870856 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1590192961; bh=EleYsM+g35YHSgIQ1XwjxybU6+yi4tTuGFQhhnH9MBw=; h=Date:Subject:To:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=R1O7UrhZbNgSoATIo5qfwbsDQHtbxfG7LPxNXdmHLZ/3ohhzILd6R9niTuh+5mAnX i5m3Xwyou7ExCNnr/LfmQrFyuqs7a3qTD6cnXGj2BFEVj+hc+Wgk02YOvz1eyJhcwu +PX7uCGw/KrF7SiKnhoQkyHjoNwp9XCWdrmOvB2Y= X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-wm1-x341.google.com (mail-wm1-x341.google.com [IPv6:2a00:1450:4864:20::341]) by sourceware.org (Postfix) with ESMTPS id CC121386F83E for ; Sat, 23 May 2020 00:15:57 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org CC121386F83E Received: by mail-wm1-x341.google.com with SMTP id n5so11636822wmd.0 for ; Fri, 22 May 2020 17:15:57 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=EleYsM+g35YHSgIQ1XwjxybU6+yi4tTuGFQhhnH9MBw=; b=bwZhbaAc/ioSY838TgHYTHOYBrUT+eoRkwzvsjpWHsJ/N9R9ig+BaAupRbRVwKaM4C vAa2JPAkUiPHKw8GcBtuEGix4uRu9VVaE3klC7CxzXniWrx8/UPfMBMiDVyYh2WUwemw 3oKPmQG30yG3qiU7LZGbt+w930GD6u5SM/+rTi1rci+jGrQu5qxM6E3IjL0QJ/eFOS70 lANZ8oYnUkb4UH30kymIy+ASdMoBhA7lziBmqtSnG+wqj+0uDEn6bUtKyp3kO38A+ydD oqwSDZFhCLDSW5A534PQlljNJC+WUUJ4uTGRXNPWNw7fACroC5/ZhhlXZnZK5lAK9KAX mH8Q== X-Gm-Message-State: AOAM5331fm7wUTJ9AGqkMfG8TpDs0aqgawJoRkSWOwWGBOMQ6vKXs2/w +P4l3x0IYpPJKNxWDJCtOfTjSrOmmiuTpRjp2hPRRt4JEmw= X-Google-Smtp-Source: ABdhPJzGdVsOWPFCB9SMjusgc+lp+3mTknhBbrOyfv/Oov5tL7Pztfn7rQZ8ArNobCv26RnXIiJbOMLbASWu+aKKI8g= X-Received: by 2002:a1c:66d6:: with SMTP id a205mr16260346wmc.163.1590192956435; Fri, 22 May 2020 17:15:56 -0700 (PDT) MIME-Version: 1.0 Date: Fri, 22 May 2020 20:15:45 -0400 Message-ID: Subject: [PATCH] Check and substitute AR in libcpp and libdecnumber To: GCC Patches X-Spam-Status: No, score=-7.8 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, GIT_PATCH_0, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: David Edelsohn via Gcc-patches From: David Edelsohn Reply-To: David Edelsohn Errors-To: gcc-patches-bounces@gcc.gnu.org Sender: "Gcc-patches" 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? 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])