On Sat, 11 Sep 2010 12:30:56 +0200, Cyril Brulebois wrote: > currently, Makefile.PL has -O2 hardcoded, meaning one can't use either > of those: > | DEB_BUILD_OPTIONS="noopt nostrip" (-O0 gets ignored) > | DEB_CFLAGS_SET="-O3"
I've played a bit with this, and it's quite interesting: Ripping out OPTIMIZE => '-O2', from Makefile.PL doesn't help, "perl Makefile.PL" (called from dh_auto_configure, or manually) happily adds "OPTIMIZE = -O2 -g" to Makefile, ignoring DEB_BUILD_OPTIONS and DEB_CFLAGS_SET. This can be overriden with something like dh_auto_configure -- OPTIMIZE=$(shell dpkg-buildflags --get CFLAGS) (or manually perl Makefile.PL OPTIMIZE="whatever") but I guess this should rather be addressed at the debhelper level (or by ExtUtils::MakeMaker?) than by each individual package. Cheers, gregor -- .''`. http://info.comodo.priv.at/ -- GPG key IDs: 0x8649AA06, 0x00F3CFE4 : :' : Debian GNU/Linux user, admin, & developer - http://www.debian.org/ `. `' Member of VIBE!AT & SPI, fellow of Free Software Foundation Europe `- NP: SIMON and GARFUNCLE: Simon and Garfunkel
signature.asc
Description: Digital signature