]> git.ipfire.org Git - thirdparty/gcc.git/commitdiff
Make libgcobol/configure.tgt more similar to other libraries
authorJakub Jelinek <jakub@redhat.com>
Tue, 11 Mar 2025 10:05:13 +0000 (11:05 +0100)
committerJakub Jelinek <jakub@gcc.gnu.org>
Tue, 11 Mar 2025 10:05:13 +0000 (11:05 +0100)
When we know libgcobol is unsupported on 32-bit arches, we should just say
so in configure.tgt, the same way as on other targets.

2025-03-11  Jakub Jelinek  <jakub@redhat.com>

* configure.tgt: Only set LIBGCOBOL_SUPPORTED for lp64
multilibs of powerpc64le-*-linux* and x86_64-*-linux*.  Handle
i?86-*-linux* the same as x86_64-*-linux*.

libgcobol/configure.tgt

index a64539c919fa5a6fd1ee1d13dffb5267df4f0285..fe6f3dad396f5f4510b6b8ebfae99b004755566e 100644 (file)
@@ -30,12 +30,16 @@ case "${target}" in
        LIBGCOBOL_SUPPORTED=yes
        ;;
     powerpc64le-*-linux*)
-       LIBGCOBOL_SUPPORTED=yes
+       if test x$ac_cv_sizeof_void_p = x8; then
+               LIBGCOBOL_SUPPORTED=yes
+       fi
        ;;
     x86_64-*-linux*x32)
        LIBGCOBOL_SUPPORTED=no
        ;;
-    x86_64-*-linux*)
-       LIBGCOBOL_SUPPORTED=yes
+    x86_64-*-linux* | i?86-*-linux*)
+       if test x$ac_cv_sizeof_void_p = x8; then
+               LIBGCOBOL_SUPPORTED=yes
+       fi
        ;;
 esac