Building openjdk 8 on Mac OS X
Wang Weijun
weijun.wang at oracle.com
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
--with-tools-dir=/Applications/Xcode4.app/Contents/Developer/usr/bin
3. When applying Na's patch, make sure to use Xcode4.app if that's what your path is.
With these, I am able to build the latest jdk8u-dev forest.
--Max
----------Advice from Denis--------------
Steps:
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/Xcode4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -F/Applications/Xcode4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks" --with-extra-cxxflags="-isysroot /Applications/Xcode4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk -F/Applications/Xcode4.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks" --with-boot-jdk=/Library/Java/JavaVirtualMachines/jdk1.8.0_20.jdk/Contents/Home/
Thank you,
Denis.
---------------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
-F/System/Library/Frameworks/JavaVM.framework/Frameworks
-framework JavaNativeFoundation -framework Security -framework CoreFoundation
+ SALIBS = -isysroot
/Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform
/Developer/SDKs/MacOSX10.8.sdk
-g -framework Foundation
-F/System/Library/Frameworks/JavaVM.framework/Frameworks -framework
JavaNativeFoundation -framework Security -framework CoreFoundation
----------------end-----------------
> On Jan 7, 2015, at 11:58, Manas Thakur <manasthakur17 at gmail.com> 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