Rename foo.sym -> foo.exp

Remove foo.map from the repo and generate it on demand
Use a loader option file for HP-UX ld to explicitly export symbols
This commit is contained in:
Todd C. Miller
2012-06-20 12:58:16 -04:00
parent b0475b59dc
commit bcfeddc998
15 changed files with 139 additions and 70 deletions

View File

@@ -43,7 +43,7 @@ CFLAGS = @CFLAGS@
# Flags to pass to the link stage
LDFLAGS = @LDFLAGS@
LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDEXPORTS@
LT_LDFLAGS = @LT_LDFLAGS@ @LT_LDMAP@ @LT_LDOPT@ @LT_LDEXPORTS@
# Where to install things...
prefix = @prefix@
@@ -59,8 +59,9 @@ plugindir = @PLUGINDIR@
# File extension, mode and map file to use for shared libraries/objects
soext = @SOEXT@
shlib_mode = @SHLIB_MODE@
mapfile = $(srcdir)/sample_plugin.map
symfile = $(srcdir)/sample_plugin.sym
shlib_exp = $(srcdir)/sample_plugin.exp
shlib_map = sample_plugin.map
shlib_opt = sample_plugin.opt
# OS dependent defines
DEFS = @OSDEFS@
@@ -85,7 +86,13 @@ Makefile: $(srcdir)/Makefile.in
.c.lo:
$(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) $(DEFS) $<
sample_plugin.la: $(OBJS)
$(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) > $@
sample_plugin.la: $(OBJS) @LT_LDDEP@
$(LIBTOOL) --mode=link $(CC) $(LDFLAGS) $(LT_LDFLAGS) -o $@ $(OBJS) $(LIBS) -module -avoid-version -rpath $(plugindir)
pre-install:

View File

@@ -1,8 +0,0 @@
{
global:
# Policy and I/O plugin structs
sample_policy;
sample_io;
local:
*;
};