From patchwork Wed Jul 10 11:55:02 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Ray Donnelly X-Patchwork-Id: 258027 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 741BB2C02B1 for ; Wed, 10 Jul 2013 21:55:14 +1000 (EST) DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; q=dns; s=default; b=hiLX2rkK1FINsMProthd+MI6pW/F+ BY45Pca6ykGWKWAcijQWirtu2rpHGYbBgu04iQ7C6VrAXFSbG+8pLROM9+Tvw3Sq LgaFIxHlrUCHNtj6elM3GsjNOinI0+eMTZzLExB+X6+AcuAQUUGQ2yB3xlcQmyrX CyG/B44qAiH22Q= DKIM-Signature: v=1; a=rsa-sha1; c=relaxed; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:mime-version:date:message-id:subject:from:to :content-type; s=default; bh=bxWY//DUboBICGaFXi2r3B4MRhg=; b=cPT tSsP0NgVLHSsj7CJAodWhojO9KaQUf1wsOYzO52WlY3qYEwB0V/t7SOJe+3SaYGl JVNVWj1q6bJ5EJsZEfZT0GKGU3++JwYik5OIJJR8Vf6+A19/3PnFHMEjJTHO3SFh 8mGrVOGnqsHPPcKdjgkVvTo9j+VRWTYv99yYkdDY= Received: (qmail 7669 invoked by alias); 10 Jul 2013 11:55:05 -0000 Mailing-List: contact crossgcc-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@sourceware.org Delivered-To: mailing list crossgcc@sourceware.org Received: (qmail 7657 invoked by uid 89); 10 Jul 2013 11:55:05 -0000 X-Spam-SWARE-Status: No, score=-2.6 required=5.0 tests=BAYES_00, FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_HOSTKARMA_YE, SPF_PASS autolearn=ham version=3.3.1 Received: from mail-ob0-f177.google.com (HELO mail-ob0-f177.google.com) (209.85.214.177) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Wed, 10 Jul 2013 11:55:04 +0000 Received: by mail-ob0-f177.google.com with SMTP id ta17so8245586obb.36 for ; Wed, 10 Jul 2013 04:55:02 -0700 (PDT) MIME-Version: 1.0 X-Received: by 10.60.102.41 with SMTP id fl9mr27768735oeb.37.1373457302931; Wed, 10 Jul 2013 04:55:02 -0700 (PDT) Received: by 10.60.45.99 with HTTP; Wed, 10 Jul 2013 04:55:02 -0700 (PDT) Date: Wed, 10 Jul 2013 12:55:02 +0100 Message-ID: Subject: [PATCH 1 of 1] Allow reordered MAKEFLAGS From: Ray Donnelly To: "Yann E. MORIN" , crossgcc@sourceware.org # HG changeset patch # User Ray Donnelly # Date 1373456421 -3600 # Wed Jul 10 12:40:21 2013 +0100 # Node ID 4972bd801ee6942dd1a27d4ffdd06f15482a7c45 # Parent 2685dfa9de14fbe356ba76cb201bf5c039cf6860 Allow reordered MAKEFLAGS -R and -r (-Rr) can be reordered to -r and -R (-rR). This happens with MSYS1/2 gnu-make and mingw32-make, and triggers "Recursion detected, bailing out..." Signed-off-by: Ray Donnelly --- For unsubscribe information see http://sourceware.org/lists.html#faq diff -r 2685dfa9de14 -r 4972bd801ee6 Makefile.in --- a/Makefile.in Thu May 23 17:51:15 2013 +0200 +++ b/Makefile.in Wed Jul 10 12:40:21 2013 +0100 @@ -24,9 +24,14 @@ # Note: dual test, because if -R and -r are given on the command line # (who knows?), MAKEFLAGS contains 'Rr' instead of '-Rr', while adding # '-Rr' to MAKEFLAGS adds it literaly ( and does not add 'Rr' ) +# Further: quad test because the flags 'rR' and '-rR' can be reordered. ifeq ($(filter Rr,$(MAKEFLAGS)),) ifeq ($(filter -Rr,$(MAKEFLAGS)),) +ifeq ($(filter rR,$(MAKEFLAGS)),) +ifeq ($(filter -rR,$(MAKEFLAGS)),) CT_MAKEFLAGS += -Rr +endif # No -rR +endif # No rR endif # No -Rr endif # No Rr