Created new 'sparc-sun-solaris2.9' platform for testing with Solaris 9.
[dyninst.git] / make.config
1 # Paradyn overall build configuration (unix)
2 #
3 # $Id: make.config,v 1.150 2003/09/30 14:20:45 jodom Exp $
4 #
5
6 SUITE_NAME      = Paradyn
7 RELEASE_NUM     = 4.0
8 #BUILD_MARK     =
9 EXPLICIT_DEPENDS = 1
10 #USE_STL_VECTOR = 1
11 #IBM_BPATCH_COMPAT = 1
12 # Apart from actual "full" releases, don't modify these build Id components.
13 # For personal/experimental builds, feel free to use your core/make.config.local
14 # file to (re-)define BUILD_MARK as you desire.
15
16 # ***** IMPORTANT INSTALLATION/CONFIGURATION INSTRUCTIONS *****
17 # Unless your site is set-up identically to that of the Paradyn/DyninstAPI
18 # developers, you should carefully examine the (GNU)make configuration
19 # parameters defined in this file, particularly utilities such as the C/C++
20 # compilers, perl, flex and bison, and the installed locations and names
21 # for FLEX, TCL/TK, and X11
22
23 # most "main" modules are only two levels deep, but we need to be able to
24 # change this for those that are deeper in the tree
25 ifndef TO_CORE
26 TO_CORE         = ../..
27 endif
28
29 # Destinations for library and executable installation (relative to core!)
30 # Warning: modification of the build/install structure is not recommended!
31 LIBRARY_DEST    = ../lib/$(PLATFORM)
32 PROGRAM_DEST    = ../bin/$(PLATFORM)
33
34 # Usually, we look for files, binaries, libs in $(TO_CORE)/....<something>.
35 # But if the file doesn't exist there (i.e. if the user hasn't checked them out
36 # with cvs), then we should look in a backup location.  That's what this vrble
37 # is about.  It's used several times below in this file.
38 BACKUP_CORE = /p/paradyn/core
39
40 GCC             = gcc
41 GXX             = g++
42 LINKER          = ld
43 AS              = /bin/as
44 CC              = $(GCC)
45 CXX             = $(GXX)
46 LEX             = flex
47 RANLIB          = ranlib
48 AR              = ar
49 YFLAGS          = -d -y
50 YACC            = bison
51 MV              = mv
52 CP              = cp
53 RM              = rm -f
54 MKDIR           = mkdir -p
55 PERL            = perl          # NB: perl v5 or higher required!
56
57 # COLLECTOR is only used by purify & quantify
58 COLLECTOR       = /s/gcc-2.7.2/bin/../lib/gcc-lib/$(PLATFORM)/2.7.2/ld
59 # BUILDSTAMP is used to generate local build vouchers
60 BUILDSTAMP      = $(TO_CORE)/../scripts/buildstamp
61
62 ifdef PLATFORM
63 ARCH_DEF        = -D$(shell echo $$PLATFORM | $(PERL) -pe 's/\./_/g;s/-/_/g')
64 else
65 BUILDERROR: PLATFORM must be defined in environment to build (and run) Paradyn
66 endif
67
68 # temporary hack overrides to provide "grand migration illusion"
69 # (these should be removed once definitions in sources are updated)
70 ifeq ($(PLATFORM),alpha-dec-osf5.1)
71 ARCH_DEF        = -Dalpha_dec_osf4_0
72 endif
73 ifeq ($(PLATFORM),mips-sgi-irix6.5)
74 ARCH_DEF        = -Dmips_sgi_irix6_4
75 endif
76 ifeq ($(PLATFORM),i386-unknown-linux2.4)
77 ARCH_DEF        = -Di386_unknown_linux2_0
78 endif
79 ifeq ($(PLATFORM),ia64-unknown-linux2.4)
80 ARCH_DEF        = -Dia64_unknown_linux2_4
81 endif
82 ifeq ($(PLATFORM),sparc-sun-solaris2.8)
83 ARCH_DEF        = -Dsparc_sun_solaris2_4
84 endif
85 ifeq ($(PLATFORM),sparc-sun-solaris2.9)
86 ARCH_DEF        = -Dsparc_sun_solaris2_4
87 endif
88 ifeq ($(PLATFORM),rs6000-ibm-aix5.1)
89 # 5_1: /proc support, basically
90 ARCH_DEF        = -Drs6000_ibm_aix5_1 -Drs6000_ibm_aix4_1
91 endif
92 ifeq ($(PLATFORM),rs6000-ibm-aix4.3)
93 ARCH_DEF        = -Drs6000_ibm_aix4_1
94 endif
95 ifeq ($(PLATFORM),rs6000-ibm-aix4.2)
96 ARCH_DEF        = -Drs6000_ibm_aix4_1
97 endif
98 # [temporary hack overrides]
99
100 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
101 AS              = /usr/ccs/bin/as
102 RANLIB          = true
103 endif
104
105 ifeq (linux,$(findstring linux,$(PLATFORM)))
106 AS              = /usr/bin/as
107
108 ifndef NASM
109 NASM            = nasm
110 endif
111 RANLIB          = true 
112 endif
113
114
115 # Default module compiler; modules which want $(CC) should redefine
116 # this, **NOT** CC
117
118 MODCC           = $(CXX)
119 MODCFLAGS       = $(CXXFLAGS)
120 DEPCC       = $(CXX)
121 DEPCFLAGS   = $(CXXFLAGS) -Wno-deprecated
122
123 .SUFFIXES:      .I
124
125 IFLAGS          = -I. -I$(TO_CORE)
126
127 ASFLAGS         = -P $(ARCH_DEF)
128
129 # uncomment/comment the line below to build with/without compilation warnings
130 # SILENCE_WARNINGS=true
131
132 ifndef SILENCE_WARNINGS
133 BASICWARNINGS   = -W -Wall -Wno-deprecated
134
135 COMMONWARNINGS  = -W -Wall -Wshadow -Wpointer-arith       \
136                 -Wcast-qual            \
137                 -Wconversion        \
138                 -Wmissing-prototypes             \
139                 -Wredundant-decls -Woverloaded-virtual
140
141 # not as strict as above, but can actually be used -- mdc
142 USEFULWARNINGS  = -W -Wall -Wpointer-arith       \
143                 -Wcast-qual            \
144                 -Wconversion        \
145                 -Wmissing-prototypes             \
146                 -Woverloaded-virtual \
147                 -Wno-deprecated
148
149 # being nice to poor old pathetic tcl/tk header files --ari
150 TCLFRIENDLYWARNINGS = -W -Wall -Wpointer-arith \
151                 -Wcast-qual \
152                 -Wconversion \
153                 -Wmissing-prototypes \
154                 -Woverloaded-virtual
155
156 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
157 COMMONWARNINGS       += -Wno-unknown-pragmas
158 USEFULWARNINGS       += -Wno-unknown-pragmas
159 TCLFRIENDLYWARNINGS  += -Wno-unknown-pragmas
160 else   # STL on Solaris with cast-align generates a warning with much output
161 COMMONWARNINGS       += -Wcast-align
162 USEFULWARNINGS       += -Wcast-align
163 endif
164 endif # SILENCE_WARNINGS
165
166
167 ifndef GCC_2_95
168 GCC_VER := $(shell gcc --version)
169 ifneq (,$(findstring 2.95,$(GCC_VER)))
170 GCC_2_95 = true
171 endif
172 endif
173
174 ifndef OLD_GCC
175 GCC_VER := $(shell gcc --version | head -1 | perl -ane 'print pop(@F)')
176 versionNumbers = $(sort $(GCC_VER) 2.95)
177 versionNumber  = $(firstword $(versionNumbers))
178 ifneq (2.95, $(versionNumber))
179 OLD_GCC = true
180 endif
181 endif
182
183 ifndef OLD_GCC
184 COMMONWARNINGS += -Wno-non-template-friend
185 USEFULWARNINGS += -Wno-non-template-friend
186 TCLFRIENDLYWARNINGS += -Wno-non-template-friend
187 endif
188
189 #don't inline -- for the files that won't emit template code
190 INLINE_DEFINES = 
191
192 #inline the private members of the class -- templates.o can use this
193 TEMP_INLINE_DEFINES = -DDO_INLINE_P="inline"
194
195 # inline everything -- the way things should be
196 ALL_INLINE_DEFINES = -DDO_INLINE_F="inline" -DDO_INLINE_P="inline"
197
198 USES_MT_THREAD =
199
200 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
201 USES_LIBDYNINST_SO = true
202 USES_DYNAMIC_INF_HEAP = true
203 endif
204 ifeq (linux,$(findstring linux,$(PLATFORM)))
205 USES_LIBDYNINST_SO = true
206 USES_DYNAMIC_INF_HEAP = true
207 endif
208
209 ifeq (irix,$(findstring irix,$(PLATFORM)))
210 USES_LIBDYNINST_SO = true
211 USES_DYNAMIC_INF_HEAP = true
212 USES_NATIVE_CC = true
213 USE_IRIX_FIXES = true
214 NATIVE_CC      = cc
215 NATIVE_CXX     = CC
216 endif
217
218 # Set this variable if it's desired that dyninst be built with the native
219 # compiler on Solaris
220 SOLARIS_NATIVE =  #1
221
222 ifdef SOLARIS_NATIVE
223 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
224 USES_LIBDYNINST_SO = true
225 USES_DYNAMIC_INF_HEAP = true
226 USES_NATIVE_CC = true
227 NATIVE_CC      = cc
228 NATIVE_CXX     = CC
229 endif
230 endif
231
232 ifeq (osf,$(findstring osf,$(PLATFORM)))
233 USES_LIBDYNINST_SO = true
234 USES_DYNAMIC_INF_HEAP = true
235 endif
236 ifeq (rs6000,$(findstring rs6000,$(PLATFORM)))
237 USES_LIBDYNINST_SO = true
238 USES_DYNAMIC_INF_HEAP = true
239 USES_PERF_LIBRARY = true
240 # Do not comment unless you know what you are doing. Instrumenting shared
241 # libraries _requires_ this.
242 USES_LIB_TEXT_HEAP = true
243 # Uncomment if you want to use cc to build the RT libraries
244 #USES_NATIVE_CC = true
245 # As of AIX 5, the pm_init function in libpmapi takes more
246 # parameters. This is keyed by the USES_PMAPI_GROUPS define,
247 # and handled in the paradyn runtime library
248 PMAPI_VERSION := $(shell uname -v )
249 ifeq (5, $(findstring 5,$(PMAPI_VERSION)))
250 USES_PMAPI_GROUPS = true
251 endif
252 endif
253
254 # if we don't want OPT_FLAG defined for a particular part of the code
255 # (e.g. rtinst for aix), we just need to define NO_OPT_FLAG before doing
256 # the include of make.config - naim
257 ifndef NO_OPT_FLAG
258 OPT_FLAG        = -O2
259 endif
260
261 # flags for normal (non-kludge) files, with common warnings
262 CFLAGS          = $(IFLAGS) $(ARCH_DEF) $(OPT_FLAG) $(COMMON_WARNINGS)
263 CXXFLAGS        = $(IFLAGS) $(ARCH_DEF) $(OPT_FLAG) $(COMMON_WARNINGS)
264
265 # flags for kludge files, won't have warnings generated
266 KFLAGS          = $(IFLAGS) $(ARCH_DEF) $(BASICWARNINGS)
267
268 CFLAGS += -DOLD_LINE_INFO 
269 CXXFLAGS += -DOLD_LINE_INFO 
270
271 ifdef COVERAGE
272
273 CFLAGS += -fprofile-arcs -ftest-coverage
274 CXXFLAGS += -fprofile-arcs -ftest-coverage
275 LDFLAGS += -fprofile-arcs -ftest-coverage
276
277 endif
278
279 ifdef USING_PURIFY
280 CFLAGS          += -DPURE_BUILD
281 CXXFLAGS        += -DPURE_BUILD
282 endif
283
284 ifdef USES_MT_THREAD
285 CFLAGS          += -DMT_THREAD
286 CXXFLAGS        += -DMT_THREAD
287 endif
288
289 ifeq (osf,$(findstring osf,$(PLATFORM)))
290 CFLAGS += -DOLD_LINE_INFO 
291 CXXFLAGS += -DOLD_LINE_INFO 
292 TFLAGS += -DOLD_LINE_INFO 
293 endif
294 ifdef USES_PERF_LIBRARY
295 # Add any platform-specific performance libraries here
296 ifeq (rs6000,$(findstring rs6000,$(PLATFORM)))
297 USES_PMAPI = true
298 CFLAGS          += -DUSES_PMAPI
299 CXXFLAGS        += -DUSES_PMAPI
300 LDFLAGS         += -lpmapi
301 ifdef USES_PMAPI_GROUPS
302 CFLAGS          += -DPMAPI_GROUPS
303 CXXFLAGS        += -DPMAPI_GROUPS
304 endif # USES_PMAPI_GROUPS
305 endif # rs6000
306 endif # perf_library
307
308 ifdef AIX_PROC
309 CFLAGS          += -DAIX_PROC
310 CXXFLAGS        += -DAIX_PROC
311 endif
312
313 ifdef USES_DYNAMIC_INF_HEAP
314 CFLAGS          += -DUSES_DYNAMIC_INF_HEAP
315 CXXFLAGS        += -DUSES_DYNAMIC_INF_HEAP
316 endif
317
318 ifdef USE_STL_VECTOR
319 CXXFLAGS        += -DUSE_STL_VECTOR
320 CFLAGS          += -fimplicit-templates
321 CXXFLAGS        += -fimplicit-templates
322 endif
323
324 ifdef IBM_BPATCH_COMPAT
325 CXXFLAGS        += -DIBM_BPATCH_COMPAT
326 CFLAGS          += -DIBM_BPATCH_COMPAT
327 endif
328
329 ifndef OPT_FLAG
330 KFLAGS          += -g
331 ifndef DEBUG_FLAG
332 DEBUG_FLAG = -g
333 endif
334 endif
335
336 ifeq ($(DEBUG_FLAG),none)
337 DEBUG_FLAG =
338 endif
339
340 ifdef DEBUG_FLAG
341 CFLAGS   += $(DEBUG_FLAG)
342 CXXFLAGS += $(DEBUG_FLAG)
343 KFLAGS   += $(DEBUG_FLAG)
344 endif
345
346 # flags for template files, don't define external template flags
347 # -g is optional in this case -- should be defined at module level
348 TFLAGS          = $(IFLAGS) $(TEMP_INLINE_DEFINES) $(ARCH_DEF) $(OPT_FLAG) $(BASICWARNINGS)
349
350 TFLAGS += -DOLD_LINE_INFO
351
352 ifdef USES_MT_THREAD
353 TFLAGS          += -DMT_THREAD
354 endif
355
356 ifdef USE_STL_VECTOR
357 TFLAGS          += -DUSE_STL_VECTOR
358 TFLAGS          += -fimplicit-templates
359 endif
360
361 ifdef USE_IRIX_FIXES
362 CFLAGS          += -DUSE_IRIX_FIXES
363 CXXFLAGS        += -DUSE_IRIX_FIXES
364 endif
365
366 ifdef DO_INLINE_ALL
367 CFLAGS         += $(ALL_INLINE_DEFINES)
368 CXXFLAGS       += $(ALL_INLINE_DEFINES)
369 endif
370
371 # Start off LIBDIR to point to the user's devel area's paradyn lib directory.
372 # As a backup, in case the user hasn't checked out & compiled some paradyn lib,
373 # we stick in (BACKUP_CORE)/lib _second_.
374 LIBDIR          = -L$(TO_CORE)/../lib/$(PLATFORM) \
375                         -L$(BACKUP_CORE)/../lib/$(PLATFORM)
376
377 # Set IGEN to point to $(TO_CORE)/../bin/$(PLATFORM)/igen, if it exists,
378 # else set it to $(BACKUP_CORE)/../bin/$(PLATFORM)/igen, if it exists,
379 # else set it to just "igen" (i.e. assume it's in the user's path)
380 ifdef CROSSCOMPILER
381 IGEN = $(shell if [ -f $(TO_CORE)/../bin/$(BASEPLATFORM)/igen ]; then echo $(TO_CORE)/../bin/$(BASEPLATFORM)/igen; else if [ -f $(BACKUP_CORE)/../bin/$(BASEPLATFORM)/igen ]; then echo $(BACKUP_CORE)/../bin/$(BASEPLATFORM)/igen; else echo igen; fi; fi )
382 else
383 IGEN = $(shell if [ -f $(TO_CORE)/../bin/$(PLATFORM)/igen ]; then echo $(TO_CORE)/../bin/$(PLATFORM)/igen; else if [ -f $(BACKUP_CORE)/../bin/$(PLATFORM)/igen ]; then echo $(BACKUP_CORE)/../bin/$(PLATFORM)/igen; else echo igen; fi; fi )
384 endif
385
386 ifdef NO_IMPLICIT_TEMPLATES
387 ifndef USE_STL_VECTOR
388   CFLAGS                += -fno-implicit-templates
389   CXXFLAGS      += -fno-implicit-templates
390   KFLAGS                += -fno-implicit-templates
391 endif
392 endif
393
394 ifndef INSTANTIATE_TEMPLATES
395 ifndef NO_IMPLICIT_TEMPLATES
396 # -fexternal-templates and -Dexternal_templates should both be used or
397 # neither should be used; add them to CFLAGS, CXXFLAGS, and KFLAGS
398 # (but not to TFLAGS).
399 #
400 CFLAGS          +=  -fexternal-templates -Dexternal_templates
401 CXXFLAGS        +=  -fexternal-templates -Dexternal_templates
402 KFLAGS          +=  -fexternal-templates -Dexternal_templates
403 endif
404 endif
405
406 # ***** EXTERNAL SOFTWARE CONFIGURATION *****
407
408 ifdef USES_DWARF_DEBUG
409 LIBDWARFDIR   = /p/paradyn/packages/libdwarf
410 #LIBDWARFDIR   = $(HOME)/src/dwarf/libdwarf
411 endif
412
413 ifdef USES_LIBHRTIME
414 HRTIME_ROOT     = /p/paradyn/packages/libhrtime-0.6
415 HRTIME_INCDIR   = $(HRTIME_ROOT)/include
416 HRTIME_LIBDIR   = $(HRTIME_ROOT)/lib
417 HRTIME_LIB      = -Wl,-static -lhrtime -Wl,-Bdynamic
418 IFLAGS          += -I$(HRTIME_INCDIR)
419 LIBDIR          += $(patsubst %,-L%,$(HRTIME_LIBDIR))
420 CFLAGS          += -DHRTIME
421 CXXFLAGS        += -DHRTIME
422 TFLAGS          += -DHRTIME
423 endif
424
425 ifdef USES_PAPI
426 PAPI_ROOT       = /p/paradyn/packages/papi-3.0.0-test
427 PAPI_INCDIR     = $(PAPI_ROOT)
428 PAPI_LIBDIR     = $(PAPI_ROOT)
429 #PAPI_LIB       = -Wl,-static -lpapi -Wl,-Bdynamic
430 #PAPI_LIB       = $(PAPI_LIBDIR)/libpapi.a
431 PAPI_LIB        = -Wl,-rpath=$(PAPI_LIBDIR) -L$(PAPI_LIBDIR) -lpapi  
432 IFLAGS          += -I$(PAPI_INCDIR)
433 LIBDIR          += $(patsubst %,-L%,$(PAPI_LIBDIR))
434 CFLAGS          += -DPAPI 
435 CXXFLAGS        += -DPAPI
436 TFLAGS          += -DPAPI 
437 endif
438
439 ifdef USES_TCLTK
440
441 # use the first set if using tcl8.4,
442 # use the second set if still using tcl8.3
443 ifdef USE_TCL84
444
445 TCLTK_DIR     = /p/paradyn/packages/tcl8.4.3
446 #TCLTK_DIR      = /opt/freeware/lib
447 TCLTK_LIBVER_ID = 8.4
448 CFLAGS      += -DTCLCONST=const
449 CXXFLAGS    += -DTCLCONST=const
450 KFLAGS      += -DTCLCONST=const
451 TFLAGS      += -DTCLCONST=const
452
453 else
454
455 TCLTK_DIR     = /p/paradyn/packages/tcl8.3.4
456 #TCLTK_DIR      = /opt/freeware/lib
457 TCLTK_LIBVER_ID = 8.3
458 CFLAGS      += -DTCLCONST=""
459 CXXFLAGS    += -DTCLCONST=""
460 KFLAGS      += -DTCLCONST=""
461 TFLAGS      += -DTCLCONST=""
462
463 endif
464
465 TCLTK_INCLUDES  = $(TCLTK_DIR)/include
466 TCL_LIB         = -ltcl$(TCLTK_LIBVER_ID)
467 TK_LIB          = -ltk$(TCLTK_LIBVER_ID)
468 TCLTK_LIBS      += $(TCL_LIB) $(TK_LIB)
469
470 # TCL2C is used to generate compilable sources from tcl files
471 TCL2C           = $(TO_CORE)/../scripts/tcl2c
472 TCL2C_GEN_SRCS  = tcl2c.C
473
474 IFLAGS          += $(patsubst %,-I%,$(TCLTK_INCLUDES))
475 ifdef CROSSCOMPILER
476 LIBDIR          += $(patsubst %,-L%/rs_aix41/lib,$(TCLTK_DIR))
477 else
478 LIBDIR          += $(patsubst %,-L%/lib,$(TCLTK_DIR))
479 endif
480
481 endif # USES_TCLTK
482
483 ifdef USES_FLEX
484 FLEX_LIB        = -lfl
485 #FLEX_DIR=/home/jaw/lib/
486 FLEX_DIR        = /s/flex/lib
487 LIBDIR          += $(patsubst %,-L%,$(FLEX_DIR))
488 VPATH           += $(FLEX_DIR)
489 endif
490
491 ifdef CROSSCOMPILER
492 FLEX_DIR        = /s/flex/rs_aix41/lib
493 LIBDIR          += -L/p/sp2/gcc/lib 
494 endif
495
496 ifdef USES_LIBERTY
497 # Since libiberty.a is in the same g++ directory as libstdc++.a and
498 # libg++.a, no need for a "-L$(LIBERTY_DIR)" entry -at
499 endif
500
501 ifdef USES_X11
502 X11_LIB         = -lX11
503
504 ifeq (solaris,$(findstring solaris,$(PLATFORM)))
505 X11DIR          = /usr/openwin
506 CFLAGS          += -I$(X11DIR)/include
507 CXXFLAGS        += -I$(X11DIR)/include
508 TFLAGS          += -I$(X11DIR)/include
509 LIBDIR          += -R$(X11DIR)/lib -L$(X11DIR)/lib
510 endif
511
512 ifeq (linux,$(findstring linux,$(PLATFORM)))
513 X11DIR          = /usr/X11R6
514 CFLAGS          += -I$(X11DIR)/include/X11
515 CXXFLAGS        += -I$(X11DIR)/include/X11
516 TFLAGS          += -I$(X11DIR)/include/X11
517 LIBDIR          += -L$(X11DIR)/lib
518 endif
519
520 ifeq (aix,$(findstring aix,$(PLATFORM)))
521 X11DIR          = /usr
522 endif
523
524 endif # USES_X11
525
526 THREADSLIB      =
527 USE_PTHREADS    = yes
528
529 ifeq (xyes,x$(USE_PTHREADS))
530 THREADSLIB      += -lpthread
531
532 # On Linux, programs using pthreads are supposed to define _REENTRANT
533 ifeq (linux,$(findstring linux,$(PLATFORM)))
534 CFLAGS                  += -D_REENTRANT=1
535 CXXFLAGS                += -D_REENTRANT=1
536 KFLAGS                  += -D_REENTRANT=1
537 TFLAGS                  += -D_REENTRANT=1
538 endif
539
540 ifeq (rs6000,$(findstring rs6000,$(PLATFORM)))
541 #CFLAGS                 += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
542 #CXXFLAGS               += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
543 #KFLAGS                 += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
544 #TFLAGS                 += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
545 endif
546
547 ifeq (solaris,$(findstring linux,$(PLATFORM)))
548 CFLAGS                  += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
549 CXXFLAGS                += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
550 KFLAGS                  += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
551 TFLAGS                  += -D_REENTRANT=1 -D_THREAD_SAFE=1 -D_THREAD_SAFE_ERRNO=1
552 endif
553
554 endif
555
556 # System build constraints
557 # if not on solaris or aix, then don't build the MT daemon
558 ifeq ($(strip $(join $(findstring sparc-sun-solaris,$(PLATFORM)), $(findstring rs6000-ibm-aix,$(PLATFORM)))),)
559         DONT_BUILD_PD_MT=true;
560 endif
561
562
563 # Include any per-user configuration changes; this "local" config file
564 # should *not* be under CVS control, so that it never gets committed.
565
566 -include $(TO_CORE)/make.config.local