Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[build] Prevent gcc from creating position-independent 32-bit code
Some possibly-patched versions of gcc (observed with gcc 6.3.0 on Debian Stretch and with gcc 7.2.0 on Arch) seem to default to creating position-independent code. This results in GOT relocation records which are not handled by efireloc, causing a build failure. Fix by adding -fno-pic to the 32-bit build options. Reported-by: Brent S <bts@square-r00t.net> Reported-by: Peter Capriccio <peter.capriccio@hpe.com> Tested-by: Peter Capriccio <peter.capriccio@hpe.com> Signed-off-by: Michael Brown <mbrown@fensystems.co.uk>
- Loading branch information