You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.markdown
+40Lines changed: 40 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -29,3 +29,43 @@ Syntax
29
29
--cflags CFLAGS to use when compiling a JNI library
30
30
--ldflags LDFLAGS to use when linking to the jvm
31
31
32
+
Example Usage
33
+
-------------
34
+
I wrote this tool primarily to aid in building JNI libraries. All of the other options are present because they are easy to get at and I was forever writing little one liner java programs to pull them out of the system properties.
35
+
36
+
Here is an example Linux makefile for building a shared library:
I used to use autoconf or other such craziness for this stuff, but JNI libraries are usually simple enough to require just quick incantations like the above. Bundling the java-config.jar with your source and using it to discover compilation options on the fly makes it all self-configuring.
0 commit comments