]> code.delx.au - gnu-emacs/blob - src/s/sol2-5.h
(bcopy, bzero, bcmp): Define only if HAVE_BCOPY is not defined.
[gnu-emacs] / src / s / sol2-5.h
1 /* Handle Solaris 2.5. */
2
3 #include "sol2-4.h"
4
5 /* -lgen is needed for the regex and regcmp functions
6 which are used by Motif. In the future we can try changing
7 regex.c to provide them in Emacs, but this is safer for now. */
8 #define LIB_MOTIF -lXm -lgen
9
10 /* This is the only known way to avoid some crashes
11 that seem to relate to screwed up malloc data
12 after deleting a frame. */
13 /* rms: I think the problems using ralloc had to do with system
14 libraries that called the system malloc even if we linked in the
15 GNU malloc. I could not see any way to fix the problem except to
16 have just one malloc and that had to be the system one. */
17 /* This is not always necessary. Turned off at present for testers to
18 identify any problems with gmalloc more accurately. */
19 /* #define SYSTEM_MALLOC */
20
21 /* There have problems reported with mmap at least on Solaris 2.6
22 and 2.7. For simplicity, let's not use mmap for anything >= 2.5.
23 We can optimize this later. */
24
25 #undef USE_MMAP_FOR_BUFFERS
26
27 /* Newer versions of Solaris have bcopy etc. as functions, with
28 prototypes in strings.h. They lose if the defines from usg5-4.h
29 are visible, which happens when X headers are included. */
30 #ifdef HAVE_BCOPY
31 #undef bcopy
32 #undef bzero
33 #undef bcmp
34 #ifndef NOT_C_CODE
35 #include <strings.h>
36 #endif
37 #endif
38
39 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */
40 /* Don't use the shared libraries for -lXt and -lXaw,
41 to work around a linker bug in Solaris 2.5.
42 (This also affects the other libraries used specifically for
43 the X toolkit, which may not be necessary.) */
44 #define LIBXT_STATIC
45
46 #ifdef __GNUC__
47 #define STATIC_OPTION -Xlinker -Bstatic
48 #define DYNAMIC_OPTION -Xlinker -Bdynamic
49 #else
50 #define STATIC_OPTION -Bstatic
51 #define DYNAMIC_OPTION -Bdynamic
52 #endif
53
54 #endif /* 0 */