From e4668ef8562a4912020b2b344282635d169e0bd6 Mon Sep 17 00:00:00 2001 From: Duncaen Date: Fri, 15 Dec 2023 00:24:21 +0100 Subject: [PATCH] chromium: fix cross build with bundled libc++ --- srcpkgs/chromium/template | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/srcpkgs/chromium/template b/srcpkgs/chromium/template index d07c20477fe..67c22d8c9f5 100644 --- a/srcpkgs/chromium/template +++ b/srcpkgs/chromium/template @@ -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"