Only export the symbols corresponding to the plugin structs.
This commit is contained in:
@@ -83,7 +83,7 @@ sample_plugin.lo: $(srcdir)/sample_plugin.c
|
|||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
|
||||||
|
|
||||||
sample_plugin.la: $(OBJS)
|
sample_plugin.la: $(OBJS)
|
||||||
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
|
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_plugin.sym -avoid-version -rpath $(plugindir)
|
||||||
|
|
||||||
install: install-dirs install-plugin
|
install: install-dirs install-plugin
|
||||||
|
|
||||||
|
2
plugins/sample/sample_plugin.sym
Normal file
2
plugins/sample/sample_plugin.sym
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
sample_policy
|
||||||
|
sample_io
|
@@ -86,7 +86,7 @@ sample_group.lo: $(srcdir)/sample_group.c
|
|||||||
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c
|
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_group.c
|
||||||
|
|
||||||
sample_group.la: $(OBJS)
|
sample_group.la: $(OBJS)
|
||||||
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
|
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -export-symbols $(srcdir)/sample_group.sym -avoid-version -rpath $(plugindir)
|
||||||
|
|
||||||
install: install-dirs install-plugin
|
install: install-dirs install-plugin
|
||||||
|
|
||||||
|
1
plugins/sample_group/sample_group.sym
Normal file
1
plugins/sample_group/sample_group.sym
Normal file
@@ -0,0 +1 @@
|
|||||||
|
group_plugin
|
@@ -158,7 +158,7 @@ libsudoers.la: $(LIBSUDOERS_OBJS)
|
|||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBSUDOERS_OBJS) -no-install
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(LIBSUDOERS_OBJS) -no-install
|
||||||
|
|
||||||
sudoers.la: $(SUDOERS_OBJS) libsudoers.la
|
sudoers.la: $(SUDOERS_OBJS) libsudoers.la
|
||||||
$(LIBTOOL) @LT_STATIC@ --mode=link $(CC) $(SUDOERS_LDFLAGS) -o $@ $(SUDOERS_OBJS) libsudoers.la $(SUDOERS_LIBS) -module -avoid-version -rpath $(plugindir)
|
$(LIBTOOL) @LT_STATIC@ --mode=link $(CC) $(SUDOERS_LDFLAGS) -o $@ $(SUDOERS_OBJS) libsudoers.la $(SUDOERS_LIBS) -module -export-symbols $(srcdir)/sudoers.sym -avoid-version -rpath $(plugindir)
|
||||||
|
|
||||||
visudo: libsudoers.la $(VISUDO_OBJS) $(LIBS)
|
visudo: libsudoers.la $(VISUDO_OBJS) $(LIBS)
|
||||||
$(LIBTOOL) --mode=link $(CC) -o $@ $(VISUDO_OBJS) $(LDFLAGS) libsudoers.la $(LIBS) $(NET_LIBS)
|
$(LIBTOOL) --mode=link $(CC) -o $@ $(VISUDO_OBJS) $(LDFLAGS) libsudoers.la $(LIBS) $(NET_LIBS)
|
||||||
|
2
plugins/sudoers/sudoers.sym
Normal file
2
plugins/sudoers/sudoers.sym
Normal file
@@ -0,0 +1,2 @@
|
|||||||
|
sudoers_policy
|
||||||
|
sudoers_io
|
Reference in New Issue
Block a user