Makefile: Configure optional library selection

The makefile currently automatically detects if certain libraries are
present and links with them directly.  We don't necessarily want this so
add variables to force these libraries off even if they exist on the

TEST=Build with USE_ZLIB=no and USE_AIO=no and inspect the build output
to confirm that the defines are not set and the libraries are not linked

Change-Id: If9bb80e918d8e51f4f30cfa8e384bc7f3fec59d8
Signed-off-by: Chirantan Ekbote <>
Reviewed-by: Dylan Reid <>
Reviewed-by: Mike Frysinger <>
1 file changed