Package: atf-allwinner Version: 1.0.apritzel.81-1 Severity: normal Tags: patch User: ubuntu-de...@lists.ubuntu.com Usertags: origin-ubuntu bionic ubuntu-patch
The atf-allwinner package failed to build in Ubuntu because its default buildflags differs from those in Debian, and LDFLAGS meant for gcc were being passed directly to ld: [...] LD build/sun50iw1p1/debug/bl31/bl31.elf [...] aarch64-linux-gnu-ld: unrecognized option '-Wl,-Bsymbolic-functions' aarch64-linux-gnu-ld: use the --help option for usage information [...] You had already handled this for the specific case of -Wl,-z,relro in LDFLAGS in Debian, but I think a more general solution is appropriate. Please see the attached patch. -- Steve Langasek Give me a lever long enough and a Free OS Debian Developer to set it on, and I can move the world. Ubuntu Developer http://www.debian.org/ slanga...@ubuntu.com vor...@debian.org
diff -Nru atf-allwinner-1.0.apritzel.81/debian/rules atf-allwinner-1.0.apritzel.81/debian/rules --- atf-allwinner-1.0.apritzel.81/debian/rules 2018-02-25 17:21:03.000000000 -0800 +++ atf-allwinner-1.0.apritzel.81/debian/rules 2018-04-10 21:09:32.000000000 -0700 @@ -1,6 +1,8 @@ #!/usr/bin/make -f export DEB_BUILD_MAINT_OPTIONS=hardening=-relro,-stackprotector +export DEB_LDFLAGS_MAINT_SET = + %: dh $@