pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/nspr devel/nspr: Fix cross-compilation.



details:   https://anonhg.NetBSD.org/pkgsrc/rev/076446e2697a
branches:  trunk
changeset: 376317:076446e2697a
user:      riastradh <riastradh%pkgsrc.org@localhost>
date:      Tue Apr 05 10:04:45 2022 +0000

description:
devel/nspr: Fix cross-compilation.

diffstat:

 devel/nspr/Makefile |  7 ++++++-
 1 files changed, 6 insertions(+), 1 deletions(-)

diffs (21 lines):

diff -r 89b04a5d190b -r 076446e2697a devel/nspr/Makefile
--- a/devel/nspr/Makefile       Tue Apr 05 10:04:29 2022 +0000
+++ b/devel/nspr/Makefile       Tue Apr 05 10:04:45 2022 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.116 2021/12/17 19:13:48 wiz Exp $
+# $NetBSD: Makefile,v 1.117 2022/04/05 10:04:45 riastradh Exp $
 
 DISTNAME=      nspr-${NSPR_RELEASE:S/.0$//}
 NSPR_RELEASE=  4.33.0
@@ -31,6 +31,11 @@
 
 .include "../../mk/bsd.prefs.mk"
 
+.if !empty(USE_CROSS_COMPILE:M[yY][eE][sS])
+MAKE_FLAGS+=           HOST_CC=${NATIVE_CC:Q}
+MAKE_FLAGS+=           HOST_CXX=${NATIVE_CXX:Q}
+.endif
+
 BUILDLINK_TRANSFORM+=  rm:-Wall
 
 SUBST_CLASSES+=                        nspr-config



Home | Main Index | Thread Index | Old Index