chromium: fix cross build with bundled libc++

This commit is contained in:
Duncaen
2023-12-15 00:24:21 +01:00
parent ee66eadb46
commit e4668ef856

View File

@@ -104,7 +104,7 @@ _setup_clang() {
export BUILD_NM=llvm-nm
export BUILD_CFLAGS="-Wno-unknown-warning-option"
export BUILD_CXXFLAGS="-Wno-unknown-warning-option"
if [[ -n "$CROSS_BUILD" && -n "$build_option_libcxx" ]]; then
if [[ -n "$CROSS_BUILD" && -z "$build_option_libcxx" ]]; then
CFLAGS+=" --gcc-toolchain=/usr"
CFLAGS+=" --sysroot=${XBPS_CROSS_BASE}"
CFLAGS+=" -nostdinc"