security/libgcrypt: Make this cross-compile.
This commit is contained in:
parent
d6e29cd598
commit
dad753891d
1 changed files with 13 additions and 1 deletions
|
@ -1,4 +1,4 @@
|
||||||
# $NetBSD: Makefile,v 1.108 2023/04/07 09:15:55 adam Exp $
|
# $NetBSD: Makefile,v 1.109 2023/06/15 23:41:41 riastradh Exp $
|
||||||
|
|
||||||
DISTNAME= libgcrypt-1.10.2
|
DISTNAME= libgcrypt-1.10.2
|
||||||
CATEGORIES= security
|
CATEGORIES= security
|
||||||
|
@ -32,6 +32,18 @@ PKGCONFIG_OVERRIDE+= src/libgcrypt.pc.in
|
||||||
|
|
||||||
.include "options.mk"
|
.include "options.mk"
|
||||||
|
|
||||||
|
.if ${USE_CROSS_COMPILE:tl} == "yes"
|
||||||
|
CONFIGURE_ARGS+= CC_FOR_BUILD=${NATIVE_CC:Q}
|
||||||
|
|
||||||
|
# libgpg-error installs scripts in the _target_ system, that are
|
||||||
|
# expected to be run on the _build_ system when compiling downstream
|
||||||
|
# dependencies like libgcrypt. I don't see a way to use pkg-config or
|
||||||
|
# anything reasonable to override this, so, we do the nonsense thing
|
||||||
|
# instead.
|
||||||
|
CONFIGURE_ARGS+= GPGRT_CONFIG=${CROSS_DESTDIR:Q}${LOCALBASE:Q}/bin/gpgrt-config
|
||||||
|
CONFIGURE_ARGS+= GPG_ERROR_CONFIG=${CROSS_DESTDIR:Q}${LOCALBASE:Q}/bin/gpg-error-config
|
||||||
|
.endif
|
||||||
|
|
||||||
BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.13
|
BUILDLINK_API_DEPENDS.libgpg-error+= libgpg-error>=1.13
|
||||||
.include "../../security/libgpg-error/buildlink3.mk"
|
.include "../../security/libgpg-error/buildlink3.mk"
|
||||||
.include "../../mk/pthread.buildlink3.mk"
|
.include "../../mk/pthread.buildlink3.mk"
|
||||||
|
|
Loading…
Reference in a new issue