On Sun, Mar 03, 2019 at 07:53:23PM +0100, Landry Breuil wrote:
> On Sun, Mar 03, 2019 at 02:09:22PM +1100, Jonathan Gray wrote:
> > Prepare for llvm-config in base and use ports llvm-config to avoid a
> > build error.
> > 
> > checking for llvm-config... /usr/bin/llvm-config
> > ERROR: Could not find the clang shared library in the path /usr/lib
> > returned by `llvm-config --libdir` (searched for files []).
> > clang is required to build Firefox.  Please install the
> > necessary packages, or run `mach bootstrap`.
> 
> Hmmm .. even if thunderbird & seamonkey dont use stylo (yet?) i'd rather
> have this in mozilla.port.mk, where MAKE_ENV is already modified..
> It should work the same for you :)

sure

Index: mozilla.port.mk
===================================================================
RCS file: /cvs/ports/www/mozilla/mozilla.port.mk,v
retrieving revision 1.122
diff -u -p -r1.122 mozilla.port.mk
--- mozilla.port.mk     29 Jan 2019 20:45:53 -0000      1.122
+++ mozilla.port.mk     4 Mar 2019 01:36:10 -0000
@@ -167,7 +167,8 @@ SUBST_VARS +=       MOZILLA_PROJECT MOZILLA_VE
 
 MAKE_ENV +=    MOZILLA_OFFICIAL=1 \
                SHELL=/bin/sh \
-               SO_VERSION="${SO_VERSION}"
+               SO_VERSION="${SO_VERSION}" \
+               LLVM_CONFIG="${LOCALBASE}/bin/llvm-config"
 
 CONFIGURE_ENV +=       ${MAKE_ENV}
 # ensure libffi's configure doesnt pick gsed/gmkdir/gawk

Reply via email to