Browse Source

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 <phil@nwl.cc>
Phil Sutter 3 months ago
parent
commit
f7e0e6cba3
1 changed files with 2 additions and 1 deletions
  1. 2 1
      package/zlib/Makefile

+ 2 - 1
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 \
 	);