From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 86037 invoked by alias); 1 Jun 2017 10:52:58 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Received: (qmail 86024 invoked by uid 89); 1 Jun 2017 10:52:57 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-10.9 required=5.0 tests=AWL,BAYES_00,GIT_PATCH_2,GIT_PATCH_3,RCVD_IN_DNSWL_NONE,SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: smtp.eu.adacore.com Received: from mel.act-europe.fr (HELO smtp.eu.adacore.com) (194.98.77.210) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 01 Jun 2017 10:52:55 +0000 Received: from localhost (localhost [127.0.0.1]) by filtered-smtp.eu.adacore.com (Postfix) with ESMTP id B18FB8136C for ; Thu, 1 Jun 2017 12:52:57 +0200 (CEST) Received: from smtp.eu.adacore.com ([127.0.0.1]) by localhost (smtp.eu.adacore.com [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ZlmH2_kc-a1w for ; Thu, 1 Jun 2017 12:52:57 +0200 (CEST) Received: from polaris.localnet (bon31-6-88-161-99-133.fbx.proxad.net [88.161.99.133]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.eu.adacore.com (Postfix) with ESMTPSA id 8F4318132C for ; Thu, 1 Jun 2017 12:52:57 +0200 (CEST) From: Eric Botcazou To: gcc-patches@gcc.gnu.org Subject: [Ada] Fix PR ada/80921 Date: Thu, 01 Jun 2017 10:52:00 -0000 Message-ID: <3625146.StOI0GK9tB@polaris> User-Agent: KMail/4.14.10 (Linux/3.16.7-53-desktop; KDE/4.14.9; x86_64; ; ) MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="nextPart15428030.Pl2qAaJ8aQ" Content-Transfer-Encoding: 7Bit X-SW-Source: 2017-06/txt/msg00025.txt.bz2 This is a multi-part message in MIME format. --nextPart15428030.Pl2qAaJ8aQ Content-Transfer-Encoding: 7Bit Content-Type: text/plain; charset="us-ascii" Content-length: 348 We have apparently never tried to build shared libraries in cross builds. Tested on x86_64-suse-linux, applied on mainline and 7 & 6 branches. 2017-06-01 Eric Botcazou PR ada/80921 * configure.ac (default_gnatlib_target): Remove bogus condition. (have_getipinfo): Tweak. * configure: Regenerate. -- Eric Botcazou --nextPart15428030.Pl2qAaJ8aQ Content-Disposition: attachment; filename="pr80921.diff" Content-Transfer-Encoding: 7Bit Content-Type: text/x-patch; charset="UTF-8"; name="pr80921.diff" Content-length: 1073 Index: configure.ac =================================================================== --- configure.ac (revision 248552) +++ configure.ac (working copy) @@ -127,9 +127,7 @@ AC_PROG_AWK AC_PROG_LN_S # Determine what to build for 'gnatlib' -if test $build = $target \ - && test ${enable_shared} = yes ; then - # Note that build=target is almost certainly the wrong test; FIXME +if test ${enable_shared} = yes; then default_gnatlib_target="gnatlib-shared" else default_gnatlib_target="gnatlib-plain" @@ -138,15 +136,16 @@ AC_SUBST([default_gnatlib_target]) # Check for _Unwind_GetIPInfo GCC_CHECK_UNWIND_GETIPINFO -have_getipinfo= if test x$have_unwind_getipinfo = xyes; then have_getipinfo=-DHAVE_GETIPINFO +else + have_getipinfo= fi -AC_SUBST(have_getipinfo) +AC_SUBST([have_getipinfo]) # Check for AC_CHECK_HEADER([sys/capability.h], have_capability=-DHAVE_CAPABILITY, have_capability=) -AC_SUBST(have_capability) +AC_SUBST([have_capability]) # Determine what GCC version number to use in filesystem paths. GCC_BASE_VER --nextPart15428030.Pl2qAaJ8aQ--