[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: CFLAGS / debug



On Wed, Dec 10, 2008 at 09:31:01AM +0100, Mathieu Malaterre wrote:
> On Tue, Dec 9, 2008 at 8:58 PM, David Paleino <d.paleino@gmail.com> wrote:
> > On Tue, 9 Dec 2008 16:34:07 +0100, Mathieu Malaterre wrote:
> >>   Do you think this is a valid change to apply to gdcm debian package:
> > No:
> >
> >> $ svn di
> >> Index: rules
> >> ===================================================================
> >> --- rules       (revision 4863)
> >> +++ rules       (working copy)
> >> @@ -21,7 +21,10 @@
> >>  DEB_HOST_GNU_TYPE   ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
> >>  DEB_BUILD_GNU_TYPE  ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
> >>
> >> -CFLAGS = -g
> >> +ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))

Please see the Debian Policy manual, section 4.9.1 on the correct set of
default CFLAGS and handling of DEB_BUILD_OPTIONS (debug is not one of
the currently used DEB_BUILD_OPTIONS).

> Where is it documented that strip (removing of symbols via strip)
> should be binded to the -g of gcc ? You should be able to strip a
> release build (gcc -03 ... ), right ?

It's not related indeed.


Michael


Reply to: