1 /* Handle Solaris 2.5. */
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
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 */
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. */
25 #undef USE_MMAP_FOR_BUFFERS
27 #if 0 /* A recent patch in unexelf.c should eliminate the need for this. */
28 /* Don't use the shared libraries for -lXt and -lXaw,
29 to work around a linker bug in Solaris 2.5.
30 (This also affects the other libraries used specifically for
31 the X toolkit, which may not be necessary.) */
35 #define STATIC_OPTION -Xlinker -Bstatic
36 #define DYNAMIC_OPTION -Xlinker -Bdynamic
38 #define STATIC_OPTION -Bstatic
39 #define DYNAMIC_OPTION -Bdynamic