macos High Sierra Clang 10.0.0 编译openjdk8u

1.参考文章

https://www.jianshu.com/p/0e6300eddcf4

https://www.jianshu.com/p/d9a1e1072f37

https://blog.csdn.net/csujiangyu/article/details/52045443

https://www.dazhuanlan.com/2019/10/16/5da6049cb8bf6/

fatal error: 'JavaNativeFoundation/JavaNativeFoundation.h' file not found
#import 

https://imkiva.com/blog/2018/02/body/building-openjdk8-on-macos/

2.configure 参数

bash ./configure --with-debug-level=slowdebug  --enable-debug-symbols --disable-zip-debug-info --with-memory-size=6144 ZIP_DEBUGINFO_FILES=0  OBJCOPY=gobjcopy  --with-jobs=8 CC=clang CXX=clang++

3.make 参数

make LOG=trace all JOBS=8 ZIP_DEBUGINFO_FILES=0 COMPILER_WARNINGS_FATAL=false LFLAGS='-Xlinker -lstdc++' CXX=clang++ USE_CLANG=true LP64=1 

 

你可能感兴趣的:(java虚拟机)