1 # MAKE_EXPORTS is required for svr4 loaders that want a file of
2 # symbol names to tell them what to export/import.
11 ifeq ($(host_os), aix3.2.5)
12 LDFLAGS_SL = -e _nostart
14 ifneq (,$(findstring aix4.1, $(host_os)))
15 LDFLAGS_SL = -bnoentry
23 POSTGRES_IMP= postgres$(IMPSUFF)
25 MKLDEXPORT=$(top_srcdir)/src/backend/port/aix/mkldexport.sh
29 ifeq ($(host_os), aix3.2.5)
30 $(MKLDEXPORT) postgres $(bindir) > $@
32 ifneq (,$(findstring aix4.1, $(host_os)))
33 $(MKLDEXPORT) postgres $(bindir) > $@
35 $(MKLDEXPORT) postgres . > $@
38 $(CC) -Wl,-bE:$(top_builddir)/src/backend/$@ -o postgres $(OBJS) $(LDFLAGS) $(LIBS)
41 $(MKLDEXPORT) $*.o > $*$(EXPSUFF)
43 %$(DLSUFFIX): %.o %$(EXPSUFF)
44 @echo Making shared library $@ from $*.o, $*$(EXPSUFF) and postgres.imp
45 $(CC) -Wl,-H512 -Wl,-bM:SRE -Wl,-bI:$(top_builddir)/src/backend/$(POSTGRES_IMP) -Wl,-bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS) $(LIBS) $(LDFLAGS_SL)