Fix compilation under MacOSX

This commit is contained in:
Gabriele Gristina committed 2019-07-10 18:43:19 +02:00
1 parent 77c5e28bce
commit 563050c8ba
6 files changed
+41 -6

No files matched your search

+7
View File
@@ -12,13 +12,20 @@ endif
# Your platform. See PLATS for possible values.
PLAT= none
platform= $(shell uname)
CC= gcc
CFLAGS= -O3 -Wall -DLUA_COMPAT_ALL $(SYSCFLAGS) $(MYCFLAGS)
LDFLAGS= $(SYSLDFLAGS) $(MYLDFLAGS)
LIBS= -lm $(SYSLIBS) $(MYLIBS)
ifeq ($(platform),Darwin)
AR= /usr/bin/ar rc
RANLIB= /usr/bin/ranlib
else
AR= ar rc
RANLIB= ranlib
endif
RM= rm -f
SYSCFLAGS=