]> git.ipfire.org Git - thirdparty/nettle.git/commitdiff
Disable C++ in cross builds.
authorNiels Möller <nisse@lysator.liu.se>
Sat, 30 Sep 2023 15:07:03 +0000 (17:07 +0200)
committerNiels Möller <nisse@lysator.liu.se>
Tue, 3 Oct 2023 19:13:34 +0000 (21:13 +0200)
.gitlab-ci.yml

index 39d0771c1930a8eb1bbd3418253d0c3e04a510eb..0c135af9d042b70570e26d168c2a90aca7173011 100644 (file)
@@ -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)