1
0
mirror of https://github.com/postgres/postgres.git synced 2025-07-31 22:04:40 +03:00

Reorganize some of the exports list generation code. It seems that this

has been reinvented about four different times throughout history (aix,
cygwin, win32, darwin/linux) and a lot of the concepts are actually shared,
which the code now shows better.
This commit is contained in:
Peter Eisentraut
2008-02-26 10:45:24 +00:00
parent 734a56ca2e
commit bdaf90b70f
2 changed files with 33 additions and 55 deletions

View File

@ -24,10 +24,7 @@ else
endif
EXPSUFF= .exp
IMPSUFF= .imp
POSTGRES_IMP= postgres$(IMPSUFF)
POSTGRES_IMP= postgres.imp
ifdef PGXS
BE_DLLLIBS= -Wl,-bI:$(bindir)/postgres/$(POSTGRES_IMP)
@ -37,10 +34,10 @@ endif
MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
%$(EXPSUFF): %.o
$(MKLDEXPORT) $*.o > $*$(EXPSUFF)
%.exp: %.o
$(MKLDEXPORT) $^ >$@
%$(DLSUFFIX): %.o %$(EXPSUFF)
$(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bE:$*$(EXPSUFF) $(SHLIB_LINK)
%$(DLSUFFIX): %.o %.exp
$(CC) $(LDFLAGS) $(LDFLAGS_SL) -o $@ $*.o -Wl,-bE:$*.exp $(SHLIB_LINK)
sqlmansect = 7