Skip to content

Instantly share code, notes, and snippets.

@komamitsu
Created February 5, 2017 13:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save komamitsu/3b1dc3bfc67a5dbea1458fbcb3e4c8aa to your computer and use it in GitHub Desktop.
Save komamitsu/3b1dc3bfc67a5dbea1458fbcb3e4c8aa to your computer and use it in GitHub Desktop.
[komamitsu@potato mtrace]$ pwd
/Users/komamitsu/src/openjdk/jdk/src/share/demo/jvmti/mtrace
[komamitsu@potato mtrace]$ clang -I${JAVA_HOME}/include -I${JAVA_HOME}/include/darwin -I../agent_util -I../java_crw_demo -c ../agent_util/agent_util.c ../java_crw_demo/java_crw_demo.c *.c
[komamitsu@potato mtrace]$ clang -dynamiclib -L${JAVA_HOME} -shared -o libmtrace.so *.o
[komamitsu@potato mtrace]$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment