compiling a port unstripped for debugging

Gabor Kovesdan gabor at FreeBSD.org
Fri Dec 15 14:49:36 PST 2006


Michael Grant schrieb:
> Can someone please tell me if there is an easy way to compile and
> install a port without stripping it (i.e. compiling it with -g and not
> running strip when it's installed)?
>
> Michael Grant
>
You can set STRIP and STRIP_CMD to empty for not stripping the binaries 
and add -g to CFLAGS.
E.g. make STRIP="" STRIP_CMD="" CFLAGS+=-g install
This should work for you. You can also place these to /etc/make.conf if 
you want to use this every time.

Cheers,
Gabor


More information about the freebsd-questions mailing list