On Tue, 2009-11-10 at 07:05 +0100, Tony Balinski wrote:
> Quoting TK Soh <[email protected]>:
> 
> > For a long time I had to rely on custom make sure to generate the
> > debugging version of nedit binary. I am now thinking maybe the support
> > should be build into the standard makefile.
> >
> > This is what I have for Linux:
> >
> > diff --git a/makefiles/Makefile.linux b/makefiles/Makefile.linux
> > --- a/makefiles/Makefile.linux
> > +++ b/makefiles/Makefile.linux
> > @@ -19,6 +19,10 @@
> >  #
> >  CFLAGS=-O -I/usr/X11R6/include -DUSE_DIRENT -DUSE_LPR_PRINT_CMD


-I/usr/X11R6/include has been removed on Fedora 11
-I/usr/include/openmotif

> > +ifeq ($(DEBUG),1)
> > +CFLAGS+=-g
> > +endif
> > +
> >  ARFLAGS=-urs
> >
> >  LIBS=-L/usr/X11R6/lib -lXm -lXt -lX11 -lm

-L/usr/X11R6/lib has been removed on Fedora 11
-L/usr/lib64/openmotif

> > So that I can do this to build with debugging symbol:
> >
> >    $ DEBUG=1 make linux
> >
> > Any better ideas?
> 
> What about making the -O conditional the same way, as an "else" clause?
> I almost never use optimised builds - today's machines are already so fast. If
> I was still using machines from 15 years ago, that would perhaps be different.
> How would this work with non-gnu make, BTW?

Those differences are handle by patched files in the package builder.
But still annoying for less experience users.
May be added commented lines.

On Fedora distribution, optimization and debugging are used.
The debugging info is retrieved to debuginfo package that can be install
for more complete debugging trace informations for developer.

release is long overdue, thanks for doing it


-- 
NEdit Develop mailing list - [email protected]
http://www.nedit.org/mailman/listinfo/develop

Reply via email to