pkgsrc-Changes archive

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

CVS commit: pkgsrc/devel/nspr



Module Name:    pkgsrc
Committed By:   riastradh
Date:           Tue Apr  5 10:04:45 UTC 2022

Modified Files:
        pkgsrc/devel/nspr: Makefile

Log Message:
devel/nspr: Fix cross-compilation.


To generate a diff of this commit:
cvs rdiff -u -r1.116 -r1.117 pkgsrc/devel/nspr/Makefile

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/nspr/Makefile
diff -u pkgsrc/devel/nspr/Makefile:1.116 pkgsrc/devel/nspr/Makefile:1.117
--- pkgsrc/devel/nspr/Makefile:1.116    Fri Dec 17 19:13:48 2021
+++ pkgsrc/devel/nspr/Makefile  Tue Apr  5 10:04:45 2022
@@ -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 @@ CONFIGURE_ENV+=              LIBRUNPATH=${PREFIX:Q}/
 
 .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