ld: common symbols not allowed with MH_DYLIB output format with the -multi_module option
Mike Stump
mrs@apple.com
Fri Jun 10 23:39:00 GMT 2005
On Friday, June 10, 2005, at 04:15 PM, Sam Lauber wrote:
>> #1. I need to tell the linker to use -single_module
>> #2. Rewrite the code to make a fake initialization
>> #3. I need to pass -fno-common to the compiler
> From a standpoint of just getting the thing deployed, any one of these
> three
> is right.
Sigh. #2 doesn't work as the compiler can synthesize common variables
that you can't control, and when it does this, things won't work.
Forcing people to use -single_module strikes me as wrong.
So, from the standpoint of good advice, -fno-common is the only answer.
More information about the Gcc
mailing list