2
0
mirror of https://github.com/sudo-project/sudo.git synced 2025-08-31 14:25:15 +00:00

Override and ignore the --disable-static option. Sudo already runs

libtool with -tag=disable-static where applicable and we need non-PIC
objects to build the executables.
This commit is contained in:
Todd C. Miller
2011-10-12 08:24:13 -04:00
parent ce8b4e53a5
commit 8ef560b85c
2 changed files with 15 additions and 0 deletions

6
configure vendored
View File

@@ -5989,6 +5989,12 @@ if test "x$ac_cv_prog_cc_c89" = "xno"; then
as_fn_error $? "Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build." "$LINENO" 5
fi
if test "$enable_static" = "no"; then
{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Ignoring --disable-static, sudo does not install static libs" >&5
$as_echo "$as_me: WARNING: Ignoring --disable-static, sudo does not install static libs" >&2;}
enable_static=yes
fi
ac_aux_dir=
for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
if test -f "$ac_dir/install-sh"; then

View File

@@ -1360,6 +1360,15 @@ if test "x$ac_cv_prog_cc_c89" = "xno"; then
AC_MSG_ERROR([Sudo version $PACKAGE_VERSION requires an ANSI C compiler to build.])
fi
dnl
dnl If the user specified --disable-static, override them or we'll
dnl be unable to build the executables in the sudoers plugin dir.
dnl
if test "$enable_static" = "no"; then
AC_MSG_WARN([Ignoring --disable-static, sudo does not install static libs])
enable_static=yes
fi
dnl
dnl Libtool setup, we require libtool 2.2.6b or higher
dnl