2 include $(top_srcdir)/Makefile.tool-tests.am
7 if VGCONF_ARCHS_INCLUDE_X86
10 if VGCONF_ARCHS_INCLUDE_AMD64
13 if VGCONF_ARCHS_INCLUDE_MIPS32
16 if VGCONF_ARCHS_INCLUDE_MIPS64
19 if VGCONF_ARCHS_INCLUDE_PPC32
22 if VGCONF_ARCHS_INCLUDE_PPC64
25 if VGCONF_ARCHS_INCLUDE_S390X
33 if VGCONF_OS_IS_DARWIN
36 if VGCONF_OS_IS_SOLARIS
40 # Platform-specific tests
41 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
44 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
45 SUBDIRS += amd64-linux
47 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
48 SUBDIRS += arm64-linux
50 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
51 SUBDIRS += x86-solaris
53 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
54 SUBDIRS += amd64-solaris
57 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \
58 darwin solaris x86-linux amd64-linux arm64-linux \
59 x86-solaris amd64-solaris mips32 mips64 \
62 dist_noinst_SCRIPTS = \
66 filter_leak_cases_possible \
67 filter_leak_cpp_interior \
68 filter_stderr filter_xml \
74 noinst_HEADERS = leak.h
77 accounting.stderr.exp accounting.vgtest \
78 addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
79 atomic_incs.stderr.exp atomic_incs.vgtest \
80 atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
81 badaddrvalue.stderr.exp \
82 badaddrvalue.stdout.exp badaddrvalue.vgtest \
83 exit_on_first_error.stderr.exp \
84 exit_on_first_error.vgtest \
85 exit_on_first_error_with_xml.stderr.exp \
86 exit_on_first_error_with_xml.vgtest \
87 badfree-2trace.stderr.exp badfree-2trace.vgtest \
88 badfree.stderr.exp badfree.vgtest \
89 badfree3.stderr.exp badfree3.vgtest \
90 badjump.stderr.exp badjump.vgtest \
91 badjump2.stderr.exp badjump2.vgtest \
92 badjump.stderr.exp-kfail \
93 badjump2.stderr.exp-kfail \
94 badloop.stderr.exp badloop.vgtest \
95 badpoll.stderr.exp badpoll.vgtest \
96 badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
97 big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
98 brk2.stderr.exp brk2.vgtest \
99 buflen_check.stderr.exp buflen_check.vgtest \
100 buflen_check.stderr.exp-kfail \
101 bug155125.stderr.exp bug155125.vgtest \
102 bug287260.stderr.exp bug287260.vgtest \
103 bug340392.stderr.exp bug340392.vgtest \
104 calloc-overflow.stderr.exp calloc-overflow.vgtest\
105 cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
106 cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
107 client-msg.stderr.exp client-msg.vgtest \
108 client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
109 clientperm.stderr.exp \
110 clientperm.stdout.exp clientperm.vgtest \
111 clireq_nofill.stderr.exp \
112 clireq_nofill.stdout.exp clireq_nofill.vgtest \
113 clo_redzone_default.vgtest clo_redzone_128.vgtest \
114 clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
115 cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
116 cond_ld.stderr.exp-64bit-non-arm \
117 cond_ld.stderr.exp-32bit-non-arm \
118 cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
119 cond_st.stderr.exp-64bit-non-arm \
120 cond_st.stderr.exp-32bit-non-arm \
121 leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
122 custom_alloc.stderr.exp custom_alloc.vgtest \
123 custom_alloc.stderr.exp-s390x-mvc \
124 custom-overlap.stderr.exp custom-overlap.vgtest \
125 deep-backtrace.vgtest deep-backtrace.stderr.exp \
126 demangle.stderr.exp demangle.vgtest \
127 big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
128 describe-block.stderr.exp describe-block.vgtest \
129 descr_belowsp.vgtest descr_belowsp.stderr.exp \
130 doublefree.stderr.exp doublefree.vgtest \
131 dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
132 err_disable1.vgtest err_disable1.stderr.exp \
133 err_disable2.vgtest err_disable2.stderr.exp \
134 err_disable3.vgtest err_disable3.stderr.exp \
135 err_disable4.vgtest err_disable4.stderr.exp \
136 err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
137 erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
138 error_counts.stderr.exp error_counts.vgtest \
139 errs1.stderr.exp errs1.vgtest \
140 exitprog.stderr.exp exitprog.vgtest \
141 execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
142 execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
143 file_locking.stderr.exp file_locking.vgtest \
144 fprw.stderr.exp fprw.stderr.exp-mips32-be fprw.stderr.exp-mips32-le \
146 fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
147 gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
148 holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
149 holey_buffer_too_small.stderr.exp \
150 inits.stderr.exp inits.vgtest \
151 inline.stderr.exp inline.stdout.exp inline.vgtest \
152 inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
153 inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
154 inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
155 inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
156 inltemplate.stderr.exp-old-gcc \
157 leak-0.vgtest leak-0.stderr.exp \
158 leak-cases-full.vgtest leak-cases-full.stderr.exp \
159 leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
160 leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
161 leak-cycle.vgtest leak-cycle.stderr.exp \
162 leak-delta.vgtest leak-delta.stderr.exp \
163 leak-pool-0.vgtest leak-pool-0.stderr.exp \
164 leak-pool-1.vgtest leak-pool-1.stderr.exp \
165 leak-pool-2.vgtest leak-pool-2.stderr.exp \
166 leak-pool-3.vgtest leak-pool-3.stderr.exp \
167 leak-pool-4.vgtest leak-pool-4.stderr.exp \
168 leak-pool-5.vgtest leak-pool-5.stderr.exp \
169 leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
170 leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
171 leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
172 leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
173 leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
174 leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
175 leak-tree.vgtest leak-tree.stderr.exp \
176 leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
177 lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
178 long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
179 long_namespace_xml.stderr.exp \
180 long-supps.vgtest long-supps.stderr.exp long-supps.supp \
181 mallinfo.stderr.exp mallinfo.vgtest \
182 malloc_free_fill.vgtest \
183 malloc_free_fill.stderr.exp \
184 malloc_usable.stderr.exp malloc_usable.vgtest \
185 malloc1.stderr.exp malloc1.vgtest \
186 malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
187 malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
188 malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
189 malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
190 malloc2.stderr.exp malloc2.vgtest \
191 malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
192 manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
193 manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
195 manuel3.stderr.exp manuel3.vgtest \
196 match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
197 memalign_test.stderr.exp memalign_test.vgtest \
198 memalign2.stderr.exp memalign2.vgtest \
199 memcmptest.stderr.exp memcmptest.stderr.exp2 \
200 memcmptest.stdout.exp memcmptest.vgtest \
201 mempool.stderr.exp mempool.vgtest \
202 mempool2.stderr.exp mempool2.vgtest \
203 metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
204 mismatches.stderr.exp mismatches.vgtest \
205 mmaptest.stderr.exp mmaptest.vgtest \
206 nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
207 nanoleak2.stderr.exp nanoleak2.vgtest \
208 new_nothrow.stderr.exp new_nothrow.vgtest \
209 new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
210 noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
211 null_socket.stderr.exp null_socket.vgtest \
212 origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
213 origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
214 origin2-not-quite.stderr.exp \
215 origin3-no.vgtest origin3-no.stdout.exp \
216 origin3-no.stderr.exp \
217 origin4-many.vgtest origin4-many.stdout.exp \
218 origin4-many.stderr.exp \
219 origin5-bz2.vgtest origin5-bz2.stdout.exp \
220 origin5-bz2.stderr.exp-glibc25-x86 \
221 origin5-bz2.stderr.exp-glibc25-amd64 \
222 origin5-bz2.stderr.exp-glibc25-amd64-b \
223 origin5-bz2.stderr.exp-glibc27-ppc64 \
224 origin5-bz2.stderr.exp-glibc212-s390x \
225 origin5-bz2.stderr.exp-glibc234-s390x \
226 origin5-bz2.stderr.exp-glibc218-mips32 \
227 origin6-fp.vgtest origin6-fp.stdout.exp \
228 origin6-fp.stderr.exp-glibc25-amd64 \
229 origin6-fp.stderr.exp-glibc27-ppc64 \
230 overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
231 partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
232 partiallydefinedeq.stderr.exp4 \
233 partiallydefinedeq.stderr.exp3 \
234 partiallydefinedeq.stderr.exp2 \
235 partiallydefinedeq.stdout.exp \
236 partial_load_ok.vgtest partial_load_ok.stderr.exp \
237 partial_load_ok.stderr.exp64 \
238 partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
239 partial_load_dflt.stderr.exp64 \
240 partial_load_dflt.stderr.expr-s390x-mvc \
241 pdb-realloc.stderr.exp pdb-realloc.vgtest \
242 pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
243 pipe.stderr.exp pipe.vgtest \
244 pointer-trace.vgtest \
245 pointer-trace.stderr.exp \
246 post-syscall.stderr.exp post-syscall.vgtest \
247 reach_thread_register.stderr.exp reach_thread_register.vgtest \
248 reach_thread_register.stderr.exp-mips32 \
249 reach_thread_register.stderr.exp-mips64 \
250 realloc1.stderr.exp realloc1.vgtest \
251 realloc2.stderr.exp realloc2.vgtest \
252 realloc3.stderr.exp realloc3.vgtest \
253 recursive-merge.stderr.exp recursive-merge.vgtest \
254 resvn_stack.stderr.exp resvn_stack.vgtest \
255 sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
256 sem.stderr.exp sem.vgtest \
257 sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
258 sh-mem.stderr.exp sh-mem.vgtest \
259 sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
260 sh-mem-random.stdout.exp sh-mem-random.vgtest \
261 sigaltstack.stderr.exp sigaltstack.vgtest \
262 sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-mips32 \
263 sigkill.stderr.exp-solaris sigkill.vgtest \
264 signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
265 sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
266 static_malloc.stderr.exp static_malloc.vgtest \
267 stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
268 strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
269 str_tester.stderr.exp str_tester.vgtest \
270 supp-dir.vgtest supp-dir.stderr.exp \
271 supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
272 supp_unknown.stderr.exp-kfail \
273 supp1.stderr.exp supp1.vgtest \
274 supp2.stderr.exp supp2.vgtest \
276 suppfree.stderr.exp suppfree.supp suppfree.vgtest \
277 suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
278 supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
279 suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
280 suppsrc_lineno.supp \
281 suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
282 suppsrc_sanlineno.supp \
283 suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
284 test-plo-no.vgtest test-plo-no.stdout.exp \
285 test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
286 test-plo-yes.vgtest test-plo-yes.stdout.exp \
287 test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
288 test-plo-no.stderr.exp-s390x-mvc \
289 thread_alloca.stderr.exp thread_alloca.vgtest \
290 threadname.vgtest threadname.stderr.exp \
291 threadname_xml.vgtest threadname_xml.stderr.exp \
292 trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
293 undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
294 unit_libcbase.stderr.exp unit_libcbase.vgtest \
295 unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
296 varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
297 varinfo1.stderr.exp-ppc64 \
298 varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
299 varinfo2.stderr.exp-ppc64 \
300 varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
301 varinfo3.stderr.exp-ppc64 \
302 varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
303 varinfo4.stderr.exp-ppc64 \
304 varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
305 varinfo5.stderr.exp-ppc64 \
306 varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
307 varinfo6.stderr.exp-ppc64 \
308 varinforestrict.vgtest varinforestrict.stderr.exp \
309 vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
310 vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
311 vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
312 vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
313 vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
314 wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
315 wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
316 wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
317 wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
318 wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
319 wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
320 wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
321 wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
322 wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
323 wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
324 wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
325 wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
326 wrapmallocstatic.stderr.exp \
327 writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
328 xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc
334 badaddrvalue badfree badjump badjump2 \
338 big_blocks_freed_list \
355 big_debuginfo_symbol \
358 doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
359 err_disable1 err_disable2 err_disable3 err_disable4 \
360 err_disable_arange1 \
362 fprw fwrite inits inline inlinfo inltemplate \
363 holey_buffer_too_small \
375 malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
377 memalign_test memalign2 memcmptest mempool mempool2 mmaptest \
378 mismatches new_override metadata \
379 nanoleak_supp nanoleak2 new_nothrow \
382 origin1-yes origin2-not-quite origin3-no \
383 origin4-many origin5-bz2 origin6-fp \
386 partial_load pdb-realloc pdb-realloc2 \
389 realloc1 realloc2 realloc3 \
394 sh-mem sh-mem-random \
395 sigaltstack signal2 sigprocmask static_malloc sigkill \
398 supp_unknown supp1 supp2 suppfree \
403 unit_libcbase unit_oset \
404 varinfo1 varinfo2 varinfo3 varinfo4 \
405 varinfo5 varinfo5so.so varinfo6 \
407 vcpu_fbench vcpu_fnfns \
410 wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
411 wrapmalloc wrapmallocso.so wrapmallocstatic \
414 if !SOLARIS_SUN_STUDIO_AS
415 # Sun Studio assembler fails on "IDENT too long"
416 check_PROGRAMS += long_namespace_xml
420 check_PROGRAMS += dw4
424 check_PROGRAMS += cdebug_zlib
425 cdebug_zlib_SOURCES = cdebug.c
426 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
430 check_PROGRAMS += cdebug_zlib_gnu
431 cdebug_zlib_gnu_SOURCES = cdebug.c
432 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
436 check_PROGRAMS += stpncpy
439 if HAVE_PTHREAD_SETNAME_NP
440 check_PROGRAMS += threadname
443 if HAVE_PTHREAD_BARRIER
444 check_PROGRAMS += reach_thread_register
447 AM_CFLAGS += $(AM_FLAG_M3264_PRI)
448 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
450 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
451 #AM_CFLAGS += -mfloat-abi=softfp
452 #AM_CXXFLAGS += -mfloat-abi=softfp
455 if VGCONF_OS_IS_DARWIN
456 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
458 atomic_incs_CFLAGS = $(AM_CFLAGS)
461 if VGCONF_OS_IS_SOLARIS
462 buflen_check_LDADD = -lsocket -lnsl
465 leak_cpp_interior_SOURCES = leak_cpp_interior.cpp
467 demangle_SOURCES = demangle.cpp
469 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
470 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
472 bug340392_CFLAGS = $(AM_CFLAGS) -O3
473 dw4_CFLAGS = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
475 descr_belowsp_LDADD = -lpthread
476 err_disable3_LDADD = -lpthread
477 err_disable4_LDADD = -lpthread
478 err_disable4_CFLAGS = $(AM_CFLAGS)
479 if VGCONF_OS_IS_SOLARIS
480 err_disable4_CFLAGS += -D_XOPEN_SOURCE=600
482 reach_thread_register_CFLAGS = $(AM_CFLAGS) -O2
483 reach_thread_register_LDADD = -lpthread
484 thread_alloca_LDADD = -lpthread
485 threadname_LDADD = -lpthread
487 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
489 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
491 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
493 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
495 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
497 inlinfo_CFLAGS = $(AM_CFLAGS) -w
499 inltemplate_SOURCES = inltemplate.cpp
500 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
502 long_namespace_xml_SOURCES = long_namespace_xml.cpp
504 manuel1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
506 memalign2_CFLAGS = $(AM_CFLAGS)
507 if VGCONF_OS_IS_SOLARIS
508 memalign2_CFLAGS += -D__EXTENSIONS__
511 memcmptest_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcmp
513 mismatches_SOURCES = mismatches.cpp
514 mismatches_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
516 new_nothrow_SOURCES = new_nothrow.cpp
517 new_override_SOURCES = new_override.cpp
519 if VGCONF_OS_IS_SOLARIS
520 null_socket_LDADD = -lsocket -lnsl
523 origin1_yes_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
525 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
527 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
529 # This requires optimisation in order to get just one resulting error.
530 origin4_many_CFLAGS = $(AM_CFLAGS) -O
532 # Apply -O so as to run in reasonable time.
533 origin5_bz2_CFLAGS = $(AM_CFLAGS) -O -Wno-inline
534 origin6_fp_CFLAGS = $(AM_CFLAGS) -O
536 # Don't allow GCC to inline memcpy() and strcpy(),
537 # because then we can't intercept it
538 overlap_CFLAGS = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy
540 resvn_stack_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
542 sendmsg_CFLAGS = $(AM_CFLAGS)
543 if VGCONF_OS_IS_SOLARIS
544 sendmsg_CFLAGS += -D_XOPEN_SOURCE=600
545 sendmsg_LDADD = -lsocket -lnsl
548 str_tester_CFLAGS = $(AM_CFLAGS) -Wno-shadow \
549 @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@
551 supp_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
553 supp_unknown_SOURCES = badjump.c
554 supp_unknown_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
556 supp1_SOURCES = supp.c
557 supp1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
559 supp2_SOURCES = supp.c
560 supp2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
562 vcpu_bz2_CFLAGS = $(AM_CFLAGS) -O2
563 vcpu_fbench_CFLAGS = $(AM_CFLAGS) -O2
564 vcpu_fnfns_CFLAGS = $(AM_CFLAGS) -O2
565 vcpu_fnfns_LDADD = -lm
566 wrap6_CFLAGS = $(AM_CFLAGS) -O2
568 # To make it a bit more realistic, have some optimisation enabled
569 # for the varinfo tests. We still expect sane results.
570 varinfo1_CFLAGS = $(AM_CFLAGS) -O
571 varinfo2_CFLAGS = $(AM_CFLAGS) -O -Wno-shadow
572 varinfo3_CFLAGS = $(AM_CFLAGS) -O
573 varinfo4_CFLAGS = $(AM_CFLAGS) -O
574 varinfo5_CFLAGS = $(AM_CFLAGS) -O
575 varinfo6_CFLAGS = $(AM_CFLAGS) -O
577 # Build shared object for varinfo5
578 varinfo5_SOURCES = varinfo5.c
579 varinfo5_DEPENDENCIES = varinfo5so.so
580 if VGCONF_OS_IS_DARWIN
581 varinfo5_LDADD = `pwd`/varinfo5so.so
582 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI)
584 varinfo5_LDADD = varinfo5so.so
585 varinfo5_LDFLAGS = $(AM_FLAG_M3264_PRI) \
586 -Wl,-rpath,$(top_builddir)/memcheck/tests
589 varinfo5so_so_SOURCES = varinfo5so.c
590 varinfo5so_so_CFLAGS = $(AM_CFLAGS) -fpic -O -Wno-shadow
591 if VGCONF_OS_IS_DARWIN
592 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
593 -dynamiclib -all_load
595 varinfo5so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
596 -Wl,-soname -Wl,varinfo5so.so
598 varinforestrict_CFLAGS = $(AM_CFLAGS) -O0 -g
600 # Build shared object for wrap7
601 wrap7_SOURCES = wrap7.c
602 wrap7_DEPENDENCIES = wrap7so.so
603 if VGCONF_OS_IS_DARWIN
604 wrap7_LDADD = `pwd`/wrap7so.so
605 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI)
607 wrap7_LDADD = wrap7so.so
608 wrap7_LDFLAGS = $(AM_FLAG_M3264_PRI) \
609 -Wl,-rpath,$(top_builddir)/memcheck/tests
612 wrap7so_so_SOURCES = wrap7so.c
613 wrap7so_so_CFLAGS = $(AM_CFLAGS) -fpic
614 if VGCONF_OS_IS_DARWIN
615 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
616 -dynamiclib -all_load
618 wrap7so_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
619 -Wl,-soname -Wl,wrap7so.so
622 # Build shared object for wrapmalloc
623 wrapmalloc_SOURCES = wrapmalloc.c
624 wrapmalloc_DEPENDENCIES = wrapmallocso.so
625 if VGCONF_OS_IS_DARWIN
626 wrapmalloc_LDADD = `pwd`/wrapmallocso.so
627 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI)
629 wrapmalloc_LDADD = wrapmallocso.so
630 wrapmalloc_LDFLAGS = $(AM_FLAG_M3264_PRI) \
631 -Wl,-rpath,$(top_builddir)/memcheck/tests
634 wrapmallocso_so_SOURCES = wrapmallocso.c
635 wrapmallocso_so_CFLAGS = $(AM_CFLAGS) -fpic
636 if VGCONF_OS_IS_DARWIN
637 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
638 -dynamiclib -all_load
640 wrapmallocso_so_LDFLAGS = -fpic $(AM_FLAG_M3264_PRI) -shared \
641 -Wl,-soname -Wl,wrapmallocso.so
644 xml1_CFLAGS = $(AM_CFLAGS) -D_GNU_SOURCE