comparison src/s/aix4-2.h @ 107985:9a1538888aae

merge trunk
author Kenichi Handa <handa@etlken>
date Tue, 20 Apr 2010 13:24:33 +0900
parents dbd787c249c5
children d5c67777ae39
comparison
equal deleted inserted replaced
107353:14a34dbaa721 107985:9a1538888aae
85 85
86 #ifndef __GNUC__ 86 #ifndef __GNUC__
87 #define LINKER cc 87 #define LINKER cc
88 #endif 88 #endif
89 89
90 /* Prevent -lg from being used for debugging. Not needed. */
91
92 #define LIBS_DEBUG
93
94 /* No need to specify -lc when linking. */ 90 /* No need to specify -lc when linking. */
95 91
96 #define LIB_STANDARD 92 #define LIB_STANDARD
93
94 /* -lpthreads seems to be necessary for Xlib in X11R6, and should be harmless
95 on older versions of X where it happens to exist. */
96 #ifdef HAVE_LIBPTHREADS
97 #define LIBS_SYSTEM -lrts -lIM -liconv -lpthreads
98 #else
99 /* IBM's X11R5 use -lIM and -liconv in AIX 3.2.2. */
100 #define LIBS_SYSTEM -lrts -lIM -liconv
101 #endif
97 102
98 /* Use terminfo instead of termcap. */ 103 /* Use terminfo instead of termcap. */
99 104
100 #define TERMINFO 105 #define TERMINFO
101 106
118 123
119 /* string.h defines rindex as a macro, at least with native cc, so we 124 /* string.h defines rindex as a macro, at least with native cc, so we
120 lose declaring char * rindex without this. 125 lose declaring char * rindex without this.
121 It is just a guess which versions of AIX need this definition. */ 126 It is just a guess which versions of AIX need this definition. */
122 #undef HAVE_STRING_H 127 #undef HAVE_STRING_H
123
124 /* For AIX, it turns out compiling emacs under AIX 3.2.4 REQUIRES "cc -g"
125 because "cc -O" crashes. Under AIX 3.2.5, "cc -O" is required because
126 "cc -g" crashes. Go figure. --floppy@merlin.mit.edu */
127 /* The above isn't generally true. If it occurs with some compiler
128 release, seek a fixed version, be it XLC or GCC. The XLC version
129 isn't tied to the OS version on AIX any more than elsewhere. XLC
130 (the IBM compiler) can use -g with -O. (-O3 is also a possibility
131 for the optimization level.) -- fx, after David Edelsohn. */
132 #define C_DEBUG_SWITCH -g -O
133 128
134 /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */ 129 /* Perry Smith <pedz@ddivt1.austin.ibm.com> says these are correct. */
135 #define SIGNALS_VIA_CHARACTERS 130 #define SIGNALS_VIA_CHARACTERS
136 #define MAIL_USE_LOCKF 131 #define MAIL_USE_LOCKF
137 #define CLASH_DETECTION 132 #define CLASH_DETECTION
166 Emacs currently calls xrealloc on the results of get_current_dir name, 161 Emacs currently calls xrealloc on the results of get_current_dir name,
167 to avoid a crash just use the Emacs implementation for that function. 162 to avoid a crash just use the Emacs implementation for that function.
168 */ 163 */
169 #define BROKEN_GET_CURRENT_DIR_NAME 1 164 #define BROKEN_GET_CURRENT_DIR_NAME 1
170 165
166 #define UNEXEC unexaix.o
167
168 #define ORDINARY_LINK
169
171 /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562 170 /* arch-tag: 38fe75ea-6aef-42bd-8449-bc34d921a562
172 (do not change this comment) */ 171 (do not change this comment) */