Building Java 7 on OS X Snow Leopard

John Rose John.Rose at Sun.COM
Wed Oct 7 14:34:46 PDT 2009

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:

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.

-------------- next part --------------
An HTML attachment was scrubbed...

More information about the bsd-port-dev mailing list