[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Mac OS X Leopard and conftest.dSYM directories

From: Peter O'Gorman
Subject: Re: Mac OS X Leopard and conftest.dSYM directories
Date: Sat, 10 Nov 2007 15:08:13 -0600
User-agent: Thunderbird (X11/20070727)

Ralf Wildenhues wrote:
> Hello Peter, Jeff,
> Thanks for your additional information; and thanks, Peter, for trying to
> work against this, umm, a bit ugly situation.
> * Peter O'Gorman wrote on Sat, Nov 10, 2007 at 04:01:09PM CET:
>> Peter O'Gorman wrote:
>>> When you do cc -o foo foo.c,
>> Of course, I meant:
>> cc -o foo -g foo.c
> What about separated compilation and linking?  Do the directories get
> created upon
>   cc -g -c foo.c
>   cc -g -o foo foo.o

No, only when output is created directly from a source file (or when the
user runs dsymutil). The compiler calls dsymutil in the case where it is
going to delete the temporary object file (and with it the debugging

> say, these four examples:
>   cc -g -o objsub/bar.o src/sub/foo.c
>   cc -g -o bin/foo sub/baz.o
>   ar cru sub/libfoo.a sub2/bar.o sub3/baz.o
>   cc [shlib_options] -o sub/foo.dylib bar/obj.o

In these cases the foo.dSYM directory structure is not created, out of
curiosity, I tried:
cc -g -o objsub/foo src/sub/foo.c
and foo.dSYM was created in the output dir (objsub/foo.dSYM).

The barf that is output during configure is mostly harmless, but is
annoying. We just need to change the tests that do compilation without
any intermediate objects to either use intermediate objects, or rm -rf
conftest.* afterwards.


reply via email to

[Prev in Thread] Current Thread [Next in Thread]