> -----Original Message-----
> From: Rainer Orth <r...@cebitec.uni-bielefeld.de>
> Sent: Friday, April 11, 2025 05:26
> To: gcc-patches@gcc.gnu.org
> Cc: Robert Dubner <rdub...@symas.com>; James K. Lowden
> <jklow...@cobolworx.com>
> Subject: [PATCH] libgcobol: Heed --enable-libgcobol
>
> If some target isn't listed as supported in configure.tgt,
> --enable-libgcobol cannot override that. However, that's what should
> happen just like an explicit --enable-languages=cobol forces the
> frontend to be built.
>
> This patch, shamelessly adapted from libphobos, does just that.
>
> Tested on amd64-pc-solaris2.11, sparcv9-sun-solaris2.11, and
> x86_64-pc-linux-gnu.
>
> Ok for trunk?
I was unable to apply this patch. "git apply ..." results in
:~/repos/gcc-cobol$ git apply libgcobol-enable-libgcobol.patch
error: patch failed: libgcobol/configure:788
error: libgcobol/configure: patch does not apply
error: patch failed: libgcobol/configure.ac:40
error: libgcobol/configure.ac: patch does not apply
I don't understand the problem, but I don't know much about how diff and
apply work.
I have no way of checking the solaris part of it; I was just trying to do
"due diligence", and check that it didn't adversely affect x86_64-linux-gnu.
But since I can't do that, all I can say is, I see no reason for you not to
apply a patch you know works.
Bob D.
>
> Rainer
>
> --
> --------------------------------------------------------------------------
> ---
> Rainer Orth, Center for Biotechnology, Bielefeld University
>
>
> 2025-04-08 Rainer Orth <r...@cebitec.uni-bielefeld.de>
>
> libgcobol:
> * configure.ac: Handle --enable-libgcobol.
> Let it override LIBGCOBOL_SUPPORTED.
> * configure: Regenerate.