iscsi-scst/usr/Makefile: Use -Werror when testing a compiler option

This is necessary for clang.


git-svn-id: http://svn.code.sf.net/p/scst/svn/trunk@9430 d57e44dd-8a1f-0410-8b47-8ef2f437770f
This commit is contained in:
Bart Van Assche
2021-05-29 01:16:42 +00:00
parent 237910043b
commit af9504a0f5

View File

@@ -18,7 +18,7 @@ ifndef PREFIX
PREFIX=/usr/local
endif
cc-option = $(shell if $(CC) $(1) -S -o /dev/null -xc /dev/null \
cc-option = $(shell if $(CC) $(1) -Werror -S -o /dev/null -xc /dev/null \
> /dev/null 2>&1; then echo "$(1)"; else echo "$(2)"; fi ;)
SRCS_D = iscsid.c iscsi_scstd.c conn.c session.c target.c message.c ctldev.c \