#define UNEXEC unexsunos4.o
#define RUN_TIME_REMAP
-#define LINKER cc
+#define ORDINARY_LINK
+#define SUNOS4_SHARED_LIBRARIES
#undef LD_SWITCH_SYSTEM
+#undef LD_SWITCH_SYSTEM_TEMACS
#undef SYSTEM_MALLOC
#ifndef GNU_MALLOC
/* khera@cs.duke.edu says this is needed. */
#define memmove(to, from, size) bcopy (from, to, size)
+
+#undef USE_DL_STUBS
+
+#ifndef HAVE_X11R6
+/* With X11R5 it was reported that linking -lXmu dynamically
+ did not work. With X11R6, it does work; and since normally
+ only the dynamic libraries are available, we should use them. */
+#ifdef __GNUC__
+#define LIBXMU -Xlinker -Bstatic -lXmu -Xlinker -Bdynamic
+#else
+#define LIBXMU -Bstatic -lXmu -Bdynamic
+#endif
+
+#endif /* not HAVE_X11R6 */
+
+/* arch-tag: cb54321a-ed45-4c17-a23e-1c157758da78
+ (do not change this comment) */