]> git.proxmox.com Git - grub2.git/commit
configure: set -fno-pie together with -fno-PIE
authorAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 22 Mar 2016 17:12:22 +0000 (20:12 +0300)
committerAndrei Borzenkov <arvidjaar@gmail.com>
Tue, 22 Mar 2016 17:12:22 +0000 (20:12 +0300)
commitf4d35d49e32c29183b3492da18ea480d91716efe
treed00c935cc41c8437c9a1a419be14470e3564e06c
parent6714d7ecffe58021760e4d1ebfa9cc3473f7fb24
configure: set -fno-pie together with -fno-PIE

OpenBSD 5.9 apparently defaults to -fpie. We use -fno-PIE when appropriate
already, but that is not enough - it does not turn off -fpie.

Actually check for -fPIE is not precise enough. __PIE__ is set for both
-fpie and -fPIE but with different values. As far as I can tell, both
options were introduced at the same time, so both should always be supported.

This fixes compilation on OpenBSD 5.9 which otherwise created insanely big
lzma_decompress.img.

Reported, suggested and tested by: Jiri B <jirib@devio.us>
configure.ac