Do not build .a library when disable_static is set Do not build .so library when disable_shared is set Signed-off-by: Romain Naour <romain.naour@xxxxxxxxxxx> --- Make.rules | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/Make.rules b/Make.rules index 3410d7b..4add272 100644 --- a/Make.rules +++ b/Make.rules @@ -9,7 +9,13 @@ ifneq ($(lib_name),) CFLAGS_LIB ?= -fPIC CFLAGS += $(CFLAGS_LIB) -libraries = $(lib_name).so $(lib_name).a +ifeq ($(disable_static),) +libraries = $(lib_name).a +endif + +ifeq ($(disable_shared),) +libraries += $(lib_name).so +endif .PHONY: library -- 1.9.3 -- To unsubscribe from this list: send the line "unsubscribe linux-media" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html