Package: elfutils
Version: 0.176-1.1

Expectation: elfutils could be built with MAKEFLAGS=-w,
        printing directory information

Actual: elfutils could not be built, target w is not found.

Steps to reproduce:

        export MAKEFLAGS=-w
        dpkg-buildpackages -us -uc -rfakeroot

Analysis:
* make translates MAKEFLAGS, changes its first single letter option,
  remove dash from the flags.
* if first word in MAKEFLAGS is single letter, make will translate it
  back to single letter options.
* If we pass MAKEFLAGS explicitly to $(MAKE), it won't translate like

Proposed fix:

        sed -e '/[$](MAKE).*[$](MAKEFLAGS)/ s/[$](MAKEFLAGS)//' \
                -e '/^DPKG_EXPORT_BUILDFLAGS/a export MAKEFLAGS' \
                debian/rules

Reply via email to