Jürgen Keil wrote:
I want to build a command via "make" in source tree, but by default,
it seems that it can not build a version with debug info.
Is there a easy way to build it via "make" in cmd subdir.
I'm using something like this (example: recompile "format" utility
with debug info) :
% bldenv opensolaris.sh
% cd usr/src/cmd/format/
% dmake clean
% grep -- -O ../../Makefile*
../../Makefile.master:i386_COPTFLAG= -O
../../Makefile.master:sparc_CCOPTFLAG= -O
../../Makefile.master:sparcv9_CCOPTFLAG= -O
../../Makefile.master:i386_CCOPTFLAG= -O
../../Makefile.master:amd64_CCOPTFLAG= -O
% dmake i386_COPTFLAG=-g
You can just set COPTFLAG=-g you don't need to do the lower level arch
specific one.
--
Darren J Moffat
_______________________________________________
opensolaris-code mailing list
[email protected]
http://mail.opensolaris.org/mailman/listinfo/opensolaris-code