port: fix build without KNI
authorPanu Matilainen <pmatilai@redhat.com>
Wed, 22 Jun 2016 11:34:02 +0000 (14:34 +0300)
committerThomas Monjalon <thomas.monjalon@6wind.com>
Mon, 27 Jun 2016 10:28:10 +0000 (12:28 +0200)
commit05dc7b05da918f862890abd168d93b3b05b6b53a
treef6c976b77cf9264f504ec2bade5145edf91566bc
parent949e26c4cfe8aff52be3790aa6bd3fda65137e72
port: fix build without KNI

Commit 9fc37d1c071c is missing a conditional in the dependencies,
causing builds to fail when KNI is not enabled:
    == Build lib/librte_port
      LD librte_port.so.3
    /usr/bin/ld: cannot find -lrte_kni
    collect2: error: ld returned 1 exit status

Fixes: 9fc37d1c071c ("port: support KNI")

Signed-off-by: Panu Matilainen <pmatilai@redhat.com>
Acked-by: Cristian Dumitrescu <cristian.dumitrescu@intel.com>
lib/librte_port/Makefile