src/sudo_edit.c
src/sudo_exec.h
src/sudo_noexec.c
-src/sudo_noexec.map
src/sudo_plugin_int.h
src/sudo_usage.h.in
src/tgetpass.c
COMPAT_TEST_PROGS
SUDO_NLS
LIBINTL
-LTEXP
LT_STATIC
LIBDL
CONFIGURE_ARGS
SUDO_OBJS
SUDOERS_OBJS
COMMON_OBJS
-LTLDFLAGS
+LT_LDEXPORTS
+LT_LDMAP
+LT_LDFLAGS
SUDOERS_LDFLAGS
LDFLAGS
CPPFLAGS
+
#
: ${SUDOERS_GID='0'}
DEVEL=
LDAP="#"
-LTEXP=""
BAMAN=0
LCMAN=0
SEMAN=0
AUTH_EXCL_DEF=
AUTH_DEF=passwd
SUDO_NLS=disabled
+LT_LDEXPORTS="-export-symbols \$(symfile)"
CHECKSHADOW=true
shadow_defs=
;;
*-dec-osf*)
# ignore envariables wrt dynamic lib path
+ # XXX - sudo LDFLAGS instead?
SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
: ${CHECKSIA='true'}
$as_echo "$sudo_cv_var_gcc_static_libgcc" >&6; }
CFLAGS="$_CFLAGS"
if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
- LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
+ LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
fi
fi
$as_echo "#define HAVE_DSO_VISIBILITY 1" >>confdefs.h
CFLAGS="${CFLAGS} -fvisibility=hidden"
- LTEXP="#"
+ LT_LDEXPORTS=
else
:
fi
-if test -z "$LTEXP"; then
+if test -n "$LT_LDEXPORTS"; then
if test "$lt_cv_prog_gnu_ld" = "yes"; then
cat > conftest.map <<-EOF
VERS_1.0 {
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- LTEXP="#"; LTLDFLAGS="$LTLDFLAGS -Wl,--version-script,\$(mapfile)"
+ LT_LDEXPORTS=; LT_LDMAP="-Wl,--version-script,\$(mapfile)"
fi
rm -f core conftest.err conftest.$ac_objext \
_ACEOF
if ac_fn_c_try_link "$LINENO"; then :
- LTEXP="#"; LTLDFLAGS="$LTLDFLAGS -Wl,-M,\$(mapfile)"
+ LT_LDEXPORTS=; LT_LDMAP="-Wl,-M,\$(mapfile)"
fi
rm -f core conftest.err conftest.$ac_objext \
AC_SUBST([CPPFLAGS])
AC_SUBST([LDFLAGS])
AC_SUBST([SUDOERS_LDFLAGS])
-AC_SUBST([LTLDFLAGS])
+AC_SUBST([LT_LDFLAGS])
+AC_SUBST([LT_LDMAP])
+AC_SUBST([LT_LDEXPORTS])
AC_SUBST([COMMON_OBJS])
AC_SUBST([SUDOERS_OBJS])
AC_SUBST([SUDO_OBJS])
AC_SUBST([CONFIGURE_ARGS])
AC_SUBST([LIBDL])
AC_SUBST([LT_STATIC])
-AC_SUBST([LTEXP])
AC_SUBST([LIBINTL])
AC_SUBST([SUDO_NLS])
AC_SUBST([COMPAT_TEST_PROGS])
: ${SUDOERS_GID='0'}
DEVEL=
LDAP="#"
-LTEXP=""
BAMAN=0
LCMAN=0
SEMAN=0
AUTH_EXCL_DEF=
AUTH_DEF=passwd
SUDO_NLS=disabled
+LT_LDEXPORTS="-export-symbols \$(symfile)"
dnl
dnl Other vaiables
;;
*-dec-osf*)
# ignore envariables wrt dynamic lib path
+ # XXX - sudo LDFLAGS instead?
SUDOERS_LDFLAGS="${SUDOERS_LDFLAGS} -Wl,-no_library_replacement"
: ${CHECKSIA='true'}
)
CFLAGS="$_CFLAGS"
if test "$sudo_cv_var_gcc_static_libgcc" = "yes"; then
- LTLDFLAGS="$LTLDFLAGS -Wc,-static-libgcc"
+ LT_LDFLAGS="$LT_LDFLAGS -Wc,-static-libgcc"
fi
fi
AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [
AC_DEFINE(HAVE_DSO_VISIBILITY)
CFLAGS="${CFLAGS} -fvisibility=hidden"
- LTEXP="#"
+ LT_LDEXPORTS=
])
dnl
dnl If the compiler doesn't have symbol visibility support, it may
dnl support version scripts (only GNU and Solaris ld).
dnl
-if test -z "$LTEXP"; then
+if test -n "$LT_LDEXPORTS"; then
if test "$lt_cv_prog_gnu_ld" = "yes"; then
cat > conftest.map <<-EOF
VERS_1.0 {
_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,--version-script,./conftest.map"
AC_TRY_LINK([int foo;], [], [
- LTEXP="#"; LTLDFLAGS="$LTLDFLAGS -Wl,--version-script,\$(mapfile)"
+ LT_LDEXPORTS=; LT_LDMAP="-Wl,--version-script,\$(mapfile)"
])
LDFLAGS="$_LDFLAGS"
else
_LDFLAGS="$LDFLAGS"
LDFLAGS="$LDFLAGS -fPIC -shared -Wl,-M,./conftest.map"
AC_TRY_LINK([int foo;], [], [
- LTEXP="#"; LTLDFLAGS="$LTLDFLAGS -Wl,-M,\$(mapfile)"
+ LT_LDEXPORTS=; LT_LDMAP="-Wl,-M,\$(mapfile)"
])
LDFLAGS="$_LDFLAGS"
;;
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
-LTLDFLAGS = @LTLDFLAGS@
-@LTEXP@LTEXPORTS = -export-symbols $(srcdir)/sample_plugin.sym
+LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDEXPORTS@
# Where to install things...
prefix = @prefix@
soext = @SOEXT@
shlib_mode = @SHLIB_MODE@
mapfile = $(srcdir)/sample_plugin.map
+symfile = $(srcdir)/sample_plugin.sym
# OS dependent defines
DEFS = @OSDEFS@
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
sample_plugin.la: $(OBJS)
- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module $(LTEXPORTS) -avoid-version -rpath $(plugindir)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
pre-install:
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
-LTLDFLAGS = @LTLDFLAGS@
-@LTEXP@LTEXPORTS = -export-symbols $(srcdir)/sample_group.sym
+LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDEXPORTS@
# Where to install things...
prefix = @prefix@
soext = @SOEXT@
shlib_mode = @SHLIB_MODE@
mapfile = $(srcdir)/sample_group.map
+symfile = $(srcdir)/sample_group.sym
# OS dependent defines
DEFS = @OSDEFS@
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
sample_group.la: $(OBJS) $(LT_LIBS)
- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module $(LTEXPORTS) -avoid-version -rpath $(plugindir)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
pre-install:
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
-SUDOERS_LDFLAGS = $(LDFLAGS) @SUDOERS_LDFLAGS@
-LTLDFLAGS = @LTLDFLAGS@
-@LTEXP@LTEXPORTS = -export-symbols $(srcdir)/sudoers.sym
+LT_LDFLAGS = @SUDOERS_LDFLAGS@ @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDEXPORTS@
# Where to install things...
prefix = @prefix@
soext = @SOEXT@
shlib_mode = @SHLIB_MODE@
mapfile = $(srcdir)/sudoers.map
+symfile = $(srcdir)/sudoers.sym
# Directory in which to install the sudoers plugin
plugindir = @PLUGINDIR@
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBPARSESUDOERS_OBJS) -no-install
sudoers.la: $(SUDOERS_OBJS) $(LT_LIBS) libparsesudoers.la
- $(LIBTOOL) @LT_STATIC@ --mode=link $(CC) $(SUDOERS_LDFLAGS) $(LTLDFLAGS) -o $@ $(SUDOERS_OBJS) libparsesudoers.la $(SUDOERS_LIBS) -module $(LTEXPORTS) -avoid-version -rpath $(plugindir)
+ $(LIBTOOL) @LT_STATIC@ --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(SUDOERS_OBJS) libparsesudoers.la $(SUDOERS_LIBS) -module -avoid-version -rpath $(plugindir)
visudo: libparsesudoers.la $(VISUDO_OBJS) $(LT_LIBS)
$(LIBTOOL) --mode=link $(CC) -o $@ $(VISUDO_OBJS) $(LDFLAGS) libparsesudoers.la $(LIBS) $(NET_LIBS)
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
-LTLDFLAGS = @LTLDFLAGS@
-@LTEXP@LTEXPORTS = -export-symbols $(srcdir)/system_group.sym
+LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDEXPORTS@
# Where to install things...
prefix = @prefix@
soext = @SOEXT@
shlib_mode = @SHLIB_MODE@
mapfile = $(srcdir)/system_group.map
+symfile = $(srcdir)/system_group.sym
# OS dependent defines
DEFS = @OSDEFS@
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
system_group.la: $(OBJS) $(LT_LIBS)
- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ $(OBJS) $(LIBS) -module $(LTEXPORTS) -avoid-version -rpath $(plugindir)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
pre-install:
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
-LTLDFLAGS = @LTLDFLAGS@
+LT_LDFLAGS = @LT_LDFLAGS@
# Where to install things...
prefix = @prefix@
$(LIBTOOL) --mode=link $(CC) -o $@ $(OBJS) $(LDFLAGS) $(LIBS)
libsudo_noexec.la: sudo_noexec.lo
- $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LTLDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
+ $(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ sudo_noexec.lo -avoid-version -rpath $(noexecdir)
sesh: sesh.o error.o exec_common.o @LIBINTL@ $(LT_LIBS)
$(LIBTOOL) --mode=link $(CC) -o $@ sesh.o error.o exec_common.o $(LDFLAGS) @LIBINTL@ $(LIBS)
+++ /dev/null
-sudo_noexec.so {
- global:
- # All symbols are exported
- *;
-};