From 918e867abe6a455a401346744820d9e54a977749 Mon Sep 17 00:00:00 2001 From: Zdenek Kabelac Date: Tue, 1 Aug 2017 00:04:20 +0200 Subject: [PATCH] makefiles: use gcc warns with gcc only Avoid passing 'gcc' warning options to non-gcc compiler --- make.tmpl.in | 2 ++ 1 file changed, 2 insertions(+) diff --git a/make.tmpl.in b/make.tmpl.in index 2b2ddd16a..102079ef4 100644 --- a/make.tmpl.in +++ b/make.tmpl.in @@ -163,6 +163,7 @@ INSTALL_SCRIPT = $(INSTALL) -p $(M_INSTALL_PROGRAM) .SUFFIXES: .SUFFIXES: .c .cpp .d .o .so .a .po .pot .mo .dylib +ifeq ("$(notdir $(CC))", "gcc") WFLAGS +=\ -Wall\ -Wcast-align\ @@ -207,6 +208,7 @@ endif ifeq ("@HAVE_WSYNCNAND@", "yes") WFLAGS += -Wsync-nand endif +endif ifneq ("@STATIC_LINK@", "yes") ifeq ("@HAVE_PIE@", "yes")