Hi,
The more I look into this, I agree not to include
> DPKG_EXPORT_BUILDFLAGS = 1
> include /usr/share/dpkg/default.mk
nor
> DPKG_EXPORT_BUILDFLAGS = 1
> include /usr/share/dpkg/buildflags.mk
But
> include /usr/share/dpkg/architecture.mk
is tempting.
This is because the buildflag variables are exported by the dh command
but the architecture variables are exported by the dpkg-buildpackage
command. dpkg-buildpackage manpage states:
Reliance on exported environment flags
Even if dpkg-buildpackage exports some variables, debian/rules should
not rely on their presence and should instead use the respective inter‐
face to retrieve the needed values.
Variables set by dpkg-architecture
dpkg-architecture is called with the -a and -t parameters forwarded.
Any variable that is output by its -s option is integrated in the build
environment.
The use of makefile inclusion may not be aesthetically good thing, but
this seems to comply with the guidance in dpkg-buildpackage.
Regards,
Osamu
--
To UNSUBSCRIBE, email to [email protected]
with a subject of "unsubscribe". Trouble? Contact [email protected]