I’m having some issues getting a very basic shared library to compile with ecc that works successfully with both a vanilla install of clang and gcc.
To test I created a small C program with a function called testfunc that just performs a printf.
Compiling with ecc -target x86_64-linux -shared -o test.so test.c results in linker errors for an undefined reference to ‘main’ in crt1.c.
I passed -v to the compile command for both vanilla clang and ecc and noticed that ecc was not passing the -shared flag to the linker and that several other flags were different as well.
Is this a bug in ecc or am I just passing the wrong flags?
Thanks,
Dave