From: Niels Möller Date: Sat, 30 Sep 2023 15:07:03 +0000 (+0200) Subject: Disable C++ in cross builds. X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=bdefdfcbe681aaab0bfa3a35f05e28957bf2c7e0;p=thirdparty%2Fnettle.git Disable C++ in cross builds. --- diff --git a/.gitlab-ci.yml b/.gitlab-ci.yml index 39d0771c..0c135af9 100644 --- a/.gitlab-ci.yml +++ b/.gitlab-ci.yml @@ -213,11 +213,13 @@ remote/s390x: script: - build=$(dpkg-architecture -qDEB_HOST_GNU_TYPE) - host="${CI_JOB_NAME#cross.}" - # not setting CC_FOR_BUILD paired with qemu-user/binfmt somehow causes + # Not setting CC_FOR_BUILD paired with qemu-user/binfmt somehow causes # config.guess to detect the target as the build platform and not activate - # cross-compile mode even though --build is given + # cross-compile mode, even though --build is given. - export CC_FOR_BUILD="gcc" - export CC="$host-gcc" + # Disable C++, to not depend on cross g++. + - export CXX=/bin/false - ./.bootstrap - ./configure --disable-static --disable-documentation $EXTRA_CONFIGURE_FLAGS --build=$build --host=$host - make -j$(nproc)