From: Intel Date: Wed, 18 Sep 2013 10:00:00 +0000 (+0200) Subject: examples/qat: upgrade to CRF 1.2 X-Git-Tag: spdx-start~11107 X-Git-Url: http://git.droids-corp.org/?a=commitdiff_plain;h=78a94f74581965602d1e4645d52119c06d319998;p=dpdk.git examples/qat: upgrade to CRF 1.2 Signed-off-by: Intel --- 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