mirror of
https://github.com/postgres/postgres.git
synced 2025-11-10 17:42:29 +03:00
Subject: [PORTS] Patches for Irix 6.4 I have worked out how to compile PostgreSQL on Irix 6.4 using the -n32 compiler mode and version 7.1 of the C compiler. (The n32 compiler use 32 bits addressing, but allows access to all the instructions in the MIPS4 instruction set.) There were several problems: 1) The ld command is not referenced as a macro in all the Makefiles. On this platform, you have to include -n32 on all the ld commands. Makefiles were changed as needed. 3) Lots of warnings are generated from the compiler. Since the regression tests worked OK, I didn't attempt to fix them. If anyone wants the compilation log, please let me know, and I'll email it to you. The version of postgresql was 970602. Here is Makefile.custom: CUSTOM_COPT = -O2 -n32 MK_NO_LORDER = 1 LD = ld -n32 CC += -n32
55 lines
1.3 KiB
Makefile
55 lines
1.3 KiB
Makefile
#-------------------------------------------------------------------------
|
|
#
|
|
# Makefile--
|
|
# Makefile for the access methods module
|
|
#
|
|
# IDENTIFICATION
|
|
# $Header: /cvsroot/pgsql/src/backend/access/Makefile,v 1.3 1997/06/11 01:11:30 scrappy Exp $
|
|
#
|
|
#-------------------------------------------------------------------------
|
|
|
|
SRCDIR = ../..
|
|
include ../../Makefile.global
|
|
|
|
OBJS = common/SUBSYS.o gist/SUBSYS.o hash/SUBSYS.o heap/SUBSYS.o \
|
|
index/SUBSYS.o rtree/SUBSYS.o nbtree/SUBSYS.o transam/SUBSYS.o
|
|
|
|
|
|
all: submake SUBSYS.o
|
|
|
|
SUBSYS.o: $(OBJS)
|
|
$(LD) -r -o SUBSYS.o $(OBJS)
|
|
|
|
.PHONY: submake
|
|
submake:
|
|
$(MAKE) -C common SUBSYS.o
|
|
$(MAKE) -C gist SUBSYS.o
|
|
$(MAKE) -C hash SUBSYS.o
|
|
$(MAKE) -C heap SUBSYS.o
|
|
$(MAKE) -C index SUBSYS.o
|
|
$(MAKE) -C rtree SUBSYS.o
|
|
$(MAKE) -C nbtree SUBSYS.o
|
|
$(MAKE) -C transam SUBSYS.o
|
|
|
|
clean:
|
|
rm -f SUBSYS.o
|
|
$(MAKE) -C common clean
|
|
$(MAKE) -C gist clean
|
|
$(MAKE) -C hash clean
|
|
$(MAKE) -C heap clean
|
|
$(MAKE) -C index clean
|
|
$(MAKE) -C rtree clean
|
|
$(MAKE) -C nbtree clean
|
|
$(MAKE) -C transam clean
|
|
|
|
.DEFAULT:
|
|
$(MAKE) -C common $@
|
|
$(MAKE) -C gist $@
|
|
$(MAKE) -C hash $@
|
|
$(MAKE) -C heap $@
|
|
$(MAKE) -C index $@
|
|
$(MAKE) -C rtree $@
|
|
$(MAKE) -C nbtree $@
|
|
$(MAKE) -C transam $@
|
|
|