Hi,
When optimisation levels are removed from CFLAGS and CPPFLAGS for COB_FLAGS in gnucobol's configure script, -Oz is not recognised as an optimisation level.
Attached patch fixes the issue.
External issue where this was discovered: https://github.com/termux/termux-packages/issues/10863
Thank you for providing the patch and to let me know about the termux-packages for libvbisam and GnuCOBOL (note: if you didn't have done it so far, you may want to subscribe to the user mailing list or to the NEWS to get a note about newer GnuCOBOL versions).
Note: the patch https://github.com/termux/termux-packages/blob/master/packages/gnucobol/libcob-common.c.patch should not be needed as termux should
export TMP=$TERMUX_PREFIX/tmpin general (I haven't checked if this is the case).The issue should be fixed along other configure related issues with [r4613].
Related
Commit: [r4613]
Thanks for the tip about the mailing list!
Yeah, you are right, TMPDIR=$TERMUX_PREFIX/tmp should normally be set, but better safe than sorry in case user is running some weird shell and/or environment :)