BUILD: fix build with clang

This commit is contained in:
hasufell 2014-05-31 01:38:21 +02:00
parent f7f8556910
commit a79fb49cdf
No known key found for this signature in database
GPG Key ID: 220CD1C5BDEED020

View File

@ -5,7 +5,7 @@ PKG_CONFIG ?= pkg-config
# flags
CFLAGS ?= -march=native -O2 -pipe
CFLAGS += -std=c99 -pedantic -Wall -Wextra -Werror -Wno-unused-variable -Wno-unused-parameter -Wno-unused-function
ifeq ($(shell $(CC) -v 2>&1 | grep 'gcc version' &>/dev/null && echo 1),1)
ifeq ($(CC),gcc)
CFLAGS += -Wno-unused-but-set-variable
endif
LDFLAGS ?= -Wl,-O1 -Wl,--as-needed -Wl,--hash-style=gnu