From a3865b2439ce686024bc83b3b9b1cd60fa75986c Mon Sep 17 00:00:00 2001 From: Jaroslav Kysela Date: Mon, 21 Oct 2024 09:31:12 +0200 Subject: [PATCH] configure: do allow to use --with-pic for static build Closes: https://github.com/alsa-project/alsa-lib/issues/411 Signed-off-by: Jaroslav Kysela --- configure.ac | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/configure.ac b/configure.ac index b029a705..e3526578 100644 --- a/configure.ac +++ b/configure.ac @@ -71,6 +71,15 @@ EOF exit 1 fi +dnl Do not use --with-pic for shared libraries (consider to use PIE) +if test "$enable_static" = "yes" -a "$pic_mode" = "yes"; then +cat <