summaryrefslogtreecommitdiff
path: root/lwlib
diff options
context:
space:
mode:
authorGlenn Morris <rgm@gnu.org>2015-06-09 15:23:47 -0400
committerGlenn Morris <rgm@gnu.org>2015-06-09 15:23:47 -0400
commit79344156956891ded1ab79c42e8b4bc467366b3b (patch)
tree2464fd9ad6954456ebba81f469b130ced2a9b813 /lwlib
parent76f2d766ad6691eae6ae4006264f59724cc73a23 (diff)
* Makefile.in (SUBDIR_MAKEFILES):
* lwlib/Makefile.in (WARN_CFLAGS): Use built-in Make functions rather than echo+sed.
Diffstat (limited to 'lwlib')
-rw-r--r--lwlib/Makefile.in3
1 files changed, 2 insertions, 1 deletions
diff --git a/lwlib/Makefile.in b/lwlib/Makefile.in
index cbc747cbba..bfeef16571 100644
--- a/lwlib/Makefile.in
+++ b/lwlib/Makefile.in
@@ -31,7 +31,8 @@ C_SWITCH_X_SITE=@C_SWITCH_X_SITE@
C_SWITCH_SYSTEM=@C_SWITCH_SYSTEM@
C_SWITCH_MACHINE=@C_SWITCH_MACHINE@
PROFILING_CFLAGS = @PROFILING_CFLAGS@
-WARN_CFLAGS = `echo @WARN_CFLAGS@ | sed 's/ -Wwrite-strings//'`
+WARN_CFLAGS = @WARN_CFLAGS@
+WARN_CFLAGS := $(filter-out -Wwrite-strings,${WARN_CFLAGS})
WERROR_CFLAGS = @WERROR_CFLAGS@
CAIRO_CFLAGS= @CAIRO_CFLAGS@