From 131c2d6502443b265013d4bbe715c4e9649c41a2 Mon Sep 17 00:00:00 2001 From: Dylan Araps Date: Wed, 14 Jul 2021 12:38:13 +0300 Subject: [PATCH] firefox: fix build with libc++. See #282 --- extra/firefox/build | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/extra/firefox/build b/extra/firefox/build index ef81411c..70737384 100755 --- a/extra/firefox/build +++ b/extra/firefox/build @@ -39,6 +39,11 @@ mv -f _ "$_f" ) export PATH="$PWD/junk/bin:$PATH" +# If using libc++, CXXSTDLIB needs to be set manually. +case $("${CC:-cc}" -print-file-name=libc++.so) in */*) + export CXXSTDLIB=c++ +esac + # Bypass 'ccache' as it's totally useless when building # Firefox and only slows things down. export CC="${CC:-/usr/bin/cc}"