summaryrefslogtreecommitdiff
path: root/make.tmpl.in
diff options
context:
space:
mode:
authorZdenek Kabelac <zkabelac@redhat.com>2017-08-01 00:04:20 +0200
committerZdenek Kabelac <zkabelac@redhat.com>2017-08-01 11:53:13 +0200
commit918e867abe6a455a401346744820d9e54a977749 (patch)
treec2d0631c6133e610c00fda7d96d59e1cf16e9d9c /make.tmpl.in
parent57727bb4ebffb30cf21b151cc2f66bfd7d924a81 (diff)
downloadlvm2-918e867abe6a455a401346744820d9e54a977749.tar.gz
makefiles: use gcc warns with gcc only
Avoid passing 'gcc' warning options to non-gcc compiler
Diffstat (limited to 'make.tmpl.in')
-rw-r--r--make.tmpl.in2
1 files changed, 2 insertions, 0 deletions
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")