On 30/01/12 14:51, Sasha Levin wrote: > On Mon, 2012-01-30 at 14:18 +1100, Matt Evans wrote: >> In lieu of any good lightweight solutions, can we include this patch as it is >> still useful for builds on systems without the offending optional libraries? > > How about we do it as a 'make static' target which will generate a > static binary without optional libraries (or just libs that don't link > statically)? Sure, but that was my question: how? That 'make static' target can drop -lbfd, -lSDL etc. from the link line but all of the '.o's that we've already built either may depend on one of those libs or may do something different because CONFIG_HAS_SDL (or similar) was set. The only way I can think of doing this is to have 'make static' depend on a second set of $(all_objects_except_without_optional_libs) which are built without CONFIG_HAS_SDL etc., but that'd make Makefile fugly IMHO. Unless, that is, CFLAGS (and thus CONFIG_HAS_SDL, has_SDL probing, etc.) can somehow change depending on the make target. Matt -- To unsubscribe from this list: send the line "unsubscribe kvm" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html