Building firefox with clang
Mikhail T.
mi+thun at aldan.algebra.com
Thu Apr 3 16:34:19 UTC 2014
Hello!
For whatever reasons, both firefox (28) and firefox-esr (24) compiled here using
GCC 4.9 kept crashing with SIGBUS -- possibly some sort of misunderstanding
between different binaries (firefox and dependencies) compiled with different
compilers. My system is a 9.2-STABLE/i386.
Unfortunately, I could not figure out, how to tell the port to use clang --
until I gave up and simply added the three lines at the bottom of
www/firefox/Makefile
Index: Makefile
===================================================================
--- Makefile (revision 350024)
+++ Makefile (working copy)
@@ -104,3 +104,7 @@
@${CAT} ${PKGMESSAGE}
.include <bsd.port.post.mk>
+
+CC= clang
+CXX= clang++
+CPP= clang-cpp
The clang-built browser seems to work just fine -- it ought to be possible to
use it without resorting to the hacks, however. Yours,
-mi
More information about the freebsd-gecko
mailing list