diff --git a/src/include/port/svr4.h b/src/include/port/svr4.h
index 0c9810a1cc2128bbd6e6f0108f3540284b0ef062..0910fe2d298695d178b115b9bc06435eed1e8c10 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 9c9e5b3e5af76e97a36a54ef58c3ca81c00ce787..21e1d7207d70ce9dbc0ba121b188c5a383ccb1a9 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 $@ $<