From 31fba1d97416814d2ab863a7964fa0eced44e391 Mon Sep 17 00:00:00 2001
From: Bruce Momjian <bruce@momjian.us>
Date: Mon, 14 Jul 1997 16:52:13 +0000
Subject: [PATCH] Mips sysv4 support.

---
 src/include/port/svr4.h     | 6 ++++++
 src/makefiles/Makefile.svr4 | 4 ++--
 2 files changed, 8 insertions(+), 2 deletions(-)

diff --git a/src/include/port/svr4.h b/src/include/port/svr4.h
index 0c9810a1cc2..0910fe2d298 100644
--- a/src/include/port/svr4.h
+++ b/src/include/port/svr4.h
@@ -2,3 +2,9 @@
 #  define USE_POSIX_SIGNALS
 #  define NO_EMPTY_STMTS
 #  define SYSV_DIRENT
+
+#ifndef         BYTE_ORDER
+#ifdef		MIPSEB
+#define         BYTE_ORDER      BIG_ENDIAN
+#endif
+#endif 
diff --git a/src/makefiles/Makefile.svr4 b/src/makefiles/Makefile.svr4
index 9c9e5b3e5af..21e1d7207d7 100644
--- a/src/makefiles/Makefile.svr4
+++ b/src/makefiles/Makefile.svr4
@@ -1,8 +1,8 @@
 # MAKE_EXPORTS is required for svr4 loaders that want a file of
 # symbol names to tell them what to export/import.
-MAKE_EXPORTS= true
+#MAKE_EXPORTS= true
 
-LDFLAGS+= /usr/ucblib/libucb.a -LD-Blargedynsym
+LDFLAGS+= -lc /usr/ucblib/libucb.a -LD-Blargedynsym
 
 %.so: %.o
 	$(LD) -G -Bdynamic -o $@ $<
-- 
GitLab