summaryrefslogtreecommitdiffstats
path: root/package/dvb-apps/dvb-apps-0003-support-static-only-build.patch
blob: 236f1a32f61d81fb675daa0bd899b894b6ce046c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
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
 
OpenPOWER on IntegriCloud