diff options
author | Reuben Thomas <rrt@sc3d.org> | 2011-03-22 14:51:34 +0000 |
---|---|---|
committer | Reuben Thomas <rrt@sc3d.org> | 2011-03-22 14:51:34 +0000 |
commit | 8b73b9fbb4c62093935c9d13fa9c5da07404c53b (patch) | |
tree | 22d90039a027e651cbfd837d46304129849e1355 /src | |
parent | 67ffd75e2196aa0e7c9aa340954daca8de15980f (diff) | |
download | lrexlib-8b73b9fbb4c62093935c9d13fa9c5da07404c53b.tar.gz |
Improve portability to Darwin.
Diffstat (limited to 'src')
-rw-r--r-- | src/common.mak | 4 |
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) |