From 1861523da54dbb1dac823f754156e7e67f2768cb Mon Sep 17 00:00:00 2001 From: Douglas Gilbert Date: Sat, 2 Jul 2022 03:50:07 +0000 Subject: 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 --- testing/Makefile | 7 ++++--- testing/sgh_dd.cpp | 3 ++- 2 files changed, 6 insertions(+), 4 deletions(-) (limited to 'testing') 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 #include -#include // C++ header replacing +#include // C++ header replacing also link + // needed '-l atomic' . Not anymore?? #include #include // needed for std::this_thread::yield() #include -- cgit v1.2.3