Add exported libsudo_util functions to util.exp and mark in headers
using __dso_public.
This commit is contained in:
@@ -29,9 +29,11 @@ cross_compiling = @CROSS_COMPILING@
|
||||
# Compiler & tools to use
|
||||
CC = @CC@
|
||||
LIBTOOL = @LIBTOOL@ @LT_STATIC@
|
||||
SED = @SED@
|
||||
|
||||
# Our install program supports extra flags...
|
||||
INSTALL = $(SHELL) $(top_srcdir)/install-sh -c
|
||||
INSTALL_OWNER = -o $(install_uid) -g $(install_gid)
|
||||
|
||||
# Libraries
|
||||
LT_LIBS = $(top_builddir)/lib/util/libsudo_util.la
|
||||
@@ -76,6 +78,10 @@ shlib_exp = $(srcdir)/system_group.exp
|
||||
shlib_map = system_group.map
|
||||
shlib_opt = system_group.opt
|
||||
|
||||
# User and group ids the installed files should be "owned" by
|
||||
install_uid = 0
|
||||
install_gid = 0
|
||||
|
||||
# OS dependent defines
|
||||
DEFS = @OSDEFS@
|
||||
|
||||
@@ -103,7 +109,7 @@ $(shlib_map): $(shlib_exp)
|
||||
@awk 'BEGIN { print "{\n\tglobal:" } { print "\t\t"$$0";" } END { print "\tlocal:\n\t\t*;\n};" }' $(shlib_exp) > $@
|
||||
|
||||
$(shlib_opt): $(shlib_exp)
|
||||
@sed 's/^/+e /' $(shlib_exp) > $@
|
||||
@$(SED) 's/^/+e /' $(shlib_exp) > $@
|
||||
|
||||
system_group.la: $(OBJS) $(LT_LIBS) @LT_LDDEP@
|
||||
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
|
||||
@@ -123,7 +129,7 @@ install-doc:
|
||||
|
||||
install-plugin: install-dirs system_group.la
|
||||
if [ X"$(soext)" != X"" ]; then \
|
||||
$(INSTALL) -b~ -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so; \
|
||||
$(INSTALL) -b~ $(INSTALL_OWNER) -m $(shlib_mode) .libs/system_group$(soext) $(DESTDIR)$(plugindir)/system_group.so; \
|
||||
fi
|
||||
|
||||
uninstall:
|
||||
|
Reference in New Issue
Block a user