Policy for DEB_BUILD_OPTIONS
Policy version 3.5.3.0, Section 11.1. Binaries, includes the
following recommendation:
If the environment variable `DEB_BUILD_OPTIONS'
contains the string `debug', compile the software with debugging
information (usually this involves adding the `-g' flag to `CFLAGS').
This allows the generation of a build tree with debugging information.
If the environment variable `DEB_BUILD_OPTIONS' contains the string
`nostrip', do not strip the files at installation time.
The following makefile snippet is suggested to implement this
recommendation:
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
CFLAGS += -g
endif
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
INSTALL_PROGRAM += -s
endif
Unless I am badly mistaken, this will not produce the opposite of
the desired result. From install.1:
-s, --strip
strip symbol tables, only for 1st and 2nd formats
Therefore, if the value of DEB_BUILD_OPTIONS is `nostrip', the
installed binaries will be stripped. Setting DEB_BUILD_OPTIONS to
`debug' will produce unstripped binaries.
Bob
--
_
|_) _ |_ Robert D. Hilliard <hilliard@debian.org>
|_) (_) |_) 1294 S.W. Seagull Way <bob@bobhilliard.net>
Palm City, FL USA GPG Key ID: 390D6559
PGP Key ID: A8E40EB9
Reply to: