hewei 6 years ago
parent
commit
7b2ad2d919
1 changed files with 1 additions and 1 deletions
  1. 1 1
      Makefile.in

+ 1 - 1
Makefile.in

@@ -160,7 +160,7 @@ ifeq ($(OS), Android)
 	LDFLAGS += -lstdc++ -lm -llog -ldl
 	LDFLAGS += -lstdc++ -lm -llog -ldl
 else
 else
 	LDFLAGS += -lstdc++ -lpthread -lm -ldl
 	LDFLAGS += -lstdc++ -lpthread -lm -ldl
-ifneq ($(findstring gcc, $(CC)), )
+ifneq ($(findstring gcc, $(CC_VERSION)), )
 	LDFLAGS += -lrt # for clock_gettime, clang not -lrt
 	LDFLAGS += -lrt # for clock_gettime, clang not -lrt
 endif
 endif
 endif
 endif