summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorReuben Thomas <rrt@sc3d.org>2011-03-22 14:51:34 +0000
committerReuben Thomas <rrt@sc3d.org>2011-03-22 14:51:34 +0000
commit8b73b9fbb4c62093935c9d13fa9c5da07404c53b (patch)
tree22d90039a027e651cbfd837d46304129849e1355 /src
parent67ffd75e2196aa0e7c9aa340954daca8de15980f (diff)
downloadlrexlib-8b73b9fbb4c62093935c9d13fa9c5da07404c53b.tar.gz
Improve portability to Darwin.
Diffstat (limited to 'src')
-rw-r--r--src/common.mak4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/common.mak b/src/common.mak
index 3cdb158..c41bc5d 100644
--- a/src/common.mak
+++ b/src/common.mak
@@ -5,8 +5,10 @@ DEFS = -DREX_OPENLIB=luaopen_$(TRG) -DREX_LIBNAME=\"$(TRG)\"
CFLAGS = $(MYCFLAGS) $(DEFS) $(INC)
TRG_AR = lib$(TRG).a
TRG_SO = $(TRG).so
-LD = ld
+LD = $(CC)
LDFLAGS= -shared
+# For Darwin:
+#LDFLAGS= -bundle -undefined dynamic_lookup
all: $(TRG_AR) $(TRG_SO)