[GRASS-dev] build problems on Mac OS X 10.5.2.

William Kyngesburye woklist at kyngchaos.com
Fri May 9 10:16:57 EDT 2008


On May 9, 2008, at 3:02 AM, crundel wrote:

> William pointed out the issue is with the -g flag being passed which  
> for
> some unknown reason seems to result in the test programs compiling  
> as OSX
> applications, hence that directory organization you were seeing, and  
> then

I never really thought about it.  It may be because of the way GCC  
handles compilation vs linking.  In configure, for a run test, it  
compiles *and* links the test program in one step ($ac_link).  When  
the debug flag is used, GCC may be assuming that we want an OSX  
application and quietly packages one up for us.

-g works in GRASS compilation later because all programs are compiled  
to object files first (even if there is only one), then linked into  
the program binary.

So, maybe it is kindof a broken configure - this app packaging problem  
started in Xcode 3.0 on Leopard, and GRASS' configure doesn't know  
about it yet.

-----
William Kyngesburye <kyngchaos*at*kyngchaos*dot*com>
http://www.kyngchaos.com/

"We are at war with them. Neither in hatred nor revenge and with no  
particular pleasure I shall kill every ___ I can until the war is  
over. That is my duty."

"Don't you even hate 'em?"

"What good would it do if I did? If all the many millions of people of  
the allied nations devoted an entire year exclusively to hating the  
____ it wouldn't kill one ___ nor shorten the war one day."

<Ha, ha> "And it might give 'em all stomach ulcers."

- Tarzan, on war



More information about the grass-dev mailing list