Jonas Maebe wrote:
You probably have to apply similar changes as I did in FPC in http://svn.freepascal.org/cgi-bin/viewvc.cgi?view=revision&revision=2578...
The above problem in particular generally stems from compiling with -pg (so that gcrt1.o is linked in) but without passing "-no_new_main" to the linker for 10.8 and later. Search for -no_new_main in http://llvm.org/svn/llvm-project/cfe/trunk/lib/Driver/ToolChains.cpp (this code/info was previously in the clang file linked from the commit message above)
Thanks for the info. I had expected something in that direction, but that saves me time finding out the details.
Regards,
Adriaan van Os