Thomas Nikolajsen wrote: Solution is to drop `static' for variable containing CONFIG. Name of variable also change from config to config_INCLUDE_CONFIG_FILE, to minimize chance of name clash, now that it is made public. Variable isn't used, so gcc optimized it away. Alternatively you could declare it __used I think. cheers simon