From: Jaroslav Kysela Date: Mon, 21 Oct 2024 07:31:12 +0000 (+0200) Subject: configure: do allow to use --with-pic for static build X-Git-Tag: v1.2.13~3 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=a3865b2439ce686024bc83b3b9b1cd60fa75986c;p=alsa-lib.git 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 --- 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 <