summaryrefslogtreecommitdiff
path: root/preload
diff options
context:
space:
mode:
authorLauri Leukkunen <lleukkun@leka.rahina.org>2006-08-05 19:58:41 +0300
committerLauri Leukkunen <lleukkun@leka.rahina.org>2006-08-05 19:58:41 +0300
commit4e3191c544bdcf4b62368df1c08f0e694a015af4 (patch)
treedbddc4eeb2462f5e851b741a9027295f481ff530 /preload
parentafceeeaf463fe3b94b4c2a12208a1245a9b6859b (diff)
first helloworld binary compiled!
Diffstat (limited to 'preload')
-rw-r--r--preload/Makefile2
-rw-r--r--preload/sb_alien.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/preload/Makefile b/preload/Makefile
index 1e6d645..f9c7944 100644
--- a/preload/Makefile
+++ b/preload/Makefile
@@ -6,7 +6,7 @@ obj-default = libsb2.o libsb_env.o sb_alien.o
extra_targets = libsb2.so
-libsb2.so: built-in.o
+libsb2.so: built-in.o ../lua/built-in.o
# $(LD) --export-dynamic -Bsymbolic -shared -o libsb2.so built-in.o ../lua/built-in.o $(LIBS)
$(CC) -shared -o libsb2.so built-in.o ../lua/built-in.o $(LIBS)
diff --git a/preload/sb_alien.c b/preload/sb_alien.c
index 6fc4360..9adb1e7 100644
--- a/preload/sb_alien.c
+++ b/preload/sb_alien.c
@@ -5,8 +5,8 @@
#include <libgen.h>
-#define LD_LIB_PATH "/lib/:/lib/tls"
-#define LD_SO "/lib/ld-2.4.so"
+#define LD_LIB_PATH "/scratchbox/sarge/lib/:/scratchbox/sarge/lib/tls:/scratchbox/sarge/usr/lib"
+#define LD_SO "/scratchbox/sarge/lib/ld-linux.so.2"
extern int (*next_execve) (const char *filename, char *const argv [], char *const envp[]);