From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: 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-Subscribe: List-Archive: List-Post: List-Help: , Sender: crossgcc-owner@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 11:55:00 -0000 Message-ID: Subject: [PATCH 1 of 1] Allow reordered MAKEFLAGS From: Ray Donnelly To: "Yann E. MORIN" , crossgcc@sourceware.org Content-Type: text/plain; charset=ISO-8859-1 X-SW-Source: 2013-07/txt/msg00015.txt.bz2 # 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 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 -- For unsubscribe information see http://sourceware.org/lists.html#faq