Customize

Customizing compiler

These settings are effective at compile-time.

Environment variables (default value in brackets):

  • COB_CC

    C compiler (“gcc”)

  • COB_CFLAGS

    Flags passed to the C compiler (“-I$(PREFIX)/include”)

  • COB_LDFLAGS

    Flags passed to the C compiler (“”)

  • COB_LIBS

    Standard libraries linked with the program (“-L$(PREFIX)/lib -lcob”)

  • COB_LDADD

    Additional libraries linked with the program (“”)

Customizing library

These settings are effective at run-time. You can set them either via the environment or by a runtime configuration file.

To set the global runtime configuration file export COB_RUNTIME_CONFIGto point to your configuration file. To set an explicit runtime configuration file for a single run via cobcrun you can use its option -c <file>, --config=<file>.

For displaying the current runtime settings you can use the option -r, --runtime-env of cobcrun.

For a complete list of runtime variables, aliases, their default values and options to set them Appendix I.