makefile fix: make complains "Extraneous text after `else' directive" and cause incorrect platform judgement on osx

This commit is contained in:
Jonir Rings committed 2018-05-16 01:04:33 +08:00
1 parent acb110323e
commit 148811d8b2
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -10,11 +10,11 @@ SYS := $(shell gcc -dumpmachine)
ifneq (, $(findstring linux, $(SYS)))
# Linux
CFLAGS += -Wno-unused-but-set-variable
else ifneq(, $(findstring cygwin, $(SYS)))
else ifneq (, $(findstring cygwin, $(SYS)))
# Cygwin
CFLAGS += -Wno-unused-but-set-variable
LIBS += -liconv
else ifneq(, $(findstring darwin, $(SYS)))
else ifneq (, $(findstring darwin, $(SYS)))
# OS X
LIBS += -liconv
else