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

Bug#662666: debhelper: pass dpkg-buildflags flags through to ExtUtils::MakeMaker and ExtUtils::CBuilder



Package: debhelper
Severity: wishlist
Version: 9.20120115

As per the discussion in #657853, the consensus is that debhelper (in
compat 9 mode) should be modified to pass all of CFLAGS, CPPFLAGS, and
LDFLAGS from dpkg-buildflags down to ExtUtils::MakeMaker and
ExtUtils::CBuilder based build processes (currently it only passes
CFLAGS).

Niko says in
<http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=657853#142>

"For reference, the invocations I came up earlier were

 perl Makefile.PL OPTIMIZE="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)" \
                  LD="$(perl -V::ld:) $(dpkg-buildflags --get LDFLAGS)"

 perl Build.PL --config optimize="$(dpkg-buildflags --get CFLAGS) $(dpkg-buildflags --get CPPFLAGS)" \
               --config ld="$(perl -V::ld:) $(dpkg-buildflags --get LDFLAGS)"

but I didn't dwell long on that and there might be better ways to do
this. In particular, I think EU::CBuilder already honours some of the
flags so they might end up being used twice in the Build.PL version?"

and this is a good place to start work on this feature.

Note that I plan to spend a bit of time working on this feature in the
next day or two (but I wanted to get the details down on a bug report
first).

Dominic.

-- 
Dominic Hargreaves | http://www.larted.org.uk/~dom/
PGP key 5178E2A5 from the.earth.li (keyserver,web,email)



Reply to: