While Fab can handle multiple Fortran main program, it can't handle multiple C main programs (since a main program tries to add main as a symbol, so you end up with duplicated symbol). This affect the Socrates build script (which has many small utilities in C).
My suggested solution would be to add main@filename.c (or so) as symbol, instead of just main. This way Fab should be able to handle multiple main programs. It needs a thorough check though (analysis step, build artefacts, ...), linking - to see if this all will work as expected.
If anyone has any comments (or better suggestion), I appreciate any feedback before I start implementing this.
While Fab can handle multiple Fortran main program, it can't handle multiple C main programs (since a main program tries to add
mainas a symbol, so you end up with duplicated symbol). This affect the Socrates build script (which has many small utilities in C).My suggested solution would be to add
main@filename.c(or so) as symbol, instead of justmain. This way Fab should be able to handle multiple main programs. It needs a thorough check though (analysis step, build artefacts, ...), linking - to see if this all will work as expected.If anyone has any comments (or better suggestion), I appreciate any feedback before I start implementing this.