mk: fix static build without crypto
authorOlivier Matz <olivier.matz@6wind.com>
Fri, 11 Mar 2016 13:29:40 +0000 (14:29 +0100)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Fri, 11 Mar 2016 14:30:03 +0000 (15:30 +0100)
commit1dc1b9579620507507be64b7df671a11b623805c
tree363d8ffef9b525d512275703790835361dfccfb2
parent27cf2d1b18e1507e346e548fe3cfde49fb1ffd68
mk: fix static build without crypto

If the experimental CONFIG_RTE_LIBRTE_CRYPTODEV is disabled, build of
any crypto pmds will fail because of the missing dependency.  The commit
94288d645 fixes the issue when compiled with shared libraries but there
is still an issue at link time with static libs:

     LD test
     /usr/bin/ld: cannot find -lrte_pmd_null_crypto
     collect2: error: ld returned 1 exit status

Only add the -l linker flags related to crypto PMDs if CRYPTODEV is
enabled.

Fixes: 94288d645 ("mk: fix build without crypto")

Signed-off-by: Olivier Matz <olivier.matz@6wind.com>
mk/rte.app.mk