lib/Makefile: cherry-pick error

Change-Id: Ied7bbb1f71bc3053d2b590d7cdc959ab192a009d
Signed-off-by: zwliew <zhaoweiliew@gmail.com>