diff options
| author | rie <none@none> | 2007-08-27 09:15:33 -0700 |
|---|---|---|
| committer | rie <none@none> | 2007-08-27 09:15:33 -0700 |
| commit | df4628cb18cef0a7960608d573d5a9b6cc9e29d5 (patch) | |
| tree | 235eccec22a556c3c4e05ac0b6c7c1b551f80ab4 /usr/src/cmd/pools | |
| parent | 03a818bc5cc6f80c183dfb3334f4d0ff2ab36fcc (diff) | |
| download | illumos-joyent-df4628cb18cef0a7960608d573d5a9b6cc9e29d5.tar.gz | |
PSARC/2007/474 new ldd(1) -w option
6595139 various applications should export yy* global variables for libl
--HG--
rename : usr/src/cmd/genmsg/mapfile-intf => deleted_files/usr/src/cmd/genmsg/mapfile-intf
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) |
