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

This commit is contained in:
Jonir Rings
2018-05-16 01:04:33 +08:00
parent acb110323e
commit 148811d8b2
2 changed files with 4 additions and 4 deletions
+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