I found the reason: rp-pppoe does not use dh but includes /usr/share/dpkg/buildflags.mk which calls `dpkg-buildflags --get LDFLAGS`. This command only exports LDFLAGS but does not expose the needed environment variables.
So we need to expose them in /usr/share/dpkg/buildflags.mk as well. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/2070015 Title: dpkg-buildpackage broke rp-pppoe building To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/dpkg/+bug/2070015/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs