On Wed, 17 Jun 2015 12:53:09 +0200, Wolfram Sang wrote: > Hi Jean, > > > > When debugging embedded systems, it is often nice to simply TFTP the > > > desired i2ctool to the target without the hazzle of dealing with shared > > > libs. Using -static is overkill, too, so let's add a switch which will > > > only link functions from libi2c statically. > > > > Fine with me. > > Hooray! > > > > BUILD_STATIC_LIB ?= 1 > > > +# Uncomment to use static libi2c > > > +#USE_STATIC_LIB := 1 > > > > Any reason for not using ?= as above, with the default being unset? > > Agreed. > > > Unrelated to your patch, but shouldn't this -Llib rather been written > > -L$(LIB_DIR)? > > Yes, makes sense. OK, I'll fix it after applying your updated patch. > > Also it might make sense to check if USE_STATIC_LIB is set when > > BUILD_STATIC_LIB isn't and complain about it? > > For easier usage, I'd rather enforce BUILD_STATIC_LIB in that case. You mean that USE_STATIC_LIB = 1 would silently imply BUILD_STATIC_LIB = 1? Yes, that's much better than my proposal. I'm wondering if we should make it even more flexible, but I'm not sure if it's worth the effort... Are you calling "make install" after that? I guess not. -- Jean Delvare SUSE L3 Support -- To unsubscribe from this list: send the line "unsubscribe linux-i2c" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html