Commit | Line | Data |
---|---|---|
ddbb28f4 RS |
1 | /* This file permits building Emacs with a shared libc on Sunos 4. |
2 | To make this work, you must completely replace your C shared library | |
d6c862ca RS |
3 | using one of the SunOS 4.1.x jumbo replacement patches from Sun. |
4 | Here are the patch numbers for Sunos 4.1.3: | |
5 | 100890-10 SunOS 4.1.3: domestic libc jumbo patch | |
6 | 100891-10 SunOS 4.1.3: international libc jumbo patch */ | |
7 | ||
ddbb28f4 | 8 | |
16f7413a | 9 | #include "sunos4-1.h" |
20c428fd JB |
10 | |
11 | /* Say that the text segment of a.out includes the header; | |
12 | the header actually occupies the first few bytes of the text segment | |
13 | and is counted in hdr.a_text. */ | |
14 | ||
20c428fd JB |
15 | /* Misleading! Actually gets loaded after crt0.o */ |
16 | #define START_FILES pre-crt0.o | |
17 | ||
18 | /* | |
19 | * Kludge! can't get at symbol "start" in std crt0.o | |
20 | * Who the #$%&* decided to remove the __ characters! | |
21 | * Someone needs to fix this in sysdep.c with an #ifdef BROKEN_START in | |
22 | * sysdep.c. We do not use this address so any value should do really. Still | |
23 | * may need it in the future? | |
24 | */ | |
25 | #define BROKEN_START | |
26 | #define TEXT_START 0x2020 | |
27 | ||
28 | #define UNEXEC unexsunos4.o | |
29 | #define RUN_TIME_REMAP | |
c667ca30 | 30 | #define ORDINARY_LINK |
0099c05a | 31 | #define SUNOS4_SHARED_LIBRARIES |
16f7413a JB |
32 | |
33 | #undef LD_SWITCH_SYSTEM | |
12ddbaa9 | 34 | #undef LD_SWITCH_SYSTEM_TEMACS |
562378c0 RS |
35 | |
36 | #undef SYSTEM_MALLOC | |
ddbb28f4 | 37 | #ifndef GNU_MALLOC |
562378c0 | 38 | #define GNU_MALLOC |
ddbb28f4 RS |
39 | #endif |
40 | #ifndef REL_ALLOC | |
562378c0 | 41 | #define REL_ALLOC |
ddbb28f4 | 42 | #endif |
9e6e0fe2 RS |
43 | |
44 | /* khera@cs.duke.edu says this is needed. */ | |
45 | #define memmove(to, from, size) bcopy (from, to, size) | |
a23e3ce7 RS |
46 | |
47 | #undef USE_DL_STUBS | |
24a9ec1b | 48 | |
6ef338b7 RS |
49 | #ifndef HAVE_X11R6 |
50 | /* With X11R5 it was reported that linking -lXmu dynamically | |
51 | did not work. With X11R6, it does work; and since normally | |
52 | only the dynamic libraries are available, we should use them. */ | |
24a9ec1b | 53 | #ifdef __GNUC__ |
6ef338b7 | 54 | #define LIBXMU -Xlinker -Bstatic -lXmu -Xlinker -Bdynamic |
24a9ec1b | 55 | #else |
6ef338b7 | 56 | #define LIBXMU -Bstatic -lXmu -Bdynamic |
24a9ec1b | 57 | #endif |
6ef338b7 RS |
58 | |
59 | #endif /* not HAVE_X11R6 */ | |
ab5796a9 MB |
60 | |
61 | /* arch-tag: cb54321a-ed45-4c17-a23e-1c157758da78 | |
62 | (do not change this comment) */ |