[Debian GNUstep maintainers] Bug#581951: helpviewer.app: Broken nostrip handling with gnustep-make/2.4.x

Yavor Doganov yavor at gnu.org
Mon May 17 11:30:39 UTC 2010


Source: helpviewer.app
Version: 0.3-6
Severity: important
User: pkg-gnustep-maintainers at lists.alioth.debian.org
Usertags: gnustep-make2.4-transition gnustep-transition

[ This report was generated semi-automatically. ]

Your package implements `noopt' support by conditionally defining the
OPTFLAG variable.  As of gnustep-make/2.4.0, this also swallows the -g
flag passed to GCC so the produced binaries are useless for debugging
even if the package is built with `nostrip'.

See
/usr/share/GNUstep/Documentation/Developer/Make/ReleaseNotes/RELEASENOTES
for more information.

In almost all cases this is easy to fix; if you were doing something
like:

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
OPTFLAG := -O0
else
OPTFLAG := -O2
endif

build-stamp:
	...
	$(MAKE) OPTFLAG=$(OPTFLAG) ...


, then replacing it with


ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
optim := debug=yes
endif

build-stamp:
	...
	$(MAKE) $(optim) ...

should be sufficient.





More information about the pkg-GNUstep-maintainers mailing list