diff options
Diffstat (limited to 'usr/src/cmd/pools')
| -rw-r--r-- | usr/src/cmd/pools/poolcfg/Makefile | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/usr/src/cmd/pools/poolcfg/Makefile b/usr/src/cmd/pools/poolcfg/Makefile index 40172db111..670674e968 100644 --- a/usr/src/cmd/pools/poolcfg/Makefile +++ b/usr/src/cmd/pools/poolcfg/Makefile @@ -35,10 +35,16 @@ POFILE = poolcfg.po include ../../Makefile.cmd include ../Makefile.pools +# poolcf has a name clash with main() and libl.so.1. However, poolcfg must +# still export a number of "yy*" (libl) interfaces. Reduce all other symbols +# to local scope. +MAPFILES += $(MAPFILE.LEX) $(MAPFILE.NGB) +MAPOPTS = $(MAPFILES:%=-M%) + LFLAGS = -t YFLAGS = -d CFLAGS += -I$(POOLSCOMMONDIR) -LDFLAGS += $(MAPFILE.NGB:%=-M%) +LDFLAGS += $(MAPOPTS) LDLIBS += -lpool -ll XGETFLAGS = -a CLOBBERFILES += poolcfg_lex.c poolcfg_grammar.c poolcfg_grammar.h @@ -47,7 +53,7 @@ CLOBBERFILES += poolcfg_lex.c poolcfg_grammar.c poolcfg_grammar.h all: $(PROG) -$(PROG): $(OBJS) $(COMMON_OBJS) $(MAPFILE.NGB) +$(PROG): $(OBJS) $(COMMON_OBJS) $(MAPFILES) $(LINK.c) -o $@ $(OBJS) $(COMMON_OBJS) $(LDLIBS) $(POST_PROCESS) |
