From patchwork Fri Jul 5 02:27:30 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jack Howarth X-Patchwork-Id: 257031 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from sourceware.org (server1.sourceware.org [209.132.180.131]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "localhost", Issuer "www.qmailtoaster.com" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 0C6222C0090 for ; Fri, 5 Jul 2013 12:27:40 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; q=dns; s=default; b=rn5eXQY64ZW1zUFBhl1jem4DQ8c55A9Inm2nZbC5crJtdbogpP Th7uI0FvPzvEwWWtmO5EXnEJoTcENtsff7eMaVi349we/NEn7WgxC+4ZA7easihB +Y28EFfCxPD/hyvrKWcYCc7iQ4UIy8RNiPurxTy6l+5uYbCcnb6lhzq6U= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=gcc.gnu.org; h=list-id :list-unsubscribe:list-archive:list-post:list-help:sender:date :from:to:cc:subject:message-id:mime-version:content-type; s= default; bh=Y/lI5E9jksxgBstxtQCAoFl2ZEE=; b=flg/zkh9UQ/7m5513fOz 26tIPpTAT7KYXkZD0DGXiCVxnqEiz1l3cdyY3xgJAX+yroBlmqpL2wNb/EZjmr/J V0TmsBjrnp92CgfMGwe0fi1yQWVyX88rWjvEaOuiuG8l9rI16gIWqw89N4r7FSAa 9bhVxlj/0m8snR4FkUb8UYU= Received: (qmail 753 invoked by alias); 5 Jul 2013 02:27:33 -0000 Mailing-List: contact gcc-patches-help@gcc.gnu.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Archive: List-Post: List-Help: Sender: gcc-patches-owner@gcc.gnu.org Delivered-To: mailing list gcc-patches@gcc.gnu.org Received: (qmail 743 invoked by uid 89); 5 Jul 2013 02:27:33 -0000 X-Spam-SWARE-Status: No, score=-1.9 required=5.0 tests=AWL, BAYES_00, RP_MATCHES_RCVD autolearn=ham version=3.3.1 Received: from bromo.med.uc.edu (HELO bromo.med.uc.edu) (129.137.3.146) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Fri, 05 Jul 2013 02:27:32 +0000 Received: from bromo.med.uc.edu (localhost.localdomain [127.0.0.1]) by bromo.med.uc.edu (Postfix) with ESMTP id B7F89B2D54; Thu, 4 Jul 2013 22:27:30 -0400 (EDT) Received: (from howarth@localhost) by bromo.med.uc.edu (8.14.3/8.14.3/Submit) id r652RUPd000714; Thu, 4 Jul 2013 22:27:30 -0400 Date: Thu, 4 Jul 2013 22:27:30 -0400 From: Jack Howarth To: gcc-patches@gcc.gnu.org Cc: mikestump@comcast.net, iain@codesourcery.com Subject: [PATCH] PR57792: Bootstrap darwin13 or later with --with-sysroot to find SDK Message-ID: <20130705022730.GA566@bromo.med.uc.edu> MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.18 (2008-05-17) X-Virus-Found: No The attached patch eliminates the problem of the SDK being removed from / in darwin13 and later by appending --with-sysroot=\"`xcrun --show-sdk-path`\" to host_configargs in the top-level configure for those cases . Bootstrap tested on x86_64-apple-darwin13. Okay for gcc trunk and gcc-4_8-branch? Jack 2013-07-05 Jack Howarth PR target/57792 * configure.ac: Use --with-sysroot=\"`xcrun --show-sdk-path`\" on darwin13 and later. * configure: Regenerated. Index: configure.ac =================================================================== --- configure.ac (revision 200683) +++ configure.ac (working copy) @@ -2850,6 +2850,13 @@ if test x${is_cross_compiler} = xyes ; t target_configargs="--with-cross-host=${host_noncanonical} ${target_configargs}" fi +# Pass --with-sysroot on darwin without SDK in / +case "${target}" in + x86_64-*-darwin1[[3-9]]*) + host_configargs="--with-sysroot=\"`xcrun --show-sdk-path`\" ${host_configargs}" + ;; +esac + # Default to --enable-multilib. if test x${enable_multilib} = x ; then target_configargs="--enable-multilib ${target_configargs}"