Bug 401284 - False positive "Source and destination overlap in strncat"
[valgrind.git] / memcheck / tests / Makefile.am
blobe49888be81416ed5be1d2380720a2bd330bda6ce
2 include $(top_srcdir)/Makefile.tool-tests.am
4 SUBDIRS = .
6 # Arch-specific tests.
7 if VGCONF_ARCHS_INCLUDE_X86
8 SUBDIRS += x86
9 endif
10 if VGCONF_ARCHS_INCLUDE_AMD64
11 SUBDIRS += amd64
12 endif
13 if VGCONF_ARCHS_INCLUDE_MIPS32
14 SUBDIRS += mips32
15 endif
16 if VGCONF_ARCHS_INCLUDE_MIPS64
17 SUBDIRS += mips64
18 endif
19 if VGCONF_ARCHS_INCLUDE_PPC32
20 SUBDIRS += ppc32
21 endif
22 if VGCONF_ARCHS_INCLUDE_PPC64
23 SUBDIRS += ppc64
24 endif
25 if VGCONF_ARCHS_INCLUDE_S390X
26 SUBDIRS += s390x
27 endif
29 # OS-specific tests
30 if VGCONF_OS_IS_LINUX
31 SUBDIRS += linux
32 endif
33 if VGCONF_OS_IS_DARWIN
34 SUBDIRS += darwin
35 endif
36 if VGCONF_OS_IS_SOLARIS
37 SUBDIRS += solaris
38 endif
39 if VGCONF_OS_IS_FREEBSD
40 SUBDIRS += freebsd
41 endif
43 # Platform-specific tests
44 if VGCONF_PLATFORMS_INCLUDE_X86_LINUX
45 SUBDIRS += x86-linux
46 endif
47 if VGCONF_PLATFORMS_INCLUDE_AMD64_LINUX
48 SUBDIRS += amd64-linux
49 endif
50 if VGCONF_PLATFORMS_INCLUDE_ARM64_LINUX
51 SUBDIRS += arm64-linux
52 endif
53 if VGCONF_PLATFORMS_INCLUDE_X86_SOLARIS
54 SUBDIRS += x86-solaris
55 endif
56 if VGCONF_PLATFORMS_INCLUDE_AMD64_SOLARIS
57 SUBDIRS += amd64-solaris
58 endif
59 if VGCONF_PLATFORMS_INCLUDE_X86_FREEBSD
60 SUBDIRS += x86-freebsd
61 endif
62 if VGCONF_PLATFORMS_INCLUDE_AMD64_FREEBSD
63 SUBDIRS += amd64-freebsd
64 endif
66 DIST_SUBDIRS = x86 amd64 ppc32 ppc64 s390x linux \
67                 darwin solaris x86-linux amd64-linux arm64-linux \
68                 x86-solaris amd64-solaris mips32 mips64 \
69                 freebsd amd64-freebsd x86-freebsd \
70                 common .
72 dist_noinst_SCRIPTS = \
73         filter_addressable \
74         filter_allocs \
75         filter_dw4 \
76         filter_leak_cases_possible \
77         filter_leak_cpp_interior \
78         filter_stderr filter_xml \
79         filter_strchr \
80         filter_varinfo3 \
81         filter_memcheck \
82         filter_overlaperror \
83         filter_malloc_free \
84         filter_size_t \
85         filter_stanza \
86         filter_stanza.awk \
87         filter_used_supp \
88         filter_stanza_and_size_t
90 noinst_HEADERS = leak.h
92 EXTRA_DIST = \
93         accounting.stderr.exp accounting.vgtest \
94         addressable.stderr.exp addressable.stdout.exp addressable.vgtest \
95         atomic_incs.stderr.exp atomic_incs.vgtest \
96         atomic_incs.stdout.exp-32bit atomic_incs.stdout.exp-64bit \
97         atomic_incs.stdout.exp-64bit-and-128bit \
98         badaddrvalue.stderr.exp \
99         badaddrvalue.stdout.exp badaddrvalue.vgtest \
100         badfree-2trace.stderr.exp badfree-2trace.vgtest \
101         badfree.stderr.exp badfree.vgtest \
102         badfree3.stderr.exp badfree3.vgtest \
103         badjump.stderr.exp badjump.vgtest \
104         badjump2.stderr.exp badjump2.vgtest \
105         badjump.stderr.exp-kfail \
106         badjump2.stderr.exp-kfail \
107         badloop.stderr.exp badloop.vgtest \
108         badpoll.stderr.exp badpoll.vgtest \
109         badrw.stderr.exp badrw.vgtest badrw.stderr.exp-s390x-mvc \
110         big_blocks_freed_list.stderr.exp big_blocks_freed_list.vgtest \
111         brk2.stderr.exp brk2.vgtest \
112         buflen_check.stderr.exp buflen_check.vgtest \
113                 buflen_check.stderr.exp-kfail \
114         bug155125.stderr.exp bug155125.vgtest \
115         bug287260.stderr.exp bug287260.vgtest \
116         bug340392.stderr.exp bug340392.vgtest \
117         bug401284.stderr.exp bug401284.stdout.exp bug401284.vgtest \
118         bug464969_d_demangle.stderr.exp bug464969_d_demangle.vgtest \
119                 bug464969_d_demangle.stdout.exp \
120         bug472219.stderr.exp bug472219.vgtest \
121         calloc-overflow.stderr.exp calloc-overflow.vgtest\
122         cdebug_zlib.stderr.exp cdebug_zlib.vgtest \
123         cdebug_zlib_gnu.stderr.exp cdebug_zlib_gnu.vgtest \
124         client-msg.stderr.exp client-msg.vgtest \
125         client-msg-as-xml.stderr.exp client-msg-as-xml.vgtest \
126         clientperm.stderr.exp \
127         clientperm.stdout.exp clientperm.vgtest \
128         clireq_nofill.stderr.exp \
129         clireq_nofill.stdout.exp clireq_nofill.vgtest \
130         clo_redzone_default.vgtest clo_redzone_128.vgtest \
131         clo_redzone_default.stderr.exp clo_redzone_128.stderr.exp \
132         cond_ld.vgtest cond_ld.stdout.exp cond_ld.stderr.exp-arm \
133                 cond_ld.stderr.exp-64bit-non-arm \
134                 cond_ld.stderr.exp-32bit-non-arm \
135         cond_st.vgtest cond_st.stdout.exp cond_st.stderr.exp-arm \
136                 cond_st.stderr.exp-64bit-non-arm \
137                 cond_st.stderr.exp-32bit-non-arm \
138         leak_cpp_interior.stderr.exp leak_cpp_interior.stderr.exp-64bit leak_cpp_interior.vgtest libstdc++.supp \
139         custom_alloc.stderr.exp custom_alloc.vgtest \
140                 custom_alloc.stderr.exp-s390x-mvc \
141         custom-overlap.stderr.exp custom-overlap.vgtest \
142         cxx17_aligned_new.stderr.exp cxx17_aligned_new.vgtest \
143                 cxx17_aligned_new.stderr.exp_32 \
144                 cxx17_aligned_new.stdout.exp \
145         sized_aligned_new_delete_args.stderr.exp \
146                 sized_aligned_new_delete_args.vgtest \
147         sized_aligned_new_delete_misaligned1.stderr.exp \
148                 sized_aligned_new_delete_misaligned1.vgtest \
149         sized_aligned_new_delete_misaligned2.stderr.exp \
150                 sized_aligned_new_delete_misaligned2.vgtest \
151         sized_aligned_new_delete_misaligned3.stderr.exp \
152                 sized_aligned_new_delete_misaligned3.vgtest \
153         sized_aligned_new_delete_misaligned1_xml.stderr.exp \
154                 sized_aligned_new_delete_misaligned1_xml.vgtest \
155         sized_aligned_new_delete_misaligned2_xml.stderr.exp \
156                 sized_aligned_new_delete_misaligned2_xml.vgtest \
157         sized_aligned_new_delete_misaligned3_xml.stderr.exp \
158                 sized_aligned_new_delete_misaligned3_xml.vgtest \
159         sized_aligned_new_delete_misaligned1_supp.vgtest \
160                 sized_aligned_new_delete_misaligned1_supp.supp \
161                 sized_aligned_new_delete_misaligned1_supp.stderr.exp \
162                 sized_aligned_new_delete_misaligned1_supp.stderr.exp_32 \
163         sized_aligned_new_delete_misaligned2_supp.vgtest \
164                 sized_aligned_new_delete_misaligned2_supp.supp \
165                 sized_aligned_new_delete_misaligned2_supp.stderr.exp \
166                 sized_aligned_new_delete_misaligned2_supp.stderr.exp_32 \
167         sized_aligned_new_delete_misaligned3_supp.vgtest \
168                 sized_aligned_new_delete_misaligned3_supp.supp \
169                 sized_aligned_new_delete_misaligned3_supp.stderr.exp \
170                 sized_aligned_new_delete_misaligned3_supp.stderr.exp_32 \
171         new_aligned_delete_default.stderr.exp \
172         new_aligned_delete_default.stderr.exp_32 \
173                 new_aligned_delete_default.vgtest \
174         new_delete_mismatch_size.stderr.exp \
175                 new_delete_mismatch_size.vgtest \
176         new_delete_mismatch_size_supp.stderr.exp \
177                 new_delete_mismatch_size_supp.stderr.exp_32 \
178                 new_delete_mismatch_size_supp.vgtest \
179                 new_delete_mismatch_size_supp.supp \
180         deep-backtrace.vgtest deep-backtrace.stderr.exp \
181         demangle.stderr.exp demangle.vgtest \
182         big_debuginfo_symbol.stderr.exp big_debuginfo_symbol.vgtest \
183         describe-block.stderr.exp describe-block.vgtest \
184         descr_belowsp.vgtest descr_belowsp.stderr.exp \
185         doublefree.stderr.exp doublefree.vgtest \
186         dw4.vgtest dw4.stderr.exp dw4.stderr.exp-solaris dw4.stdout.exp \
187         err_disable1.vgtest err_disable1.stderr.exp \
188         err_disable2.vgtest err_disable2.stderr.exp \
189         err_disable3.vgtest err_disable3.stderr.exp \
190         err_disable4.vgtest err_disable4.stderr.exp \
191         err_disable_arange1.vgtest err_disable_arange1.stderr.exp \
192         erringfds.stderr.exp erringfds.stdout.exp erringfds.vgtest \
193         error_counts.stderr.exp error_counts.vgtest \
194         errs1.stderr.exp errs1.vgtest \
195         exit_on_first_error.stderr.exp \
196         exit_on_first_error.vgtest \
197         exit_on_first_error_with_xml.stderr.exp \
198         exit_on_first_error_with_xml.vgtest \
199         exitprog.stderr.exp exitprog.vgtest \
200         execve1.stderr.exp execve1.vgtest execve1.stderr.exp-kfail \
201         execve2.stderr.exp execve2.vgtest execve2.stderr.exp-kfail \
202         file_locking.stderr.exp file_locking.vgtest \
203         fprw.stderr.exp fprw.stderr.exp-freebsd fprw.stderr.exp-mips32-be \
204                 fprw.stderr.exp-mips32-le fprw.vgtest \
205                 fprw.stderr.exp-freebsd-x86 \
206         fwrite.stderr.exp fwrite.vgtest fwrite.stderr.exp-kfail \
207         gone_abrt_xml.vgtest gone_abrt_xml.stderr.exp gone_abrt_xml.stderr.exp-solaris \
208                 gone_abrt_xml.stderr.exp-freebsd \
209         holey_buffer_too_small.vgtest holey_buffer_too_small.stdout.exp \
210         holey_buffer_too_small.stderr.exp \
211         inits.stderr.exp inits.vgtest \
212         inline.stderr.exp inline.stdout.exp inline.vgtest \
213         inlinfo.stderr.exp inlinfo.stdout.exp inlinfo.vgtest \
214         inlinfosupp.stderr.exp inlinfosupp.stdout.exp inlinfosupp.supp inlinfosupp.vgtest \
215         inlinfosuppobj.stderr.exp inlinfosuppobj.stdout.exp inlinfosuppobj.supp inlinfosuppobj.vgtest \
216         inltemplate.stderr.exp inltemplate.stdout.exp inltemplate.vgtest \
217                 inltemplate.stderr.exp-old-gcc \
218         leak-0.vgtest leak-0.stderr.exp \
219         leak-cases-full.vgtest leak-cases-full.stderr.exp \
220         leak-cases-possible.vgtest leak-cases-possible.stderr.exp \
221         leak-cases-summary.vgtest leak-cases-summary.stderr.exp \
222         leak-cycle.vgtest leak-cycle.stderr.exp \
223         leak-delta.vgtest leak-delta.stderr.exp \
224         leak-pool-0.vgtest leak-pool-0.stderr.exp \
225         leak-pool-1.vgtest leak-pool-1.stderr.exp \
226         leak-pool-2.vgtest leak-pool-2.stderr.exp \
227         leak-pool-3.vgtest leak-pool-3.stderr.exp \
228         leak-pool-4.vgtest leak-pool-4.stderr.exp \
229         leak-pool-5.vgtest leak-pool-5.stderr.exp \
230         leak-autofreepool-0.vgtest leak-autofreepool-0.stderr.exp \
231         leak-autofreepool-1.vgtest leak-autofreepool-1.stderr.exp \
232         leak-autofreepool-2.vgtest leak-autofreepool-2.stderr.exp \
233         leak-autofreepool-4.vgtest leak-autofreepool-4.stderr.exp \
234         leak-autofreepool-5.vgtest leak-autofreepool-5.stderr.exp \
235         leak-autofreepool-6.vgtest leak-autofreepool-6.stderr.exp \
236         leak-autofreepool-5.stderr.exp-freebsd \
237         leak-tree.vgtest leak-tree.stderr.exp \
238         leak-segv-jmp.vgtest leak-segv-jmp.stderr.exp \
239         lks.vgtest lks.stdout.exp lks.supp lks.stderr.exp \
240         long_namespace_xml.vgtest long_namespace_xml.stdout.exp \
241         long_namespace_xml.stderr.exp \
242         long-supps.vgtest long-supps.stderr.exp long-supps.supp \
243         mallinfo.stderr.exp mallinfo.vgtest \
244         malloc_free_fill.vgtest \
245         malloc_free_fill.stderr.exp \
246         malloc_usable.stderr.exp malloc_usable.vgtest \
247         malloc1.stderr.exp malloc1.vgtest \
248         malloc1_ks_none.stderr.exp malloc1_ks_none.vgtest \
249         malloc1_ks_alloc.stderr.exp malloc1_ks_alloc.vgtest \
250         malloc1_ks_free.stderr.exp malloc1_ks_free.vgtest \
251         malloc1_ks_alloc_and_free.stderr.exp malloc1_ks_alloc_and_free.vgtest \
252         malloc2.stderr.exp malloc2.vgtest \
253         malloc3.stderr.exp malloc3.stdout.exp malloc3.vgtest \
254         manuel1.stderr.exp manuel1.stdout.exp manuel1.vgtest \
255                 manuel1.stderr.exp-freebsd-clang \
256         manuel2.stderr.exp manuel2.stderr.exp64 manuel2.stdout.exp \
257                 manuel2.vgtest \
258         manuel3.stderr.exp manuel3.vgtest \
259         match-overrun.stderr.exp match-overrun.vgtest match-overrun.supp \
260         memalign_test.stderr.exp memalign_test.vgtest \
261         memalign_args.vgtest memalign_args.stderr.exp \
262                 memalign_args.stderr.exp-glibc \
263                 memalign_args.stderr.exp-darwin \
264                 memalign_args.stderr.exp-solaris \
265         memcmptest.stderr.exp memcmptest.stderr.exp2 \
266         memcmptest.stdout.exp memcmptest.vgtest \
267         memmem.stderr.exp memmem.vgtest \
268         mempool.stderr.exp mempool.vgtest \
269         mempool2.stderr.exp mempool2.vgtest \
270         metadata.stderr.exp metadata.stdout.exp metadata.vgtest \
271         mismatches.stderr.exp mismatches.vgtest \
272                 mismatches.stderr.exp2 \
273         mismatches_xml.stderr.exp mismatches_xml.vgtest \
274                 mismatches_xml.stderr.exp2 \
275         mmaptest.stderr.exp mmaptest.vgtest \
276         nanoleak_supp.stderr.exp nanoleak_supp.vgtest nanoleak.supp \
277         nanoleak_dynsupp.stderr.exp nanoleak_dynsupp.vgtest \
278         nanoleak2.stderr.exp nanoleak2.vgtest \
279         new_nothrow.stderr.exp new_nothrow.vgtest \
280         new_override.stderr.exp new_override.stdout.exp new_override.vgtest \
281         noisy_child.vgtest noisy_child.stderr.exp noisy_child.stdout.exp \
282         null_socket.stderr.exp null_socket.vgtest \
283         origin1-yes.vgtest origin1-yes.stdout.exp origin1-yes.stderr.exp \
284                 origin1-yes.stderr.exp-freebsd \
285         origin2-not-quite.vgtest origin2-not-quite.stdout.exp \
286         origin2-not-quite.stderr.exp \
287                 origin2-not-quite.stderr.exp-freebsd \
288         origin3-no.vgtest origin3-no.stdout.exp \
289                 origin3-no.stderr.exp-freebsd \
290         origin3-no.stderr.exp \
291         origin4-many.vgtest origin4-many.stdout.exp \
292         origin4-many.stderr.exp \
293         origin5-bz2.vgtest origin5-bz2.stdout.exp \
294         origin5-bz2.stderr.exp-glibc25-x86 \
295         origin5-bz2.stderr.exp-glibc25-amd64 \
296         origin5-bz2.stderr.exp-glibc25-amd64-b \
297         origin5-bz2.stderr.exp-glibc25-x86-b \
298         origin5-bz2.stderr.exp-glibc27-ppc64 \
299         origin5-bz2.stderr.exp-glibc212-s390x \
300         origin5-bz2.stderr.exp-glibc234-s390x \
301         origin5-bz2.stderr.exp-glibc218-mips32 \
302         origin6-fp.vgtest origin6-fp.stdout.exp \
303         origin6-fp.stderr.exp-glibc25-amd64 \
304         origin6-fp.stderr.exp-glibc27-ppc64 \
305         overlap.stderr.exp overlap.stdout.exp overlap.vgtest \
306         partiallydefinedeq.vgtest partiallydefinedeq.stderr.exp \
307         partiallydefinedeq.stderr.exp4 \
308         partiallydefinedeq.stderr.exp3 \
309         partiallydefinedeq.stderr.exp2 \
310         partiallydefinedeq.stdout.exp \
311         partial_load_ok.vgtest partial_load_ok.stderr.exp \
312                 partial_load_ok.stderr.exp64 \
313                 partial_load_ok.stderr.exp-ppc64 \
314         partial_load_dflt.vgtest partial_load_dflt.stderr.exp \
315                 partial_load_dflt.stderr.exp64 \
316                 partial_load_dflt.stderr.exp-ppc64 \
317         partial_load_dflt.stderr.expr-s390x-mvc \
318         pdb-realloc.stderr.exp pdb-realloc.vgtest \
319         pdb-realloc2.stderr.exp pdb-realloc2.stdout.exp pdb-realloc2.vgtest \
320         pipe.stderr.exp pipe.vgtest \
321         pointer-trace.vgtest \
322         pointer-trace.stderr.exp \
323         posix_memalign.stderr.exp posix_memalign.vgtest \
324                 posix_memalign.stderr.exp-darwin \
325         posix_memalign_supp.stderr.exp posix_memalign_supp.vgtest \
326                 posix_memalign_supp.supp \
327         posix_memalign_xml.stderr.exp posix_memalign_xml.vgtest \
328         post-syscall.stderr.exp post-syscall.vgtest \
329         reach_thread_register.stderr.exp reach_thread_register.vgtest \
330                 reach_thread_register.stderr.exp-mips32 \
331                 reach_thread_register.stderr.exp-mips64 \
332         realloc_size_zero.stderr.exp realloc_size_zero.stdout.exp-glibc \
333                 realloc_size_zero.stdout.exp-other \
334                 realloc_size_zero.vgtest \
335         realloc_size_zero_yes.stderr.exp realloc_size_zero_yes.stdout.exp \
336                 realloc_size_zero_yes.vgtest \
337         realloc_size_zero_again_yes.stderr.exp \
338                 realloc_size_zero_again_yes.stdout.exp \
339                 realloc_size_zero_again_yes.vgtest \
340         realloc_size_zero_no.stderr.exp realloc_size_zero_no.stdout.exp \
341                 realloc_size_zero_no.vgtest \
342         realloc_size_zero_again_no.stderr.exp \
343                 realloc_size_zero_again_no.stdout.exp \
344                 realloc_size_zero_again_no.vgtest \
345         realloc_size_zero_off.stderr.exp realloc_size_zero_off.stdout.exp \
346                 realloc_size_zero_off.vgtest \
347         realloc_size_zero_mismatch.stderr.exp \
348                 realloc_size_zero_mismatch.stdout.exp \
349                 realloc_size_zero_mismatch.vgtest \
350         realloc_size_zero_supp.stderr.exp realloc_size_zero_supp.stdout.exp \
351                 realloc_size_zero_supp.vgtest \
352                 realloc_size_zero.supp \
353         realloc1.stderr.exp realloc1.vgtest \
354         realloc2.stderr.exp realloc2.vgtest \
355         realloc3.stderr.exp realloc3.vgtest \
356         recursive-merge.stderr.exp recursive-merge.vgtest \
357         resvn_stack.stderr.exp resvn_stack.vgtest \
358         demangle-rust.vgtest demangle-rust.stderr.exp \
359         sbfragment.stdout.exp sbfragment.stderr.exp sbfragment.vgtest \
360         sem.stderr.exp sem.vgtest \
361         sendmsg.stderr.exp sendmsg.stderr.exp-solaris sendmsg.vgtest \
362             sendmsg.stderr.exp-freebsd \
363             sendmsg.stderr.exp-freebsd-x86 \
364         sh-mem.stderr.exp sh-mem.vgtest \
365         sh-mem-random.stderr.exp sh-mem-random.stdout.exp64 \
366         sh-mem-random.stdout.exp sh-mem-random.vgtest \
367         sigaltstack.stderr.exp sigaltstack.vgtest \
368         sigkill.stderr.exp sigkill.stderr.exp-darwin sigkill.stderr.exp-freebsd sigkill.stderr.exp-mips32 \
369             sigkill.stderr.exp-solaris \
370             sigkill.stderr.exp-glibc-2.28 sigkill.vgtest \
371         signal2.stderr.exp signal2.stdout.exp signal2.vgtest \
372         sigprocmask.stderr.exp sigprocmask.stderr.exp2 sigprocmask.vgtest \
373         sized_delete.stderr.exp sized_delete.stderr.exp-x86 sized_delete.vgtest \
374         static_malloc.stderr.exp static_malloc.vgtest \
375         stpncpy.vgtest stpncpy.stderr.exp stpncpy.stdout.exp \
376         strchr.stderr.exp strchr.stderr.exp2 strchr.stderr.exp3 strchr.vgtest \
377         str_tester.stderr.exp str_tester.vgtest \
378         supp-dir.vgtest supp-dir.stderr.exp \
379         supp_unknown.stderr.exp supp_unknown.vgtest supp_unknown.supp \
380         supp_unknown.stderr.exp-kfail \
381         supp1.stderr.exp supp1.vgtest \
382         supp2.stderr.exp supp2.vgtest \
383         supp.supp \
384         suppfree.stderr.exp suppfree.supp suppfree.vgtest \
385         suppfreecollision.stderr.exp suppfreecollision.supp suppfreecollision.vgtest \
386         supponlyobj.stderr.exp supponlyobj.supp supponlyobj.vgtest \
387         suppsrc_lineno.stderr.exp suppsrc_lineno.stdout.exp suppsrc_lineno.vgtest \
388         suppsrc_lineno.supp \
389         suppsrc_sanlineno.stderr.exp suppsrc_sanlineno.stdout.exp suppsrc_sanlineno.vgtest \
390         suppsrc_sanlineno.supp \
391         suppvarinfo5.stderr.exp suppvarinfo5.supp suppvarinfo5.vgtest \
392         test-plo-no.vgtest test-plo-no.stdout.exp \
393             test-plo-no.stderr.exp-le64 test-plo-no.stderr.exp-le32 \
394             test-plo-no.stderr.exp-le32-freebsd test-plo-no.stderr.exp-le64-freebsd \
395             test-plo-no.stderr.exp-le32-freebsd-clang \
396         test-plo-yes.vgtest test-plo-yes.stdout.exp \
397             test-plo-yes.stderr.exp-le64 test-plo-yes.stderr.exp-le32 \
398             test-plo-no.stderr.exp-s390x-mvc \
399         thread_alloca.stderr.exp thread_alloca.vgtest \
400         threadname.vgtest threadname.stderr.exp \
401         threadname_xml.vgtest threadname_xml.stderr.exp \
402         trivialleak.stderr.exp trivialleak.vgtest trivialleak.stderr.exp2 \
403         undef_malloc_args.stderr.exp undef_malloc_args.vgtest \
404         unit_libcbase.stderr.exp unit_libcbase.vgtest \
405         unit_oset.stderr.exp unit_oset.stdout.exp unit_oset.vgtest \
406         varinfo1.vgtest varinfo1.stdout.exp varinfo1.stderr.exp \
407                 varinfo1.stderr.exp-ppc64 \
408                 varinfo1.stderr.exp-freebsd \
409         varinfo2.vgtest varinfo2.stdout.exp varinfo2.stderr.exp \
410                 varinfo2.stderr.exp-ppc64 \
411         varinfo3.vgtest varinfo3.stdout.exp varinfo3.stderr.exp \
412                 varinfo3.stderr.exp-ppc64 \
413                 varinfo3.stderr.exp-freebsd \
414         varinfo4.vgtest varinfo4.stdout.exp varinfo4.stderr.exp \
415                 varinfo4.stderr.exp-ppc64 \
416                 varinfo4.stderr.exp-freebsd \
417         varinfo5.vgtest varinfo5.stdout.exp varinfo5.stderr.exp \
418                 varinfo5.stderr.exp-ppc64 \
419                 varinfo5.stderr.exp-freebsd \
420         varinfo6.vgtest varinfo6.stdout.exp varinfo6.stderr.exp \
421                 varinfo6.stderr.exp-ppc64 \
422         varinforestrict.vgtest varinforestrict.stderr.exp \
423         vcpu_bz2.stdout.exp vcpu_bz2.stderr.exp vcpu_bz2.vgtest \
424         vcpu_fbench.stdout.exp vcpu_fbench.stderr.exp vcpu_fbench.vgtest \
425         vcpu_fnfns.stdout.exp vcpu_fnfns.stdout.exp-glibc28-amd64 \
426         vcpu_fnfns.stdout.exp-darwin vcpu_fnfns.stdout.exp-solaris \
427         vcpu_fnfns.stderr.exp vcpu_fnfns.vgtest \
428         wcs.vgtest wcs.stderr.exp wcs.stdout.exp \
429         wcsncpy.vgtest wcsncpy.stderr.exp \
430         wmemcmp.vgtest wmemcmp.stderr.exp \
431         wrap1.vgtest wrap1.stdout.exp wrap1.stderr.exp \
432         wrap2.vgtest wrap2.stdout.exp wrap2.stderr.exp \
433         wrap3.vgtest wrap3.stdout.exp wrap3.stderr.exp \
434         wrap4.vgtest wrap4.stdout.exp wrap4.stderr.exp \
435         wrap5.vgtest wrap5.stdout.exp wrap5.stderr.exp \
436         wrap6.vgtest wrap6.stdout.exp wrap6.stderr.exp \
437         wrap7.vgtest wrap7.stdout.exp wrap7.stderr.exp \
438         wrap8.vgtest wrap8.stdout.exp wrap8.stderr.exp \
439         wrap8.stdout.exp-ppc64 wrap8.stderr.exp-ppc64 \
440         wrapmalloc.vgtest wrapmalloc.stdout.exp wrapmalloc.stderr.exp \
441         wrapmallocstatic.vgtest wrapmallocstatic.stdout.exp \
442         wrapmallocstatic.stderr.exp \
443         writev1.stderr.exp writev1.stderr.exp-solaris writev1.vgtest \
444         xml1.stderr.exp xml1.stdout.exp xml1.vgtest xml1.stderr.exp-s390x-mvc \
445         leak_cpp_interior.stderr.exp-freebsd leak_cpp_interior.stderr.exp-freebsd-32bit
447 check_PROGRAMS = \
448         accounting \
449         addressable \
450         atomic_incs \
451         badaddrvalue badfree badjump badjump2 \
452         badloop \
453         badpoll \
454         badrw \
455         big_blocks_freed_list \
456         brk2 \
457         buflen_check \
458         bug155125 \
459         bug287260 \
460         bug340392 \
461         bug401284 \
462         bug464969_d_demangle \
463         bug472219 \
464         calloc-overflow \
465         client-msg \
466         clientperm \
467         clireq_nofill \
468         clo_redzone \
469         cond_ld_st \
470         descr_belowsp \
471         leak_cpp_interior \
472         custom_alloc \
473         custom-overlap \
474         demangle \
475         demangle-rust \
476         big_debuginfo_symbol \
477         deep-backtrace \
478         describe-block \
479         doublefree error_counts errs1 exitprog execve1 execve2 erringfds \
480         err_disable1 err_disable2 err_disable3 err_disable4 \
481         err_disable_arange1 \
482         file_locking \
483         fprw fwrite inits inline inlinfo inltemplate \
484         holey_buffer_too_small \
485         leak-0 \
486         leak-cases \
487         leak-cycle \
488         leak-delta \
489         leak-pool \
490         leak-autofreepool \
491         leak-tree \
492         leak-segv-jmp \
493         long-supps \
494         mallinfo \
495         malloc_free_fill \
496         malloc_usable malloc1 malloc2 malloc3 manuel1 manuel2 manuel3 \
497         match-overrun \
498         memalign_test  memcmptest mempool mempool2 mmaptest \
499         memalign_args \
500         memmem \
501         mismatches new_override metadata \
502         nanoleak_supp nanoleak2 new_nothrow \
503         noisy_child \
504         null_socket \
505         origin1-yes origin2-not-quite origin3-no \
506         origin4-many origin5-bz2 origin6-fp \
507         overlap \
508         partiallydefinedeq \
509         partial_load pdb-realloc pdb-realloc2 \
510         pipe pointer-trace \
511         posix_memalign \
512         post-syscall \
513         realloc_size_zero realloc_size_zero_mismatch \
514         realloc_size_zero_again \
515         realloc1 realloc2 realloc3 \
516         recursive-merge \
517         resvn_stack \
518         sbfragment \
519         sendmsg \
520         sh-mem sh-mem-random \
521         sigaltstack signal2 sigprocmask static_malloc sigkill \
522         strchr \
523         str_tester \
524         supp_unknown supp1 supp2 suppfree \
525         test-plo \
526         trivialleak \
527         thread_alloca \
528         undef_malloc_args \
529         unit_libcbase unit_oset \
530         varinfo1 varinfo2 varinfo3 varinfo4 \
531         varinfo5 varinfo5so.so varinfo6 \
532         varinforestrict \
533         vcpu_fbench vcpu_fnfns \
534         wcs \
535         xml1 \
536         wmemcmp \
537         wrap1 wrap2 wrap3 wrap4 wrap5 wrap6 wrap7 wrap7so.so wrap8 \
538         wrapmalloc wrapmallocso.so wrapmallocstatic \
539         writev1
541 if !SOLARIS_SUN_STUDIO_AS
542 # Sun Studio assembler fails on "IDENT too long"
543 check_PROGRAMS += long_namespace_xml
544 endif
546 if DWARF4
547 check_PROGRAMS += dw4
548 endif
550 bug464969_d_demangle_SOURCES = bug464969_d_demangle.cpp
551 bug464969_d_demangle_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
553 if GZ_ZLIB
554 check_PROGRAMS += cdebug_zlib
555 cdebug_zlib_SOURCES = cdebug.c
556 cdebug_zlib_CFLAGS = $(AM_CFLAGS) -g -gz=zlib @FLAG_W_NO_UNINITIALIZED@
557 endif
559 if GZ_ZLIB_GNU
560 check_PROGRAMS += cdebug_zlib_gnu
561 cdebug_zlib_gnu_SOURCES = cdebug.c
562 cdebug_zlib_gnu_CFLAGS = $(AM_CFLAGS) -g -gz=zlib-gnu @FLAG_W_NO_UNINITIALIZED@
563 endif
565 if HAVE_ALIGNED_CXX_ALLOC
566 check_PROGRAMS += cxx17_aligned_new sized_aligned_new_delete_args \
567         new_aligned_delete_default \
568         sized_aligned_new_delete_misaligned1 \
569         sized_aligned_new_delete_misaligned2 \
570         sized_aligned_new_delete_misaligned3
571 endif
573 if HAVE_PTHREAD_BARRIER
574 check_PROGRAMS += reach_thread_register
575 endif
577 if HAVE_FSIZED_DEALLOCATION
578 check_PROGRAMS += sized_delete new_delete_mismatch_size
579 endif
581 if HAVE_GNU_STPNCPY
582 check_PROGRAMS += stpncpy
583 endif
585 if HAVE_PTHREAD_SETNAME_NP
586 check_PROGRAMS += threadname 
587 endif
589 # are there still pre-C99 C compilers?
590 if HAVE_WCSNCPY
591 check_PROGRAMS += wcsncpy
592 endif
594 AM_CFLAGS   += $(AM_FLAG_M3264_PRI)
595 AM_CXXFLAGS += $(AM_FLAG_M3264_PRI)
597 if VGCONF_PLATFORMS_INCLUDE_ARM_LINUX
598 #AM_CFLAGS   += -mfloat-abi=softfp
599 #AM_CXXFLAGS += -mfloat-abi=softfp
600 endif
602 if VGCONF_OS_IS_DARWIN
603 atomic_incs_CFLAGS = $(AM_CFLAGS) -mdynamic-no-pic
604 else
605 atomic_incs_CFLAGS = $(AM_CFLAGS)
606 endif
608 badpoll_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@
609 badrw_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
610 big_blocks_freed_list_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
612 if VGCONF_OS_IS_SOLARIS
613 buflen_check_LDADD      = -lsocket -lnsl
614 endif
616 leak_cpp_interior_SOURCES       = leak_cpp_interior.cpp
618 # Suppress various gcc warnings which are correct, but for things
619 # we are actually testing for at runtime.
620 accounting_CFLAGS       = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
621 badfree_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_FREE_NONHEAP_OBJECT@
622 bug155125_CFLAGS        = $(AM_CFLAGS) -Wno-unused-result @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
623 bug472219_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
624 mallinfo_CFLAGS         = $(AM_CFLAGS) -Wno-deprecated-declarations
625 malloc3_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_ALLOC_SIZE_LARGER_THAN@
626 sbfragment_CFLAGS       = $(AM_CFLAGS) -Wno-deprecated-declarations
627 strchr_CFLAGS           = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
629 big_debuginfo_symbol_SOURCES = big_debuginfo_symbol.cpp
630 big_debuginfo_symbol_CXXFLAGS = $(AM_CXXFLAGS) -std=c++0x
632 bug340392_CFLAGS        = $(AM_CFLAGS) -O3 @FLAG_W_NO_MAYBE_UNINITIALIZED@
634 if HAVE_ALIGNED_CXX_ALLOC
635 cxx17_aligned_new_SOURCES  = cxx17_aligned_new.cpp
636 cxx17_aligned_new_CXXFLAGS = -std=c++17 @FLAG_W_NO_MISMATCHED_NEW_DELETE@
637 new_aligned_delete_default_SOURCES = new_aligned_delete_default.cpp
638 new_aligned_delete_default_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
639 sized_aligned_new_delete_args_SOURCES = sized_aligned_new_delete_args.cpp
640 sized_aligned_new_delete_args_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
641 sized_aligned_new_delete_misaligned1_SOURCES = sized_aligned_new_delete_misaligned1.cpp
642 sized_aligned_new_delete_misaligned1_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17
643 sized_aligned_new_delete_misaligned2_SOURCES = sized_aligned_new_delete_misaligned2.cpp
644 sized_aligned_new_delete_misaligned2_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
645 sized_aligned_new_delete_misaligned3_SOURCES = sized_aligned_new_delete_misaligned3.cpp
646 sized_aligned_new_delete_misaligned3_CXXFLAGS = ${AM_CXXFLAGS} -std=c++17 @FLAG_W_NO_UNUSED_VARIABLE@
647 if COMPILER_IS_CLANG
648 cxx17_aligned_new_CXXFLAGS += -fsized-deallocation
649 sized_aligned_new_delete_args_CXXFLAGS += -fsized-deallocation
650 sized_aligned_new_delete_misaligned1_CXXFLAGS += -fsized-deallocation
651 sized_aligned_new_delete_misaligned2_CXXFLAGS += -fsized-deallocation
652 sized_aligned_new_delete_misaligned3_CXXFLAGS += -fsized-deallocation
653 endif
654 endif
656 demangle_SOURCES = demangle.cpp
657 demangle_rust_SOURCES = demangle-rust.c
658 demangle_rust_CFLAGS    = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
659 dw4_CFLAGS              = $(AM_CFLAGS) -gdwarf-4 -fdebug-types-section
661 descr_belowsp_LDADD     = -lpthread
662 err_disable3_LDADD      = -lpthread
663 err_disable4_LDADD      = -lpthread
664 err_disable4_CFLAGS     = $(AM_CFLAGS)
665 if VGCONF_OS_IS_SOLARIS
666 err_disable4_CFLAGS     += -D_XOPEN_SOURCE=600
667 endif
669 error_counts_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_UNUSED_BUT_SET_VARIABLE@
671 execve1_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
673 execve2_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_NONNULL@
675 fprw_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_FREE_NONHEAP_OBJECT@ @FLAG_W_NO_USE_AFTER_FREE@
677 inits_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
679 inlinfo_CFLAGS = $(AM_CFLAGS) -w
681 inltemplate_SOURCES = inltemplate.cpp
682 inltemplate_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_UNINITIALIZED@
684 long_namespace_xml_SOURCES = long_namespace_xml.cpp
686 malloc_free_fill_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
687 malloc1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
688 manuel1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
689 manuel3_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
691 memalign2_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_NON_POWER_OF_TWO_ALIGNMENT@
692 if VGCONF_OS_IS_SOLARIS
693 memalign2_CFLAGS        += -D__EXTENSIONS__
694 endif
696 memcmptest_CFLAGS       = $(AM_CFLAGS) -fno-builtin-memcmp
698 mismatches_SOURCES      = mismatches.cpp
699 mismatches_CXXFLAGS     = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
701 if HAVE_FSIZED_DEALLOCATION
702 new_delete_mismatch_size_SOURCES   = new_delete_mismatch_size.cpp
703 new_delete_mismatch_size_CXXFLAGS  = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@ -std=c++17
704 endif
706 new_nothrow_SOURCES     = new_nothrow.cpp
707 new_override_SOURCES    = new_override.cpp
709 noisy_child_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
711 if VGCONF_OS_IS_SOLARIS
712 null_socket_LDADD       = -lsocket -lnsl
713 endif
715 origin1_yes_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
717 origin2_not_quite_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
719 origin3_no_CFLAGS = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
721 # This requires optimisation in order to get just one resulting error.
722 origin4_many_CFLAGS     = $(AM_CFLAGS) -O @FLAG_W_NO_USE_AFTER_FREE@ @FLAG_W_NO_UNINITIALIZED@
724 # Apply -O so as to run in reasonable time.
725 origin5_bz2_CFLAGS      = $(AM_CFLAGS) -O -Wno-inline
726 origin6_fp_CFLAGS       = $(AM_CFLAGS) -O
728 # Don't allow GCC to inline memcpy() and strcpy(),
729 # because then we can't intercept it
730 overlap_CFLAGS          = $(AM_CFLAGS) -fno-builtin-memcpy -fno-builtin-strcpy \
731                           @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
733 partial_load_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
734 reach_thread_register_CFLAGS    = $(AM_CFLAGS) -O2
735 reach_thread_register_LDADD     = -lpthread
737 realloc_size_zero_CFLAGS        = $(AM_CFLAGS) @FLAG_W_NO_INCOMPATIBLE_POINTER_TYPES_DISCARDS_QUALIFIERS@
738 realloc_size_zero_mismatch_SOURCES = realloc_size_zero_mismatch.cpp
739 realloc_size_zero_mismatch_CXXFLAGS = $(AM_CXXFLAGS) @FLAG_W_NO_MISMATCHED_NEW_DELETE@
741 resvn_stack_CFLAGS      = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
743 sendmsg_CFLAGS          = $(AM_CFLAGS)
744 if VGCONF_OS_IS_SOLARIS
745 sendmsg_CFLAGS          += -D_XOPEN_SOURCE=600
746 sendmsg_LDADD           = -lsocket -lnsl
747 endif
749 if HAVE_FSIZED_DEALLOCATION
750 sized_delete_SOURCES   = sized_delete.cpp
751 sized_delete_CXXFLAGS  = $(AM_CXXFLAGS) @FLAG_FSIZED_DEALLOCATION@
752 endif
754 str_tester_CFLAGS       = $(AM_CFLAGS) -Wno-shadow @FLAG_W_NO_STRINGOP_OVERFLOW@ \
755                           @FLAG_W_NO_STRINGOP_TRUNCATION@ \
756                           @FLAG_W_NO_FORTIFY_SOURCE@ @FLAG_W_NO_SUSPICIOUS_BZERO@ \
757                           @FLAG_W_NO_MEMSET_TRANSPOSED_ARGS@ @FLAG_W_NO_STRINGOP_OVERREAD@ \
758                           @FLAG_W_NO_BUILTIN_MEMCPY_CHK_SIZE@
760 supp_CFLAGS             = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
762 supp_unknown_SOURCES    = badjump.c
763 supp_unknown_CFLAGS     = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
765 supp1_SOURCES           = supp.c
766 supp1_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
768 supp2_SOURCES           = supp.c
769 supp2_CFLAGS            = $(AM_CFLAGS) @FLAG_W_NO_UNINITIALIZED@
771 suppfree_CFLAGS         = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
772 test_plo_CFLAGS         = $(AM_CFLAGS) @FLAG_W_NO_USE_AFTER_FREE@
774 thread_alloca_CFLAGS    = $(AM_CFLAGS) @FLAG_W_NO_FORMAT_OVERFLOW@
775 thread_alloca_LDADD     = -lpthread
776 threadname_LDADD        = -lpthread
778 vcpu_bz2_CFLAGS         = $(AM_CFLAGS) -O2
779 vcpu_fbench_CFLAGS      = $(AM_CFLAGS) -O2
780 vcpu_fnfns_CFLAGS       = $(AM_CFLAGS) -O2
781 vcpu_fnfns_LDADD        = -lm
782 wrap6_CFLAGS            = $(AM_CFLAGS) -O2
784 # To make it a bit more realistic, have some optimisation enabled
785 # for the varinfo tests.  We still expect sane results.
786 varinfo1_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
787 varinfo2_CFLAGS         = $(AM_CFLAGS) -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
788 varinfo3_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
789 varinfo4_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
790 varinfo5_CFLAGS         = $(AM_CFLAGS) -O
791 varinfo6_CFLAGS         = $(AM_CFLAGS) -O @FLAG_W_NO_MAYBE_UNINITIALIZED@
793 # Build shared object for varinfo5
794 varinfo5_SOURCES        = varinfo5.c
795 varinfo5_DEPENDENCIES   = varinfo5so.so
796 if VGCONF_OS_IS_DARWIN
797  varinfo5_LDADD         = `pwd`/varinfo5so.so
798  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI)
799 else
800  varinfo5_LDADD         = varinfo5so.so
801  varinfo5_LDFLAGS       = $(AM_FLAG_M3264_PRI) \
802                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
803 endif
805 varinfo5so_so_SOURCES   = varinfo5so.c
806 varinfo5so_so_CFLAGS    = $(AM_CFLAGS) -fpic -O -Wno-shadow @FLAG_W_NO_MAYBE_UNINITIALIZED@
807 if VGCONF_OS_IS_DARWIN
808  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
809                                 -dynamiclib -all_load
810 else
811  varinfo5so_so_LDFLAGS  = -fpic $(AM_FLAG_M3264_PRI) -shared \
812                                 -Wl,-soname -Wl,varinfo5so.so
813 endif
814 varinforestrict_CFLAGS  = $(AM_CFLAGS) -O0 -g @FLAG_W_NO_MAYBE_UNINITIALIZED@
816 # Build shared object for wrap7
817 wrap7_SOURCES           = wrap7.c
818 wrap7_DEPENDENCIES      = wrap7so.so
819 if VGCONF_OS_IS_DARWIN
820  wrap7_LDADD            = `pwd`/wrap7so.so
821  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI)
822 else
823  wrap7_LDADD            = wrap7so.so
824  wrap7_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
825                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
826 endif
828 wrap7so_so_SOURCES      = wrap7so.c
829 wrap7so_so_CFLAGS       = $(AM_CFLAGS) -fpic
830 if VGCONF_OS_IS_DARWIN
831  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
832                                 -dynamiclib -all_load
833 else
834  wrap7so_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
835                                 -Wl,-soname -Wl,wrap7so.so
836 endif
838 # Build shared object for wrapmalloc
839 wrapmalloc_SOURCES           = wrapmalloc.c
840 wrapmalloc_DEPENDENCIES      = wrapmallocso.so
841 if VGCONF_OS_IS_DARWIN
842  wrapmalloc_LDADD            = `pwd`/wrapmallocso.so
843  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI)
844 else
845  wrapmalloc_LDADD            = wrapmallocso.so
846  wrapmalloc_LDFLAGS          = $(AM_FLAG_M3264_PRI) \
847                                 -Wl,-rpath,$(top_builddir)/memcheck/tests
848 endif
850 wrapmallocso_so_SOURCES      = wrapmallocso.c
851 wrapmallocso_so_CFLAGS       = $(AM_CFLAGS) -fpic
852 if VGCONF_OS_IS_DARWIN
853  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -dynamic \
854                                 -dynamiclib -all_load
855 else
856  wrapmallocso_so_LDFLAGS     = -fpic $(AM_FLAG_M3264_PRI) -shared \
857                                 -Wl,-soname -Wl,wrapmallocso.so
858 endif
860 writev1_CFLAGS          = $(AM_CFLAGS) @FLAG_W_NO_STRINGOP_OVERFLOW@ @FLAG_W_NO_STRINGOP_OVERREAD@
861 xml1_CFLAGS             = $(AM_CFLAGS) -D_GNU_SOURCE @FLAG_W_NO_UNINITIALIZED@ @FLAG_W_NO_USE_AFTER_FREE@