diff --git a/srcpkgs/nspr/template b/srcpkgs/nspr/template index ca4e4a1e84..d3ce795f69 100644 --- a/srcpkgs/nspr/template +++ b/srcpkgs/nspr/template @@ -27,7 +27,11 @@ do_configure() { --enable-debug --enable-ipv6 ${_args} } do_build() { - make CC=$CC CXX=$CXX ${makejobs} + if [ "$CROSS_BUILD" ]; then + make ${makejobs} + else + make CC=$CC CXX=$CXX ${makejobs} + fi } post_install() { ln -s nspr.pc ${DESTDIR}/usr/lib/pkgconfig/mozilla-nspr.pc