Skip to content

Commit 021ccf0

Browse files
committed
Oops, missed the commit on this one by Darren King also...new Makefile.aix
1 parent 24ed6d6 commit 021ccf0

File tree

1 file changed

+13
-10
lines changed

1 file changed

+13
-10
lines changed

src/makefiles/Makefile.aix

Lines changed: 13 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -3,19 +3,22 @@
33
MAKE_EXPORTS= true
44

55
EXPSUFF= .exp
6+
IMPSUFF= .imp
67

7-
POSTGRES_EXP= $(SRCDIR)/backend/postgres$(EXPSUFF)
8+
POSTGRES_IMP= postgres$(IMPSUFF)
89

910
MKLDEXPORT=$(SRCDIR)/backend/port/aix/mkldexport.sh
1011

11-
%$(EXPSUFF): %.o
12-
$(MKLDEXPORT) $< `pwd` > $@
12+
$(POSTGRES_IMP):
13+
@echo Making $@
14+
$(MKLDEXPORT) postgres $(BINDIR) > $@
15+
$(CC) -bE:$(SRCDIR)/backend/$@ -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
1316

14-
$(POSTGRES_EXP):
15-
$(MAKE) -C $(SRCDIR)/backend postgres.exp
17+
%$(EXPSUFF):
18+
$(MKLDEXPORT) $*.o `pwd` > $*$(EXPSUFF)
1619

17-
%.so: %.o %$(EXPSUFF) $(POSTGRES_EXP)
18-
@echo Making share library $@ from $*.o, $*$(EXPSUFF), and postgres.exp
19-
$(LD) -H512 -T512 -o $@ -e _nostart \
20-
-bI:$(POSTGRES_EXP) -bE:$*$(EXPSUFF) \
21-
$*.o @MATH_LIB@ -lc 2>/dev/null
20+
%.so: %.o %$(EXPSUFF)
21+
@echo Making share library $@ from $*.o, $*$(EXPSUFF), and installed postgres.imp
22+
$(LD) -H512 -e _nostart -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS)
23+
#41 $(LD) -H512 -bnoentry -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS)
24+
#325 $(LD) -H512 -e _nostart -bM:SRE -bI:$(LIBDIR)/$(POSTGRES_IMP) -bE:$*$(EXPSUFF) -o $@ $*.o $(LDFLAGS)

0 commit comments

Comments
 (0)