tech-pkg archive

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

building firefox on i386



Building firefox 90 on i386 (well, in an i386 pkg_comp chroot on amd64),
configure complains i486--netbsdelf makes no sense to rustc.

The patch below works arouund the problem (expected platform string
found from the rustc executable by the courtesy of string(1)). Is that
reasonable to commit?

--- www/firefox/mozilla-common.mk.orig
+++ www/firefox/mozilla-common.mk
@@ -39,4 +39,7 @@
 
 # For rustc/cargo detection
+.if ${MACHINE_ARCH} == "i386" && ${OPSYS} == "NetBSD"
+MACHINE_GNU_PLATFORM=i586-unknown-netbsd
+.endif
 CONFIGURE_ARGS+=       --target=${MACHINE_GNU_PLATFORM}
 CONFIGURE_ARGS+=       --host=${MACHINE_GNU_PLATFORM}

-- 
Emmanuel Dreyfus
manu%netbsd.org@localhost


Home | Main Index | Thread Index | Old Index