From cf21d71a140704ac25e1171d7f071e2359c67aee Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Sun, 19 Jul 1998 04:30:04 +0000
Subject: [PATCH] Attached are the three patches that were needed to get
 PostgreSQL 6.3.2 to compile (and run) on my Sparc Solaris 2.5.1 box. Details
 below:

	pgsql.sparc.patch-template: Adds -D__sparc__ and -D__sun__,
defintions which gcc does define, but Sun's cc does not. :(
	pgsql.sparc.patch-makefile: Adds a define so that 'lorder'
	is not used, as it is not found on my machine.


Ryan Kirkpatrick
---
 src/makefiles/Makefile.solaris_sparc | 3 +++
 src/template/solaris_sparc_cc        | 2 +-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/src/makefiles/Makefile.solaris_sparc b/src/makefiles/Makefile.solaris_sparc
index b67d7ed5e21..e3adfe3d15b 100644
--- a/src/makefiles/Makefile.solaris_sparc
+++ b/src/makefiles/Makefile.solaris_sparc
@@ -1,2 +1,5 @@
 %.so: %.o
 	$(LD) -G -Bdynamic -o $@ $<
+
+MK_NO_LORDER=true
+
diff --git a/src/template/solaris_sparc_cc b/src/template/solaris_sparc_cc
index 1b688960514..e805a809e75 100644
--- a/src/template/solaris_sparc_cc
+++ b/src/template/solaris_sparc_cc
@@ -1,5 +1,5 @@
 AROPT:crs
-CFLAGS:-Xa -v
+CFLAGS:-Xa -v -D__sparc__ -D__sun__
 SHARED_LIB:-K PIC
 ALL:
 SRCH_INC:
-- 
GitLab