Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 03 Apr 2014 12:34:17 -0400
From:      "Mikhail T." <mi+thun@aldan.algebra.com>
To:        gecko@freebsd.org
Subject:   Building firefox with clang
Message-ID:  <533D8D89.9000302@aldan.algebra.com>

next in thread | raw e-mail | index | archive | help
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




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?533D8D89.9000302>