Building openjdk 8 on Mac OS X

Wang Weijun at
Wed Jan 7 07:57:47 UTC 2015

Advices from Denis and Na (were in this thread, quoted at the end), and

1. MACOSX_DEPLOYMENT_TARGET is also necessary for make

2. I need an extra configure argument


3. When applying Na's patch, make sure to use if that's what your path is.

With these, I am able to build the latest jdk8u-dev forest.


----------Advice from Denis--------------


1.  Download and save in some secure place Xcode4.6
2.  Make a link form Xcode.4 lipo to /usr/bin/lipo
3.  Set MACOSX_DEPLOYMENT_TARGET enviroment variable to 10.8
4.  Execute  configure like this

sh configure --with-freetype=/Volumes/HD-PATU3/tools/freetype-2.4.0/  --with-extra-cflags="-isysroot /Applications/ -F/Applications/" --with-extra-cxxflags="-isysroot /Applications/ -F/Applications/" --with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/

Thank you,

---------------Advice from Na-----------------

You need to patch /hotspot/make/bsd/makefiles/saproc.make to make it use
10.8sdk instead of system library in Yosemite.

- SALIBS = -g -framework Foundation
-framework JavaNativeFoundation -framework Security -framework CoreFoundation

+ SALIBS = -isysroot
-g -framework Foundation
-F/System/Library/Frameworks/JavaVM.framework/Frameworks -framework
JavaNativeFoundation -framework Security -framework CoreFoundation


> On Jan 7, 2015, at 11:58, Manas Thakur <manasthakur17 at> wrote:
> Hi Toby,
> Can you please share all those patches that you needed to do in order to successfully build jdk8 (or jdk8u) on MAC OS X Yosemite?
> Regards,
> Manas

More information about the build-dev mailing list