From cbee9380e1f5e103ab57253d1ddd2e57e52698db Mon Sep 17 00:00:00 2001 From: Steve Wills Date: Tue, 6 Feb 2018 14:13:35 +0000 Subject: Don't use pkg-static when cross building PR: 224217 Submitted by: nwhitehorn Approved by: bapt --- ports-mgmt/pkg/Makefile | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ports-mgmt/pkg/Makefile') diff --git a/ports-mgmt/pkg/Makefile b/ports-mgmt/pkg/Makefile index 89c71ac4f4e6..ab074b3df725 100644 --- a/ports-mgmt/pkg/Makefile +++ b/ports-mgmt/pkg/Makefile @@ -70,7 +70,12 @@ pre-everything:: #define PKG_DEPENDS to nothing to avoid infinite loop looking for pkg :) PKG_DEPENDS= .undef INSTALLS_DEPENDS + +# Use the internal pkg instead, generally, unless this is a cross-build, +# in which case that won't work. Hope for the best then. +.if !defined(CROSS_TOOLCHAIN) PKG_BIN= ${WRKSRC}/src/pkg-static +.endif post-install: @${MKDIR} ${STAGEDIR}${DOCSDIR} -- cgit v1.2.3