nano: fix build breakage with libmagic
authorGustavo Zacarias <gustavo@zacarias.com.ar>
Thu, 14 Nov 2013 16:54:42 +0000 (13:54 -0300)
committerPeter Korsgaard <peter@korsgaard.com>
Thu, 14 Nov 2013 19:46:26 +0000 (20:46 +0100)
commit893108810b952777feca054a90c7ecfe7cad06e1
tree2f27b586628ae80b015249b5dfa801b59c7df1ca
parent2b9bdcafa3d69bcc3d63d5d1d3d2ab692413b39d
nano: fix build breakage with libmagic

As reported by Cassiano Martin in bug #6692 if host == target the nano
package can pick up the host libmagic and break.
So add a check to see if the file package is enabled and use it,
otherwise just disable libmagic support.

Signed-off-by: Gustavo Zacarias <gustavo@zacarias.com.ar>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
package/nano/nano.mk