fix Issue 10676 - excessive compilation times with optimized PIC build
Merge pull request #2375 from WalterBright/fix10676

fix Issue 10676 - excessive compilation times with optimized PIC build