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


     Policy version, 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

            ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS)))
            CFLAGS += -g
            ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS)))
            INSTALL_PROGRAM += -s

     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.  
  |_)  _  |_       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: