Menu

#57 Configure script doesn't recognise -Oz as an optimisation flag

GC 3.x
closed
configure (2)
5 - default
2022-06-07
2022-05-31
No

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

1 Attachments

Discussion

  • Simon Sobisch

    Simon Sobisch - 2022-05-31
    • labels: --> configure
    • status: open --> closed
    • assigned_to: Simon Sobisch
     
  • Simon Sobisch

    Simon Sobisch - 2022-05-31

    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/tmp in 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]

  • Henrik Grimler

    Henrik Grimler - 2022-06-07

    Thanks for the tip about the mailing list!

    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/tmp

    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 :)

     

Log in to post a comment.