cobc should be used for the final compilation
Currently we use cobc
for all phases but the last.
Partial quote from ECHO=1 cobcd
:
cobc -c -g -o TEST.o TEST.s
gcc -std=gnu99 -I/opt/gnucobol/gnucobol-3.1-rc1/include -Wno-unused -fsigned-char -Wno-pointer-sign -pipe -shared -fPIC -DPIC -Wl,--export-dynamic -o TEST.so TEST.sym.o TEST.o -L/opt/gnucobol/gnucobol-3.1-rc1/lib -lcob -lm
We should use cobc
also for the final compilation:
cobc -c -g -o TEST.o TEST.s
cobc -o TEST.so TEST.sym.o TEST.o
possibly better, also combining it with the step before:
cobc -o TEST.so TEST.sym.o TEST.s