From 78a94f74581965602d1e4645d52119c06d319998 Mon Sep 17 00:00:00 2001 From: Intel Date: Wed, 18 Sep 2013 12:00:00 +0200 Subject: [PATCH] examples/qat: upgrade to CRF 1.2 Signed-off-by: Intel --- examples/dpdk_qat/Makefile | 17 ++++++++++++----- 1 file changed, 12 insertions(+), 5 deletions(-) diff --git a/examples/dpdk_qat/Makefile b/examples/dpdk_qat/Makefile index a481c36016..d94b41ac52 100644 --- a/examples/dpdk_qat/Makefile +++ b/examples/dpdk_qat/Makefile @@ -70,12 +70,19 @@ CFLAGS += -I$(ICP_ROOT)/quickassist/include \ -I$(ICP_ROOT)/quickassist/include/lac \ -I$(ICP_ROOT)/quickassist/lookaside/access_layer/include +# From CRF 1.2 driver, library was renamed to libicp_qa_al.a +ifneq ($(wildcard $(ICP_ROOT)/build/icp_qa_al.a),) +ICP_LIBRARY_PATH = $(ICP_ROOT)/build/icp_qa_al.a +else +ICP_LIBRARY_PATH = $(ICP_ROOT)/build/libicp_qa_al.a +endif + LDLIBS += -L$(ICP_ROOT)/build -LDLIBS += $(ICP_ROOT)/build/icp_qa_al.a \ - -lz \ - -losal \ - -ladf_proxy \ - -lcrypto +LDLIBS += $(ICP_LIBRARY_PATH) \ + -lz \ + -losal \ + -ladf_proxy \ + -lcrypto # workaround for a gcc bug with noreturn attribute # http://gcc.gnu.org/bugzilla/show_bug.cgi?id=12603 -- 2.20.1