48d648a089
This commit makes dvb-apps behave properly in a static-only build. It passes the static=1 variable to the Makefile, and adds a patch that fixes the Makefile to not build .so libraries when static=1. Fixes: http://autobuild.buildroot.org/results/3db/3dbfa7b692d4b123b3ba6b55c84df12818273554/ [Peter: drop V=1 as pointed out by Yann] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com> Reviewed-by: "Yann E. MORIN" <yann.morin.1998@free.fr> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
21 lines
434 B
Diff
21 lines
434 B
Diff
Make.rules: don't build .so libraries when static=1
|
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
Index: b/Make.rules
|
|
===================================================================
|
|
--- a/Make.rules
|
|
+++ b/Make.rules
|
|
@@ -9,7 +9,11 @@
|
|
CFLAGS_LIB ?= -fPIC
|
|
CFLAGS += $(CFLAGS_LIB)
|
|
|
|
+ifeq ($(static),1)
|
|
+libraries = $(lib_name).a
|
|
+else
|
|
libraries = $(lib_name).so $(lib_name).a
|
|
+endif
|
|
|
|
.PHONY: library
|
|
|