clib linkage
This commit is contained in:
parent
935ac34dc1
commit
bd85a2b104
|
@ -4,6 +4,7 @@ NDRIVE = g:
|
||||||
|
|
||||||
NDK_ROOT = $(NDKBASE)/ndk
|
NDK_ROOT = $(NDKBASE)/ndk
|
||||||
SDK_LIBC = $(NDK_ROOT)/libc
|
SDK_LIBC = $(NDK_ROOT)/libc
|
||||||
|
SDK_CLIB = $(NDK_ROOT)/clib
|
||||||
|
|
||||||
JBINDINGS = ../../../bindings/java
|
JBINDINGS = ../../../bindings/java
|
||||||
JBUILD = $(JBINDINGS)/build
|
JBUILD = $(JBINDINGS)/build
|
||||||
|
@ -35,7 +36,9 @@ LDFLAGS = -nostdlib $(PRELUDE) $(DEF_FILE) $(NW_OBJ) $(SIGAR_OBJ) $(JNI_OBJ) -o
|
||||||
INCLUDES += \
|
INCLUDES += \
|
||||||
-I$(SDK_LIBC)/include \
|
-I$(SDK_LIBC)/include \
|
||||||
-I$(SDK_LIBC)/include/nks \
|
-I$(SDK_LIBC)/include/nks \
|
||||||
-I$(SDK_LIBC)/include/winsock
|
-I$(SDK_LIBC)/include/winsock \
|
||||||
|
-I$(SDK_CLIB)/include \
|
||||||
|
-I$(SDK_CLIB)/include/nlm
|
||||||
|
|
||||||
CFLAGS += $(INCLUDES)
|
CFLAGS += $(INCLUDES)
|
||||||
|
|
||||||
|
|
|
@ -47,11 +47,14 @@ int _NonAppStart(void *NLMHandle,
|
||||||
|
|
||||||
WSADATA wsaData;
|
WSADATA wsaData;
|
||||||
|
|
||||||
|
NWCallsInit(NULL, NULL);
|
||||||
|
|
||||||
return WSAStartup((WORD)MAKEWORD(2, 0), &wsaData);
|
return WSAStartup((WORD)MAKEWORD(2, 0), &wsaData);
|
||||||
}
|
}
|
||||||
|
|
||||||
void _NonAppStop(void)
|
void _NonAppStop(void)
|
||||||
{
|
{
|
||||||
|
NWCallsTerm(NULL);
|
||||||
WSACleanup();
|
WSACleanup();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -12,6 +12,8 @@ check _LibCCheckUnload
|
||||||
import @c:/novell/ndk/libc/imports/libc.imp
|
import @c:/novell/ndk/libc/imports/libc.imp
|
||||||
import @c:/novell/ndk/libc/imports/netware.imp
|
import @c:/novell/ndk/libc/imports/netware.imp
|
||||||
import @c:/novell/ndk/libc/imports/ws2nlm.imp
|
import @c:/novell/ndk/libc/imports/ws2nlm.imp
|
||||||
|
import @c:/novell/ndk/clib/imports/clib.imp
|
||||||
|
import @c:/novell/ndk/clib/imports/calnlm32.imp
|
||||||
module libc
|
module libc
|
||||||
export @../../../bindings/java/build/src/javasigar_generated.def
|
export @../../../bindings/java/build/src/javasigar_generated.def
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue