The file contained 'prefix=/usr' which led to glib host build trying to link against the host's libz.so instead of the built one.
Signed-off-by: Phil Sutter phil@nwl.cc --- package/zlib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/package/zlib/Makefile b/package/zlib/Makefile index 9d7cea2ae6c5d..e5de4a036ae48 100644 --- a/package/zlib/Makefile +++ b/package/zlib/Makefile @@ -27,6 +27,7 @@ endif HOST_STYLE:= auto HOST_CONFIG_STYLE:= manual HOST_CONFIGURE_ENV+= uname=Linux +HOST_FAKE_FLAGS+= DESTDIR=/
CONFIG_STYLE:= manual CONFIGURE_ENV+= uname=Linux @@ -45,7 +46,7 @@ endif CPPFLAGS="-I$(STAGING_HOST_DIR)/usr/include" \ LDFLAGS="-L$(STAGING_HOST_DIR)/usr/lib" \ ./configure \ - --prefix=/usr \ + --prefix=$(STAGING_HOST_DIR)/usr \ --shared \ );