Only export the symbols corresponding to the plugin structs.

This commit is contained in:
Todd C. Miller
2011-03-10 12:12:14 -05:00
parent 498248d1f0
commit 7599034e69
6 changed files with 8 additions and 3 deletions

View File

@@ -83,7 +83,7 @@ sample_plugin.lo: $(srcdir)/sample_plugin.c
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $(srcdir)/sample_plugin.c
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

View File

@@ -0,0 +1,2 @@
sample_policy
sample_io