Skip to content

Commit 665319b

Browse files
committed
Merge pull request #19 from secondwtq/master
Fixed build on OS X.
2 parents e4e8252 + af32c92 commit 665319b

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/Makefile

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,8 @@ else
2424
HOST_SYS:= $(shell uname -s)
2525
ifneq (,$(findstring CYGWIN,$(TARGET_SYS)))
2626
HOST_SYS= Windows
27+
else ifeq (Darwin,$(HOST_SYS))
28+
LFLAGS += -pagezero_size 10000 -image_base 100000000
2729
endif
2830
endif
2931

@@ -56,7 +58,7 @@ TARGETS = liblang.a
5658
all: $(TARGETS) luajit-x
5759

5860
luajit-x: $(LANG_OBJ_FILES) luajit-x.o
59-
$(COMPILE) -o $@ $(LANG_OBJ_FILES) luajit-x.o $(LIBS)
61+
$(COMPILE) -o $@ $(LANG_OBJ_FILES) luajit-x.o $(LIBS) $(LFLAGS)
6062

6163
liblang.a: $(LANG_OBJ_FILES)
6264
@echo Archive $@

0 commit comments

Comments
 (0)