From: John Hodge (sonata) Date: Fri, 7 Nov 2014 02:51:03 +0000 (+0800) Subject: AcessNative - Add userland build to makefile X-Git-Url: https://git.ucc.asn.au/?a=commitdiff_plain;h=372f6414f56b17c0e9a4306f8e77355c59814f9c;p=tpg%2Facess2.git AcessNative - Add userland build to makefile --- diff --git a/AcessNative/Makefile b/AcessNative/Makefile index c7090be7..8d5d6c4c 100644 --- a/AcessNative/Makefile +++ b/AcessNative/Makefile @@ -1,7 +1,10 @@ .PHONY: all clean +V ?= @ + all clean: @$(MAKE) -C acesskernel_src $@ @$(MAKE) -C ld-acess_src $@ - @$(MAKE) -C libacess-native.so_src $@ + @$(MAKE) -C libacess-native.so_src $@ + @$(MAKE) -C .. $@-user ARCH=native V=$(V) diff --git a/AcessNative/libacess-native.so_src/main.c b/AcessNative/libacess-native.so_src/main.c index 7f62545f..d1e86847 100644 --- a/AcessNative/libacess-native.so_src/main.c +++ b/AcessNative/libacess-native.so_src/main.c @@ -10,6 +10,8 @@ #include #include "../ld-acess_src/exports.h" +extern int gbSyscallDebugEnabled; + #ifdef __WINDOWS__ int DllMain(void) { @@ -40,6 +42,8 @@ int libacessnative_init(int argc, char *argv[], char **envp) { Request_Preinit(); + //gbSyscallDebugEnabled = 1; + const char *preopens = getenv_p(envp, ENV_VAR_PREOPENS); printf("preopens = %s\n", preopens); if( preopens )