comparison src/s/darwin.h @ 56892:02d9436a8b32

(LIBS_CARBON): New define to specify libraries for Carbon support. (LD_SWITCH_SYSTEM_TEMACS): Don't link with unused libstdc++. Use LIBS_CARBON.
author Steven Tamm <steventamm@mac.com>
date Thu, 02 Sep 2004 17:02:11 +0000
parents 6c8849d06ab3
children 643823aaa8df 3219f94257bc
comparison
equal deleted inserted replaced
56891:10705eddc995 56892:02d9436a8b32
241 241
242 /* Indicate that we are compiling for Mac OS X and where to find Mac 242 /* Indicate that we are compiling for Mac OS X and where to find Mac
243 specific headers. */ 243 specific headers. */
244 #define C_SWITCH_SYSTEM -fpascal-strings -fno-common -DMAC_OSX -I../mac/src 244 #define C_SWITCH_SYSTEM -fpascal-strings -fno-common -DMAC_OSX -I../mac/src
245 245
246 /* Link in the Carbon lib. The -headerpad option tells ld (see man 246 /* Link in the Carbon lib. */
247 page) to leave room at the end of the header for adding load 247 #ifdef HAVE_CARBON
248 commands. Needed for dumping. 0x690 is the total size of 30 248 #define LIBS_CARBON -framework Carbon -framework QuickTime
249 segment load commands (at 56 each). */ 249 #else
250 #define LD_SWITCH_SYSTEM_TEMACS -prebind -framework Carbon -framework QuickTime -lstdc++ -Xlinker -headerpad -Xlinker 690 250 #define LIBS_CARBON -framework Carbon
251 #endif
252
253 /* The -headerpad option tells ld (see man page) to leave room at the
254 end of the header for adding load commands. Needed for dumping.
255 0x690 is the total size of 30 segment load commands (at 56
256 each). */
257 #define LD_SWITCH_SYSTEM_TEMACS -prebind LIBS_CARBON -Xlinker -headerpad -Xlinker 690
251 258
252 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs 259 #define C_SWITCH_SYSTEM_TEMACS -Dtemacs
253 260
254 /* The ncurses library has been moved out of the System framework in 261 /* The ncurses library has been moved out of the System framework in
255 Mac OS X 10.2. So if ./configure detects it, set the command-line 262 Mac OS X 10.2. So if ./configure detects it, set the command-line