Skip to content

Commit 24ed6d6

Browse files
committed
From: Darren King <aixssd!darrenk@abs.net>
Subject: [PATCHES] AIX make patch resubmitted. Misc patches for AIX from Darren: 1) New src/makefiles/Makefile.aix This patch should only be applied if the following patch (4) is applied to backend/Makefile! Still looking into having configure determine the last line to do the shared link. The 325 code will work for 41, so I put that in as the default. Included a commented out 41 line for completeness. *and* 4) Patch the backend Makefile. I've reviewed this patch with respect to the other ports that use MAKE_EXPORTS (svr4 and univel) as closely as I could and I don't see where it will break them. If it does, please let me know and I'll rework it somehow.
1 parent 3e87138 commit 24ed6d6

File tree

2 files changed

+6
-12
lines changed

2 files changed

+6
-12
lines changed

src/backend/Makefile

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
#
3535
#
3636
# IDENTIFICATION
37-
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.23 1997/04/04 10:38:49 scrappy Exp $
37+
# $Header: /cvsroot/pgsql/src/backend/Makefile,v 1.24 1997/05/22 00:11:23 scrappy Exp $
3838
#
3939
#-------------------------------------------------------------------------
4040

@@ -51,13 +51,7 @@ endif
5151

5252
OBJS = $(DIRS:%=%/SUBSYS.o)
5353

54-
ifeq ($(MAKE_EXPORTS), true)
55-
EXP = postgres$(EXPSUFF)
56-
else
57-
EXP =
58-
endif
59-
60-
all: postgres $(EXP) global1.bki.source local1_template1.bki.source
54+
all: postgres $(POSTGRES_IMP) global1.bki.source local1_template1.bki.source
6155

6256
postgres: $(OBJS) ../utils/version.o
6357
$(CC) -o postgres $(OBJS) ../utils/version.o $(LDFLAGS)
@@ -96,7 +90,7 @@ fmgr.h:
9690

9791
#############################################################################
9892
clean:
99-
rm -f postgres fmgr.h parse.h \
93+
rm -f postgres $(POSTGRES_IMP) fmgr.h parse.h \
10094
global1.bki.source local1_template1.bki.source
10195
for i in $(DIRS); do $(MAKE) -C $$i clean PORTNAME=$(PORTNAME); done
10296

@@ -119,13 +113,13 @@ clean:
119113
# and (2) the parameters of a database system should be set at initdb time,
120114
# not at postgres build time.
121115

122-
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(EXP) fmgr.h\
116+
install: $(LIBDIR) $(BINDIR) $(HEADERDIR) postgres $(POSTGRES_IMP) fmgr.h\
123117
global1.bki.source local1_template1.bki.source \
124118
libpq/pg_hba.conf.sample optimizer/geqo/pg_geqo.sample
125119

126120
$(INSTALL) $(INSTL_EXE_OPTS) postgres $(BINDIR)/postgres
127121
ifeq ($(MAKE_EXPORTS), true)
128-
$(INSTALL) $(INSTLOPTS) postgres$(EXPSUFF) $(LIBDIR)/postgres$(EXPSUFF)
122+
$(INSTALL) $(INSTLOPTS) $(POSTGRES_IMP) $(LIBDIR)/$(POSTGRES_IMP)
129123
endif
130124
@rm -f $(BINDIR)/postmaster
131125
cd $(BINDIR); ln -s postgres postmaster

src/backend/port/aix/mkldexport.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ if [ -z "$2" ]; then
3333
else
3434
echo '#!' $2/$OBJNAME
3535
fi
36-
$NM -g $1 | \
36+
$NM -Bg $1 | \
3737
egrep ' [TD] ' | \
3838
sed -e 's/.* //' | \
3939
egrep -v '\$' | \

0 commit comments

Comments
 (0)