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

Do not add LIBDL to SUDO_LIBS or SUDOERS_LIBS in configure, do it

in Makefile.in so we can make it last.  Fixes a linking problem on
Ubuntu precise.
This commit is contained in:
Todd C. Miller
2013-11-26 07:15:55 -07:00
parent 94ad47ff98
commit 4247c1741b
4 changed files with 7 additions and 21 deletions

View File

@@ -1507,6 +1507,8 @@ else
SHLIB_EXT="$_shrext"
fi
fi
LIBDL="$lt_cv_dlopen_libs"
AC_MSG_CHECKING(path to sudo_noexec.so)
AC_ARG_WITH(noexec, [AS_HELP_STRING([--with-noexec[=PATH]], [fully qualified pathname of sudo_noexec.so])],
[case $with_noexec in
@@ -3359,15 +3361,6 @@ case "$lt_cv_dlopen" in
;;
esac
#
# Add library needed for dynamic loading, if any.
#
LIBDL="$lt_cv_dlopen_libs"
if test X"$LIBDL" != X""; then
SUDO_LIBS="${SUDO_LIBS} $LIBDL"
SUDOERS_LIBS="${SUDOERS_LIBS} $LIBDL"
fi
# On HP-UX, you cannot dlopen() a shared object that uses pthreads unless
# the main program is linked against -lpthread. We have no knowledge of
# what libraries a plugin may depend on (e.g. HP-UX LDAP which uses pthreads)