From patchwork Wed Oct 24 13:42:55 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Corinna Vinschen X-Patchwork-Id: 193782 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]) by ozlabs.org (Postfix) with SMTP id A43742C0156 for ; Thu, 25 Oct 2012 00:43:59 +1100 (EST) Comment: DKIM? See http://www.dkim.org DKIM-Signature: v=1; a=rsa-sha1; c=relaxed/relaxed; d=gcc.gnu.org; s=default; x=1351691041; h=Comment: DomainKey-Signature:Received:Received:Received:Received:Received: Received:Date:From:To:Subject:Message-ID:Reply-To: Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition: User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:Sender:Delivered-To; bh=7fLhEaE dDTEAPRQrNOr9vsKyK3Y=; b=tOHinoW+CpDickHmj1hc8iAMt/KdT35yuc1cHE1 QebK4Ee3tdKTHUCQtVyaGkaAEHiZO7ZFga2F0U+84/czV4DSFk8ohvIfCGStW6gb qjtsMsZhE4f1h6CuTcBHUH6dp3Rn4Q5cD0CQwgrkUYwiInywFsVIfa/f2KfOlC6e 0MS8= Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys DomainKey-Signature: a=rsa-sha1; q=dns; c=nofws; s=default; d=gcc.gnu.org; h=Received:Received:X-SWARE-Spam-Status:X-Spam-Check-By:Received:Received:Received:Received:Date:From:To:Subject:Message-ID:Reply-To:Mail-Followup-To:MIME-Version:Content-Type:Content-Disposition:User-Agent:Mailing-List:Precedence:List-Id:List-Unsubscribe:List-Archive:List-Post:List-Help:Sender:Delivered-To; b=pfPiZmbGecytYI0w+yNZIMUHm83Z8RhnwTSfzOGTkh5R+yoCo59HP3tFH74tpm z1e2axjFbm2yrW8zNpKmYtFuFOLT9BSgtzzWehpKgt+OVwAVAXN7D/OrIgh9HjHM 6y/mNhPD6dZh0gWOxH4p9E+dxcnIdRSavtu/eMjxrc3zA=; Received: (qmail 32443 invoked by alias); 24 Oct 2012 13:43:06 -0000 Received: (qmail 32382 invoked by uid 22791); 24 Oct 2012 13:43:04 -0000 X-SWARE-Spam-Status: No, hits=-2.2 required=5.0 tests=AWL, BAYES_00, KHOP_RCVD_UNTRUST, RCVD_IN_DNSWL_LOW, SPF_HELO_PASS X-Spam-Check-By: sourceware.org Received: from mail-n.franken.de (HELO mail-n.franken.de) (193.175.24.27) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Oct 2012 13:42:58 +0000 Received: from aqua.hirmke.de (aquarius.franken.de [193.175.24.89]) by mail-n.franken.de (Postfix) with ESMTP id 654E51C0C069F for ; Wed, 24 Oct 2012 15:42:56 +0200 (CEST) Received: from calimero.vinschen.de (calimero.vinschen.de [192.168.129.6]) by aqua.hirmke.de (Postfix) with ESMTP id C223126C04E for ; Wed, 24 Oct 2012 15:42:55 +0200 (CEST) Received: by calimero.vinschen.de (Postfix, from userid 500) id A0DE32C00AF; Wed, 24 Oct 2012 15:42:55 +0200 (CEST) Date: Wed, 24 Oct 2012 15:42:55 +0200 From: Corinna Vinschen To: gcc-patches@gcc.gnu.org, cygwin-patches@cygwin.com, gdb-patches@sourceware.org, binutils@sourceware.org Subject: [toplevel patch] Simplify FLAGS_FOR_TARGET for Cygwin Message-ID: <20121024134255.GC31527@calimero.vinschen.de> Reply-To: gcc-patches@gcc.gnu.org, cygwin-patches@cygwin.com, gdb-patches@sourceware.org, binutils@sourceware.org Mail-Followup-To: gcc-patches@gcc.gnu.org, cygwin-patches@cygwin.com, gdb-patches@sourceware.org, binutils@sourceware.org MIME-Version: 1.0 Content-Disposition: inline User-Agent: Mutt/1.5.21 (2010-09-15) 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 Hi guys, I just applied the below patch to the sourceware src repo. The reason for the patch is that Cygwin won't be using the in-tree mingw and w32api any longer, but instead it requires an external installation of a Mingw64 based w32api, and a Mingw64 build environment to build the native Windows utilities. Additionally the FLAGS_FOR_TARGET contains one dir which doesn't contain any libs (winsup) and one dir which doesn't exist (winsup/include). The below patch only changes FLAGS_FOR_TARGET accordingly. Could somebody with toplevel checkin rights in the gcc repo please apply this patch there, too? Thanks, Corinna 2012-10-24 Corinna Vinschen * configure.ac (FLAGS_FOR_TARGET,target=cygwin): Fix for building against Mingw64 w32api. * configure: Regenerate. Index: configure.ac =================================================================== RCS file: /cvs/src/src/configure.ac,v retrieving revision 1.176 diff -u -p -r1.176 configure.ac --- configure.ac 23 Oct 2012 23:02:33 -0000 1.176 +++ configure.ac 24 Oct 2012 13:39:56 -0000 @@ -2827,7 +2827,7 @@ case " $target_configdirs " in *" --with-newlib "*) case "$target" in *-cygwin*) - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' ;; esac Index: configure =================================================================== RCS file: /cvs/src/src/configure,v retrieving revision 1.432 diff -u -p -r1.432 configure --- configure 23 Oct 2012 23:02:33 -0000 1.432 +++ configure 24 Oct 2012 13:39:55 -0000 @@ -7301,7 +7301,7 @@ case " $target_configdirs " in *" --with-newlib "*) case "$target" in *-cygwin*) - FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -L$$r/$(TARGET_SUBDIR)/winsup/w32api/lib -isystem $$s/winsup/include -isystem $$s/winsup/cygwin/include -isystem $$s/winsup/w32api/include' + FLAGS_FOR_TARGET=$FLAGS_FOR_TARGET' -L$$r/$(TARGET_SUBDIR)/winsup/cygwin -isystem $$s/winsup/cygwin/include' ;; esac