From patchwork Wed Mar 8 16:47:53 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Gabriel F. T. Gomes" X-Patchwork-Id: 736656 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.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3vdfbW5C7dz9sP2 for ; Thu, 9 Mar 2017 03:48:07 +1100 (AEDT) Authentication-Results: ozlabs.org; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.b="rSjwODTo"; dkim-atps=neutral DomainKey-Signature: a=rsa-sha1; c=nofws; d=sourceware.org; h=list-id :list-unsubscribe:list-subscribe:list-archive:list-post :list-help:sender:from:to:subject:date:message-id; q=dns; s= default; b=elvYOl9OFiSSpfAlRa+ChHj5pOngidzLx/V1SkOuevW7i4TPZc1HT 47X0KA70emC5o3dGaFALVqdryvjswWyOPbd7sZovn0foQOWsxyVzF1wcnufvX95P rJOvhK7aEkTxnnjeLxwVSnq2WH4If8IrVKrdCo/iirswiopDthnZsc= 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:from:to:subject:date:message-id; s=default; bh=zuWMkX+4bOuAauE2v2/KElzhY6M=; b=rSjwODTolsO58lRHsE+o5r8S/7uf dxt6N1Ogn7P6y1JorhhDHvM4/a6DmqvJygV/9FUborEGX0TtNq3h40SvKORl8zpO aB7ZJNHu+4oEqyFjPYPRiBIKDXqc6dYTHLziPTTwrzbkI6s55qgUbbw48RYoJtrr Jdge3acssXYY9Mw= Received: (qmail 79564 invoked by alias); 8 Mar 2017 16:47:58 -0000 Mailing-List: contact libc-alpha-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: libc-alpha-owner@sourceware.org Delivered-To: mailing list libc-alpha@sourceware.org Received: (qmail 79538 invoked by uid 89); 8 Mar 2017 16:47:58 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-26.9 required=5.0 tests=BAYES_00, GIT_PATCH_0, GIT_PATCH_1, GIT_PATCH_2, GIT_PATCH_3, RP_MATCHES_RCVD, SPF_PASS autolearn=ham version=3.3.2 spammy= X-HELO: mail.gftg.com.br From: "Gabriel F. T. Gomes" To: libc-alpha@sourceware.org Subject: [PATCH] Use append attribution to CFLAGS in wcsmbs Date: Wed, 8 Mar 2017 13:47:53 -0300 Message-Id: <1488991673-21932-1-git-send-email-gftg@linux.vnet.ibm.com> CFLAGS for several files in wcsmbs/Makefile are set without the append operator ("+="), thus ignoring other attributions. This patch changes that so Makefiles in sysdeps can set extra compilation flags. This is being done in preparation for future float128 patches. Tested for powerpc64le and x86_64. 2017-03-07 Gabriel F. T. Gomes * wcsmbs/Makefile (CFLAGS-wcstol.c, CFLAGS-wcstoul.c) (CFLAGS-wcstoll.c, CFLAGS-wcstoull.c, CFLAGS-wcstod.c) (CFLAGS-wcstold.c, CFLAGS-wcstof.c, CFLAGS-wcstol_l.c) (CFLAGS-wcstoul_l.c, CFLAGS-wcstoll_l.c, CFLAGS-wcstoull_l.c) (CFLAGS-wcstod_l.c, CFLAGS-wcstold_l.c, CFLAGS-wcstof_l.c) (CPPFLAGS-tst-wchar-h.c): Use the append operator. --- wcsmbs/Makefile | 30 +++++++++++++++--------------- 1 file changed, 15 insertions(+), 15 deletions(-) diff --git a/wcsmbs/Makefile b/wcsmbs/Makefile index d6b214b..b29c85e 100644 --- a/wcsmbs/Makefile +++ b/wcsmbs/Makefile @@ -75,21 +75,21 @@ CFLAGS-wcwidth.c = -I../wctype CFLAGS-wcswidth.c = -I../wctype strtox-CFLAGS = -I../include -CFLAGS-wcstol.c = $(strtox-CFLAGS) -CFLAGS-wcstoul.c = $(strtox-CFLAGS) -CFLAGS-wcstoll.c = $(strtox-CFLAGS) -CFLAGS-wcstoull.c = $(strtox-CFLAGS) -CFLAGS-wcstod.c = $(strtox-CFLAGS) -CFLAGS-wcstold.c = $(strtox-CFLAGS) -CFLAGS-wcstof.c = $(strtox-CFLAGS) -CFLAGS-wcstol_l.c = $(strtox-CFLAGS) -CFLAGS-wcstoul_l.c = $(strtox-CFLAGS) -CFLAGS-wcstoll_l.c = $(strtox-CFLAGS) -CFLAGS-wcstoull_l.c = $(strtox-CFLAGS) -CFLAGS-wcstod_l.c = $(strtox-CFLAGS) -CFLAGS-wcstold_l.c = $(strtox-CFLAGS) -CFLAGS-wcstof_l.c = $(strtox-CFLAGS) -CPPFLAGS-tst-wchar-h.c = -D_FORTIFY_SOURCE=2 +CFLAGS-wcstol.c += $(strtox-CFLAGS) +CFLAGS-wcstoul.c += $(strtox-CFLAGS) +CFLAGS-wcstoll.c += $(strtox-CFLAGS) +CFLAGS-wcstoull.c += $(strtox-CFLAGS) +CFLAGS-wcstod.c += $(strtox-CFLAGS) +CFLAGS-wcstold.c += $(strtox-CFLAGS) +CFLAGS-wcstof.c += $(strtox-CFLAGS) +CFLAGS-wcstol_l.c += $(strtox-CFLAGS) +CFLAGS-wcstoul_l.c += $(strtox-CFLAGS) +CFLAGS-wcstoll_l.c += $(strtox-CFLAGS) +CFLAGS-wcstoull_l.c += $(strtox-CFLAGS) +CFLAGS-wcstod_l.c += $(strtox-CFLAGS) +CFLAGS-wcstold_l.c += $(strtox-CFLAGS) +CFLAGS-wcstof_l.c += $(strtox-CFLAGS) +CPPFLAGS-tst-wchar-h.c += -D_FORTIFY_SOURCE=2 CFLAGS-isoc99_wscanf.c += -fexceptions CFLAGS-isoc99_fwscanf.c += -fexceptions