projects
/
visomat-utils.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (from parent 1:
4ea2b18
)
Makefile: don't use clang unsupported options with clang
author
Antonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 16:31:06 +0000
(17:31 +0100)
committer
Antonio Ospite <ao2@ao2.it>
Sat, 9 Jan 2016 16:31:06 +0000
(17:31 +0100)
src/Makefile
patch
|
blob
|
history
diff --git
a/src/Makefile
b/src/Makefile
index
371a75c
..
c39f955
100644
(file)
--- a/
src/Makefile
+++ b/
src/Makefile
@@
-23,13
+23,15
@@
CFLAGS += -fno-common \
-Wswitch-enum \
-Wundef \
-Wunreachable-code \
-Wswitch-enum \
-Wundef \
-Wunreachable-code \
- -Wunsafe-loop-optimizations \
- -Wunused-but-set-variable \
-Wwrite-strings \
-Wp,-D_FORTIFY_SOURCE=2 \
-fstack-protector \
--param=ssp-buffer-size=4
-Wwrite-strings \
-Wp,-D_FORTIFY_SOURCE=2 \
-fstack-protector \
--param=ssp-buffer-size=4
+ifneq ($(CC),clang)
+ CFLAGS += -Wunsafe-loop-optimizations -Wunused-but-set-variable
+endif
+
CFLAGS += $(shell pkg-config --cflags libusb-1.0)
LDLIBS := $(shell pkg-config --libs libusb-1.0)
CFLAGS += $(shell pkg-config --cflags libusb-1.0)
LDLIBS := $(shell pkg-config --libs libusb-1.0)