How to differentiate between BSD and OSX and POST_STRIP_PROCESS
Greg Lewis
glewis at eyesbeyond.com
Mon Nov 24 21:42:10 PST 2008
G'day Michael,
On Mon, Nov 24, 2008 at 09:58:03PM -0500, Michael Franz wrote:
> Would it be possible to get this patch applied to the BSD port?
Sure. I think the correct patch though may be to use 'strip -S' on both
Mac OS X and *BSD though. I haven't checked the NetBSD and OpenBSD man
pages yet, but it looks like -S on FreeBSD is the same as -g and the
description of -S on Mac OS X looks equivalent. Can you maybe give that
a try?
> On Sat, Oct 18, 2008 at 2:31 PM, Michael Franz <mvfranz at gmail.com> wrote:
>
> > I attached a patch that will accomplish this.
> >
> >
> >
> > On Sun, Oct 5, 2008 at 8:45 PM, Michael Franz <mvfranz at gmail.com> wrote:
> >
> >> That will work too.
> >>
> >> On Sun, Oct 5, 2008 at 3:27 PM, Kelly O'Hair <Kelly.Ohair at sun.com> wrote:
> >>
> >>> Could we do something like this instead?
> >>>
> >>> ifeq ($(OS_VENDOR), Apple)
> >>> STRIP_G_OPTION =
> >>> else
> >>> # strip option that leaves local function Elf symbols (better stack
> >>> traces)
> >>> STRIP_G_OPTION = -g
> >>> endif
> >>>
> >>> ifeq ($(VARIANT), OPT)
> >>> ifneq ($(NO_STRIP), true)
> >>> # Debug 'strip -g' leaves local function Elf symbols (better stack
> >>> traces)
> >>> POST_STRIP_PROCESS = $(STRIP) $(STRIP_G_OPTION)
> >>> endif
> >>> endif
> >>>
> >>>
> >>>
> >>> -kto
> >>>
> >>>
> >
>
--
Greg Lewis Email : glewis at eyesbeyond.com
Eyes Beyond Web : http://www.eyesbeyond.com
Information Technology FreeBSD : glewis at FreeBSD.org
More information about the bsd-port-dev
mailing list