Permalink
Browse files

lem: don't rely LUA_LDIR for repl path

  • Loading branch information...
1 parent 4905499 commit 4e249f90158c0b5250f176853bbec23af1c21177 @esmil committed Jan 18, 2013
Showing with 2 additions and 1 deletion.
  1. +1 −0 Makefile.in
  2. +1 −1 bin/lem.c
View
@@ -55,6 +55,7 @@ debug: bin/lem lem.pc $(clibs)
bin/libev.o: CFLAGS += -w
bin/lua.o: lua/luaconf.h
+bin/lem.o: CFLAGS += -D'LEM_LDIR="$(lmoddir)/"'
%.o: %.c
$E ' CC $@'
View
@@ -302,7 +302,7 @@ queue_file(int argc, char *argv[], int fidx)
if (fidx < argc)
filename = argv[fidx];
else
- filename = LUA_LDIR "lem/repl.lua";
+ filename = LEM_LDIR "lem/repl.lua";
switch (luaL_loadfile(T, filename)) {
case LUA_OK: /* success */

0 comments on commit 4e249f9

Please sign in to comment.