configure: Override the os default with --disable-pie
commit2c674109c2da3f2e17b69f39e0b93b3f3d3dfa59
authorRichard Henderson <richard.henderson@linaro.org>
Wed, 18 Dec 2019 01:15:01 +0000 (17 15:15 -1000)
committerRichard Henderson <richard.henderson@linaro.org>
Sat, 28 Mar 2020 21:09:45 +0000 (28 14:09 -0700)
tree6181c609545518ef5e71a5cc726c437ce993834b
parente6cbd75158ea274ab98c13c9b73d2bc1d90aa50d
configure: Override the os default with --disable-pie

Some distributions, e.g. Ubuntu 19.10, enable PIE by default.
If for some reason one wishes to build a non-pie binary, we
must provide additional options to override.

At the same time, reorg the code to an elif chain.

Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Philippe Mathieu-Daudé <philmd@redhat.com>
Reviewed-by: Thomas Huth <thuth@redhat.com>
Signed-off-by: Richard Henderson <richard.henderson@linaro.org>
---
v3: Update for QEMU_LDFLAGS.
configure