Please, remove the flag and always install both static and shared libraries... http://marc.theaimsgroup.com/?l=gentoo-dev&m=116026024223024&w=2
in DirectFB-0.9.25.1.ebuild