It turns out that changing the library names in GnuCobol 3.2 is not as simple as with opencobol 1.1
When the Makefile.am file under either lib or libcob is changed to add "-lc" to the library name,
Automake adds these lines to the resulting Makefile (not present normally):
For Makefile under lib:
libsupport_lc_la_LIBADD =
libsupport_lc_la_SOURCES = libsupport-lc.c
libsupport_lc_la_OBJECTS = libsupport-lc.lo
For Makefile under libcob:
libcob_lc_la_LIBADD =
libcob_lc_la_SOURCES = libcob-lc.c
libcob_lc_la_OBJECTS = libcob-lc.lo
These additions result in the following make errors
(the second make error in libcob is achieved by using the original Makefile.am under lib):
Making all in lib
make[2]: Entering directory '/home/jgray/gnucobol-3.2-test/lib'
make[2]: *** No rule to make target 'libsupport-lc.c', needed by 'libsupport-lc.lo'. Stop.
make[2]: Leaving directory '/home/jgray/gnucobol-3.2-test/lib'
make[1]: *** [Makefile:655: all-recursive] Error 1
make[1]: Leaving directory '/home/jgray/gnucobol-3.2-test'
make: *** [Makefile:563: all] Error 2
Making all in libcob
make[2]: Entering directory '/home/jgray/gnucobol-3.2-test/libcob'
make[2]: *** No rule to make target 'libcob-lc.c', needed by 'libcob-lc.lo'. Stop.
make[2]: Leaving directory '/home/jgray/gnucobol-3.2-test/libcob'
make[1]: *** [Makefile:655: all-recursive] Error 1
make[1]: Leaving directory '/home/jgray/gnucobol-3.2-test'
make: *** [Makefile:563: all] Error 2
Do you have any suggestions on how to overcome this problem with changing the library names?
It turns out that changing the library names in GnuCobol 3.2 is not as simple as with opencobol 1.1
When the Makefile.am file under either lib or libcob is changed to add "-lc" to the library name,
Automake adds these lines to the resulting Makefile (not present normally):
For Makefile under lib:
libsupport_lc_la_LIBADD =
libsupport_lc_la_SOURCES = libsupport-lc.c
libsupport_lc_la_OBJECTS = libsupport-lc.lo
For Makefile under libcob:
libcob_lc_la_LIBADD =
libcob_lc_la_SOURCES = libcob-lc.c
libcob_lc_la_OBJECTS = libcob-lc.lo
These additions result in the following make errors
(the second make error in libcob is achieved by using the original Makefile.am under lib):
Making all in lib
make[2]: Entering directory '/home/jgray/gnucobol-3.2-test/lib'
make[2]: *** No rule to make target 'libsupport-lc.c', needed by 'libsupport-lc.lo'. Stop.
make[2]: Leaving directory '/home/jgray/gnucobol-3.2-test/lib'
make[1]: *** [Makefile:655: all-recursive] Error 1
make[1]: Leaving directory '/home/jgray/gnucobol-3.2-test'
make: *** [Makefile:563: all] Error 2
Making all in libcob
make[2]: Entering directory '/home/jgray/gnucobol-3.2-test/libcob'
make[2]: *** No rule to make target 'libcob-lc.c', needed by 'libcob-lc.lo'. Stop.
make[2]: Leaving directory '/home/jgray/gnucobol-3.2-test/libcob'
make[1]: *** [Makefile:655: all-recursive] Error 1
make[1]: Leaving directory '/home/jgray/gnucobol-3.2-test'
make: *** [Makefile:563: all] Error 2
Do you have any suggestions on how to overcome this problem with changing the library names?