49 lines
1.1 KiB
Diff
49 lines
1.1 KiB
Diff
--- a/test/Makefile
|
|
+++ b/test/Makefile
|
|
@@ -34,24 +34,12 @@
|
|
# #######################################################################
|
|
LIB = ../src
|
|
|
|
-LDFLAGS = $(LIB)/libqatseqprod.a -I$(LIB)
|
|
+LDFLAGS = -L$(LIB) -I$(LIB)
|
|
|
|
ifneq ($(ICP_ROOT), )
|
|
LDFLAGS += -lqat_s -lusdm_drv_s -Wl,-rpath,$(ICP_ROOT)/build -L$(ICP_ROOT)/build
|
|
else
|
|
- LDFLAGS += -lqat -lusdm
|
|
-endif
|
|
-
|
|
-ifdef ZSTDLIB
|
|
-LDFLAGS += $(ZSTDLIB)/libzstd.a
|
|
-else
|
|
-ZSTDLIB := $(shell find /usr /lib /local -name 'libzstd.a' 2>/dev/null | head -n 1)
|
|
-ZSTDLIB ?= /usr/local/lib/libzstd.a
|
|
-ifneq ("$(wildcard $(ZSTDLIB))","")
|
|
- LDFLAGS += $(ZSTDLIB)
|
|
-else
|
|
- $(error libzstd.a not found, please install libzstd or specify the path manually)
|
|
-endif
|
|
+ LDFLAGS += -lzstd -lqatseqprod -lqat -lusdm
|
|
endif
|
|
|
|
default: test benchmark
|
|
--- a/test/test.c
|
|
+++ b/test/test.c
|
|
@@ -44,9 +44,6 @@
|
|
|
|
#include "qatseqprod.h"
|
|
|
|
-#ifndef ZSTD_STATIC_LINKING_ONLY
|
|
-#define ZSTD_STATIC_LINKING_ONLY
|
|
-#endif
|
|
#include "zstd.h"
|
|
#include "zstd_errors.h"
|
|
|
|
@@ -143,4 +140,4 @@
|
|
free(dstBuffer);
|
|
free(decompBuffer);
|
|
return 0;
|
|
-}
|
|
\ No newline at end of file
|
|
+}
|