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"