Bug#596429: libdbd-sqlite3-perl: Harcodes optimization flags
gregor herrmann
gregoa at debian.org
Mon Sep 13 20:54:26 UTC 2010
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
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 836 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-perl-maintainers/attachments/20100913/6a70feed/attachment.pgp>
More information about the pkg-perl-maintainers
mailing list