Some Apple docs say that for some cases of binary backwards compatibility, I need to define external functions as weak_import so that the linker will not complain. It is done like:
extern int SayHello() __attribute__((weak_import));
Normally, this would translate to:
function SayHello: int; external name 'SayHello'; attribute(weak_import);
But the weak_import is not recognized by GPC.
Is there a way to do this in GPC?
Thanks, Peter.