The X consolidation builds most of it's code using Sun Studio 12 with the
optimizer flags "-xO4 -xbuiltin=%none -xlibmil -xprefetch -xdepend" - these
are known to include optimizations that can increase binary sizes unless
-xspace is also given, as was done for Mesa in 6808868.
This flag should be added to the master optimized flag set for the X builds so
that all parts of X are reduced in size and memory usage to better fit the
OpenSolaris LiveCD media and memory constraints.
A test build with these flags gave these size differences:
nv110 -xspace
425K 426K SUNWxorg-cfg/reloc/X11/bin
98K 87K SUNWxorg-cfg/reloc/X11/lib
185K 146K SUNWxorg-client-programs/reloc/X11/bin
10K 11K SUNWxorg-client-programs/reloc/X11/lib
815K 637K SUNWxorg-clientlibs/reloc/X11/lib
9.5M 9.5M SUNWxorg-graphics-ddx/reloc/X11/lib
30K 31K SUNWxorg-mesa/reloc/X11/bin
47M 46M SUNWxorg-mesa/reloc/X11/lib
15M 15M SUNWxorg-server/reloc/X11/bin
6.1M 6.0M SUNWxorg-server/reloc/X11/lib
403K 404K SUNWxorg-tsol-module/reloc/X11/lib
17M 15M SUNWxscreensaver-hacks-gl/reloc/X11/lib
14M 10M SUNWxscreensaver-hacks/reloc/X11/lib
4.1M 3.1M SUNWxvnc/reloc/X11/bin
113K 68K SUNWxwacx/reloc/X11/bin
74K 75K SUNWxwacx/reloc/X11/lib
514K 425K SUNWxwdem/reloc/X11/bin
51K 44K SUNWxwfsw/reloc/X11/bin
1.7M 1.5M SUNWxwfsw/reloc/X11/lib
34K 35K SUNWxwice/reloc/X11/bin
346K 299K SUNWxwice/reloc/X11/lib
3.1M 2.2M SUNWxwopt/reloc/X11/bin
885K 886K SUNWxwopt/reloc/X11/lib
2.3M 1.9M SUNWxwplt/reloc/X11/bin
12M 9.7M SUNWxwplt/reloc/X11/lib
775K 567K SUNWxwsvr/reloc/X11/bin
562K 529K SUNWxwsvr/reloc/X11/lib
402K 291K SUNWxwxft/reloc/X11/lib