summaryrefslogtreecommitdiff
path: root/unittest
diff options
context:
space:
mode:
authorGeorgi Kodinov <joro@sun.com>2009-10-04 12:15:05 +0300
committerGeorgi Kodinov <joro@sun.com>2009-10-04 12:15:05 +0300
commit370acc8b56a554f236c2f63b9057f3b5155955c4 (patch)
tree3c812f47a49f17f16d78645621786d485d0b4432 /unittest
parent91178418a2bfd21852ae03fbcc5a9aa4c26429c6 (diff)
parentd609fdf98beb8e22c8da42079e08e5dd1f84e16c (diff)
downloadmariadb-git-370acc8b56a554f236c2f63b9057f3b5155955c4.tar.gz
automerge
Diffstat (limited to 'unittest')
-rw-r--r--unittest/mysys/Makefile.am11
1 files changed, 9 insertions, 2 deletions
diff --git a/unittest/mysys/Makefile.am b/unittest/mysys/Makefile.am
index be91ef31c9d..f0ffc7a6720 100644
--- a/unittest/mysys/Makefile.am
+++ b/unittest/mysys/Makefile.am
@@ -1,4 +1,4 @@
-# Copyright (C) 2006 MySQL AB
+# Copyright (C) 2009 Sun Microsystems, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
@@ -21,7 +21,14 @@ LDADD = $(top_builddir)/unittest/mytap/libmytap.a \
$(top_builddir)/dbug/libdbug.a \
$(top_builddir)/strings/libmystrings.a
-noinst_PROGRAMS = bitmap-t base64-t my_atomic-t
+noinst_PROGRAMS = bitmap-t base64-t
+
+if NEED_THREAD
+# my_atomic-t is used to check thread functions, so it is safe to
+# ignore the file in non-threaded builds.
+# In fact, it will not compile without thread support.
+noinst_PROGRAMS += my_atomic-t
+endif
# Don't update the files from bitkeeper
%::SCCS/s.%