summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/include/port/svr4.h6
-rw-r--r--src/makefiles/Makefile.svr44
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 $@ $<