fix Issue 10441 - Static libraries too big
Merge pull request #2550 from WalterBright/fix10441

fix Issue 10441 - Static libraries too big