This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: MT_CFLAGS
- From: Aleksandar Ristovski <ARistovski at qnx dot com>
- To: Daniel Jacobowitz <drow at false dot org>, Aleksandar Ristovski <ARistovski at qnx dot com>
- Cc: gdb at sourceware dot org
- Date: Thu, 24 Jan 2008 10:20:30 -0500
- Subject: RE: MT_CFLAGS
> -----Original Message-----
> From: Daniel Jacobowitz
>
> On Thu, Jan 24, 2008 at 10:07:47AM -0500, Aleksandar Ristovski wrote:
> > Hello,
> >
> > I see that MT_CFLAGS is gone from Makefile.in.
> >
> > What is the alternative to getting the same result? I need to add a
> target
> > specific #define to CC, e.g. -DMY_DEFINE. What is the correct approach?
>
> It was removed because we try not to add target-specific defines any
> more. What do you need it for?
>
> Normally proper use of gdbarch and target inheritance is enough.
I want to implement some fix-ups (workarounds) that are really specific to
us and have to be made in gdb files (not ours). The workarounds are not
candidates for mainstream, so I am wrapping them in our #ifdef-s... No big
deal really, I just thought there was a 'correct' way to do it.
But maybe you have some other suggestion?
Thanks,
Aleksandar