Compiling lci on OSX

57 views
Skip to first unread message

beppu

unread,
Mar 4, 2011, 7:24:52 PM3/4/11
to lci-general
FYI, to compile lci on OSX, change the Makefile so that it doesn't try
to explicitly link libm. Apparently, on OSX, you get access to what's
usually in libm without having to ask for it.

diff --git a/Makefile b/Makefile
index ff3df8c..4257f51 100644
--- a/Makefile
+++ b/Makefile
@@ -1,5 +1,5 @@
TARGET = lci
-LIBS = -lm
+LIBS =
OBJS = lexer.o tokenizer.o parser.o interpreter.o unicode.o main.o
SRCS = lexer.c tokenizer.c parser.c interpreter.c unicode.c main.c
INSTALL = cp
Reply all
Reply to author
Forward
0 new messages