firefox: fix build with libc++. See #282

This commit is contained in:
Dylan Araps 2021-07-14 12:38:13 +03:00
parent d3adf1adec
commit 131c2d6502
No known key found for this signature in database
GPG Key ID: 13295DAC2CF13B5C

View File

@ -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}"