Building Java 7 on OS X Snow Leopard
dave at cheney.net
Wed Oct 7 14:41:39 PDT 2009
I find this works for me. Removing the CC / CXX references from the
make line causes the printf issues whilst compiling hotspot, so I
assume that, when specified, they are working as advertised.
crimson:~ dave$ cat jdk7/bsd-port/build.sh
On 08/10/2009, at 8:34 AM, John Rose wrote:
> Are you sure you're getting the right compilers? I haven't said
> this yet, but I found I had to hack harder to override them:
> export ALT_COMPILER_PATH=$(pwd -P)/ALT_COMPILER_PATH/
> ls -la ALT_COMPILER_PATH/
> total 24
> drwxr-xr-x 5 jrose staff 170 Oct 3 16:59 .
> drwxr-xr-x 30 jrose staff 1020 Oct 7 14:30 ..
> lrwxr-xr-x 1 jrose staff 8 Oct 3 16:58 .SOURCE -> /usr/bin
> lrwxr-xr-x 1 jrose staff 15 Oct 3 16:59 g++ -> .SOURCE/g++-4.0
> lrwxr-xr-x 1 jrose staff 15 Oct 3 16:59 gcc -> .SOURCE/gcc-4.0
> Maybe that's your problem too? (And maybe there's a better way than
> mine to fix it?) Basically, the forest-level makefile does not
> respect those environment variables, although the hotspot repo.
> makefiles do. It's confusing, but apparently the forest-level
> makefiles refer to the jdk repo. makefiles, which in turn have the
> names "gcc", "g++" hard-coded, and require a setting to
> ALT_COMPILER_PATH to override.
> I think the philosophy here (Kelly O'Hair would know for sure) is to
> minimize the environmental inputs to the makefiles, making them be
> clearly marked, hence the "ALT_" convention.
> -- John
> On Oct 7, 2009, at 1:31 PM, Brett Hoerner wrote:
>> Hi guys,
>> Sorry I'm adding more to this (as some of you seem to have it working
>> now) but I'm trying to round up the process of successfully building
>> Java 7 on Snow Leopard into one place so it can put on a wiki or
>> blogged or something.
More information about the bsd-port-dev