From e18771cc020f6fd42f6427540c079e48699ab310 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Mon, 17 Jun 2013 10:09:32 +0200 Subject: Complete 5d211c6fa6a0452cc4569712e436184e34504a88: Remove generate.nativelibrary.sources and dynlink* gluegen files due to manual impl. --- make/dynlink-unix-CustomJavaCode.java | 18 ------------------ 1 file changed, 18 deletions(-) delete mode 100755 make/dynlink-unix-CustomJavaCode.java (limited to 'make/dynlink-unix-CustomJavaCode.java') diff --git a/make/dynlink-unix-CustomJavaCode.java b/make/dynlink-unix-CustomJavaCode.java deleted file mode 100755 index 5d10edf..0000000 --- a/make/dynlink-unix-CustomJavaCode.java +++ /dev/null @@ -1,18 +0,0 @@ -public long openLibrary(String pathname) { - // Note we use RTLD_GLOBAL visibility to allow this functionality to - // be used to pre-resolve dependent libraries of JNI code without - // requiring that all references to symbols in those libraries be - // looked up dynamically via the ProcAddressTable mechanism; in - // other words, one can actually link against the library instead of - // having to dlsym all entry points. System.loadLibrary() uses - // RTLD_LOCAL visibility so can't be used for this purpose. - return dlopen(pathname, RTLD_LAZY | RTLD_GLOBAL); -} - -public long lookupSymbol(long libraryHandle, String symbolName) { - return dlsym(libraryHandle, symbolName); -} - -public void closeLibrary(long libraryHandle) { - dlclose(libraryHandle); -} -- cgit v1.2.3