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: 19491 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