Skip to content

Commit

Permalink
Updated libffi and samples to new submodules directory
Browse files Browse the repository at this point in the history
  • Loading branch information
Jamie Jennings committed Nov 29, 2016
1 parent 309f2ab commit f807162
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 9 deletions.
12 changes: 6 additions & 6 deletions ffi/librosie/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
## -*- Mode: BSDmakefile; -*-
## -*- Mode: Makefile; -*-
##
## Makefile for building librosie.so, on which Rosie's foreign function interface is based.
##
Expand All @@ -8,8 +8,8 @@

## Use "DEBUG=1" on the command line to enable verbose debugging output

HOME = `cd ../..; pwd`
ROSIE = "$(HOME)/rosie"
HOME = $(shell cd ../..; pwd)
ROSIE = "$(HOME)/bin/rosie"

ifdef DEBUG
COPT = "-DDEBUG"
Expand Down Expand Up @@ -39,12 +39,12 @@ SYSCFLAGS=
SYSLDFLAGS=
SYSLIBS=

MYCFLAGS= -I$(HOME)/tmp/lua-5.3.2/include
MYLDFLAGS= -L$(HOME)/tmp/lua-5.3.2/src
MYCFLAGS= -I$(HOME)/submodules/lua/include
MYLDFLAGS= -L$(HOME)/submodules/lua/src
MYLIBS=
MYOBJS=

LUA_A= $(HOME)/tmp/lua-5.3.2/src/liblua.a
LUA_A= $(HOME)/submodules/lua/src/liblua.a

ALL= librosie.so

Expand Down
4 changes: 2 additions & 2 deletions ffi/librosie/librosie.c
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@
* ----------------------------------------------------------------------------------------
*/

/* TODO: First try to load bin/bootstrap.luac and then fall back to src/bootstrap.lua */
/* TODO: First try to load bin/bootstrap.luac and then fall back to src/core/bootstrap.lua */
static int bootstrap (lua_State *L, struct string *rosie_home) {
const char *bootscript = "/src/bootstrap.lua";
const char *bootscript = "/src/core/bootstrap.lua";
LOG("About to bootstrap\n");
char *name = malloc(rosie_home->len + strlen(bootscript) + 1);
memcpy(name, rosie_home->ptr, rosie_home->len);
Expand Down
2 changes: 1 addition & 1 deletion ffi/samples/go/setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ ln -fs $LIB/librosie_gen.h src/rtest/include/librosie_gen.h
ln -fs $LIB/librosie_gen.c src/rtest/include/librosie_gen.c

echo "Creating 'libs' directory in 'src/rtest' and symlink to liblua"
LIB=`cd ../../../tmp/lua-5.3.2/src && pwd`
LIB=`cd ../../../submodules/lua/src && pwd`
mkdir -p src/rtest/libs
ln -fs $LIB/liblua.a src/rtest/libs/liblua.a

Expand Down

0 comments on commit f807162

Please sign in to comment.