aboutsummaryrefslogtreecommitdiff
path: root/testing
diff options
context:
space:
mode:
authorDouglas Gilbert <dgilbert@interlog.com>2022-07-02 03:50:07 +0000
committerDouglas Gilbert <dgilbert@interlog.com>2022-07-02 03:50:07 +0000
commit1861523da54dbb1dac823f754156e7e67f2768cb (patch)
tree6328e513623a1dd3f9409ee050d656016d1013e2 /testing
parent30842a3103045e471ec8169f09135bb6766e5e1d (diff)
downloadsg3_utils-1861523da54dbb1dac823f754156e7e67f2768cb.tar.gz
sg3_utils.spec: change tarball extension from .tgz to .tar.gz ; fix build issue with Fedora 36; minor work
git-svn-id: https://svn.bingwo.ca/repos/sg3_utils/trunk@957 6180dd3e-e324-4e3e-922d-17de1ae2f315
Diffstat (limited to 'testing')
-rw-r--r--testing/Makefile7
-rw-r--r--testing/sgh_dd.cpp3
2 files changed, 6 insertions, 4 deletions
diff --git a/testing/Makefile b/testing/Makefile
index 2343cdee..34914916 100644
--- a/testing/Makefile
+++ b/testing/Makefile
@@ -111,14 +111,15 @@ sg_tst_context: sg_tst_context.o $(LIBFILESNEW)
sg_tst_async: sg_tst_async.o $(LIBFILESNEW)
$(CXXLD) -o $@ $(LDFLAGS) -pthread $^
+# Next three used to require '-latomic', may not anymore
sgh_dd: sgh_dd.o $(LIBFILESNEW)
- $(CXXLD) -o $@ $(LDFLAGS) -pthread -latomic $^
+ $(CXXLD) -o $@ $(LDFLAGS) -pthread $^
sg_mrq_dd: sg_mrq_dd.o sg_scat_gath.o $(LIBFILESNEW)
- $(CXXLD) -o $@ $(LDFLAGS) -pthread -latomic $^
+ $(CXXLD) -o $@ $(LDFLAGS) -pthread $^
sg_iovec_tst: sg_iovec_tst.o sg_scat_gath.o $(LIBFILESNEW)
- $(CXXLD) -o $@ $(LDFLAGS) -pthread -latomic $^
+ $(CXXLD) -o $@ $(LDFLAGS) -pthread $^
sg_take_snap: sg_take_snap.o $(LIBFILESNEW)
$(LD) -o $@ $(LDFLAGS) $^
diff --git a/testing/sgh_dd.cpp b/testing/sgh_dd.cpp
index 0985449a..6f8a3ecd 100644
--- a/testing/sgh_dd.cpp
+++ b/testing/sgh_dd.cpp
@@ -71,7 +71,8 @@ static const char * version_str = "2.20 20220616";
#include <vector>
#include <array>
-#include <atomic> // C++ header replacing <stdatomic.h>
+#include <atomic> // C++ header replacing <stdatomic.h> also link
+ // needed '-l atomic' . Not anymore??
#include <random>
#include <thread> // needed for std::this_thread::yield()
#include <mutex>