mirror of
https://github.com/sudo-project/sudo.git
synced 2025-08-31 14:25:15 +00:00
Build sudo_noexec.so as a module on systems other then Darwin.
On Darwin, shared modules and shared libraries are not interchangable and since we preload sudo_noexec.so via DYLD_INSERT_LIBRARIES it must be a library, not a module. We must relax the requirement that libraries begin with a "lib" prefix to work around this difference. This does mean you must use sudo's libtool on Darwin (macOS) but that is already a requirement on other systems (notably HP-UX and SCO) due to a number of libtool patches we require that haven't be accepted upstream. This is a different fix for PR #102.
This commit is contained in:
@@ -8742,9 +8742,6 @@ func_mode_link ()
|
||||
eval libname=\"$libname_spec\"
|
||||
;;
|
||||
*)
|
||||
test no = "$module" \
|
||||
&& func_fatal_help "libtool library '$output' must begin with 'lib'"
|
||||
|
||||
if test no != "$need_lib_prefix"; then
|
||||
# Add the "lib" prefix for modules if required
|
||||
func_stripname '' '.la' "$outputname"
|
||||
|
Reference in New Issue
Block a user