[PATCH] Use append attribution to CFLAGS in wcsmbs

Gabriel F. T. Gomes gftg@linux.vnet.ibm.com
Wed Mar 8 16:47:00 GMT 2017


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  <gftg@linux.vnet.ibm.com>

	* 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
-- 
2.4.11



More information about the Libc-alpha mailing list