[darwinbuild] Custom flags and PB Projects

Shantonu Sen ssen at opendarwin.org
Thu Feb 9 07:32:48 PST 2006

darwinbuild creates a symboled version by default. Look in the  
"Symbols" directory at the top level of your build area. It should  
have something like:
[ssen at stargate]$ nm -ap Symbols/bootp/bootpd  | grep SO |  grep bootp  
| head
00002288 - 01 0000    SO /SourceCache/bootp/bootp-133.6/bootpd.tproj/
00002288 - 01 0000    SO bootpd.m
00000000 - 00 0000   SOL bootpd.m
00000000 - 00 0000   SOL bootpd.m
00000000 - 00 0000   SOL ../bootplib/netinfo.h

-g is the same as -ggdb on Mac OS X. What you are most likely seeing  
is the fact that after linking, the final product is stripped and a  
copy of the *un*stripped binary put in the SYMROOT.

Where are you modifying the source? To build modified source, untar  
the source directory in Sources/, make your changes there, and then  
re-run darwinbuild


On Feb 9, 2006, at 6:24 AM, Graham J Lee wrote:

> Hi,
> I've searched the archives and the darwinbuild website for this  
> one, and tried some things of my own, and haven't been able to find  
> an answer, so here I am :-).
> I'm trying to hunt down a crash in /usr/libexec/bootpd by building  
> a custom bootp-133.6 from Darwin 8G32, using darwinbuild.  I want  
> to turn on as much debugging as I can using -ggdb so that I can  
> inspect variables and list source; the default seems to be '-g'  
> which doesn't contain source listing:
> (gdb) list
> 1	{standard input}: No such file or directory.
> 	in {standard input}
> Now bootp is a project builder project with a Makefile; I've tried  
> modifying settings in Makefile.postamble including ALL_MFLAGS and  
> ALL_CFLAGS, and DEBUG_SYMBOLS_CFLAGS but they don't get picked up  
> when I subsequently invoke darwinbuild bootp.  It still uses the  
> default compiler flags.  How do I modify this project to include  
> custom compiler flags?
> Thanks,
> Graham.
> _______________________________________________
> darwinbuild mailing list
> darwinbuild at opendarwin.org
> http://www.opendarwin.org/mailman/listinfo/darwinbuild

More information about the darwinbuild-dev mailing list