Package: dpkg-dev
Followup-For: Bug #985980

A space-separated list of enabled features may be useful on its own,
and would not increase the complexity in Makefiles.

features := $(shell dpkg-buildflags --enabled-features optimize)
ifneq (,$(filter lto,$(features)))
  ...
endif
ifneq (,$(filter pgo,$(features)))
  ...

For symetry, a '--disabled-features AREA' option would be nice.

For consistency with '--query-features AREA', both should report
unknown AREAs with an exit status of 1.

Reply via email to