From f7e0e6cba36ca49ed9962ab33e2adb26ff44b2d6 Mon Sep 17 00:00:00 2001 From: Phil Sutter Date: Sun, 5 Jan 2025 01:18:24 +0100 Subject: package: zlib: Fix for wrong zlib.pc content in host build 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 --- package/zlib/Makefile | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/package/zlib/Makefile b/package/zlib/Makefile index 9d7cea2ae..e5de4a036 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 @@ host-configure: CPPFLAGS="-I$(STAGING_HOST_DIR)/usr/include" \ LDFLAGS="-L$(STAGING_HOST_DIR)/usr/lib" \ ./configure \ - --prefix=/usr \ + --prefix=$(STAGING_HOST_DIR)/usr \ --shared \ ); -- cgit v1.2.3