Skip to content

Commit a3865b2

Browse files
committed
configure: do allow to use --with-pic for static build
Closes: #411 Signed-off-by: Jaroslav Kysela <perex@perex.cz>
1 parent 073dc75 commit a3865b2

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

configure.ac

+9
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,15 @@ EOF
7171
exit 1
7272
fi
7373

74+
dnl Do not use --with-pic for shared libraries (consider to use PIE)
75+
if test "$enable_static" = "yes" -a "$pic_mode" = "yes"; then
76+
cat <<EOF
77+
Please, do not enable PIC (--with-pic) for static library. Consider
78+
to remove this option or use PIE flags.
79+
EOF
80+
exit 1
81+
fi
82+
7483
dnl ALSA configuration directory
7584
AC_ARG_WITH(configdir,
7685
AS_HELP_STRING([--with-configdir=dir],

0 commit comments

Comments
 (0)