aboutsummaryrefslogtreecommitdiffstats
path: root/make/dynlink-macosx.cfg
diff options
context:
space:
mode:
Diffstat (limited to 'make/dynlink-macosx.cfg')
-rwxr-xr-xmake/dynlink-macosx.cfg25
1 files changed, 25 insertions, 0 deletions
diff --git a/make/dynlink-macosx.cfg b/make/dynlink-macosx.cfg
new file mode 100755
index 0000000..8ba4c51
--- /dev/null
+++ b/make/dynlink-macosx.cfg
@@ -0,0 +1,25 @@
+Style AllStatic
+JavaClass MacOSXDynamicLinkerImpl
+Package com.sun.gluegen.runtime
+Implements MacOSXDynamicLinkerImpl DynamicLinker
+JavaOutputDir ../src/java
+NativeOutputDir ../src/native/macosx
+HierarchicalNativeOutput false
+
+# Note that we can use the same CustomJavaCode as the unix
+# implementation, but some of the constants (e.g. RTLD_GLOBAL) resolve
+# to different values
+IncludeAs CustomJavaCode MacOSXDynamicLinkerImpl dynlink-unix-CustomJavaCode.java
+CustomCCode #include <dlfcn.h>
+CustomCCode #include </usr/include/machine/types.h>
+
+ArgumentIsString dlopen 0
+ArgumentIsString dlsym 1
+ReturnsString dlerror
+Opaque long void*
+
+# Hide the platform-specific functions
+AccessControl dlopen PRIVATE
+AccessControl dlsym PRIVATE
+AccessControl dlclose PRIVATE
+AccessControl dlerror PRIVATE