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:
@ -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
|
||||
|
Reference in New Issue
Block a user