You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
45 lines
976 B
45 lines
976 B
4 years ago
|
From a826c7c722db40bfedf00e51ce38411550ae8216 Mon Sep 17 00:00:00 2001
|
||
|
From: Romain Naour <romain.naour@openwide.fr>
|
||
|
Date: Thu, 25 Dec 2014 19:22:16 +0100
|
||
|
Subject: [PATCH] Make.rules: Handle static/shared only build
|
||
|
|
||
|
Do not build .a library when enable_static is set to "no"
|
||
|
Do not build .so library when enable_shared is set to "no"
|
||
|
|
||
|
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
|
||
|
---
|
||
|
Make.rules | 10 ++++++++--
|
||
|
1 file changed, 8 insertions(+), 2 deletions(-)
|
||
|
|
||
|
diff --git a/Make.rules b/Make.rules
|
||
|
index 3410d7b..d274e16 100644
|
||
|
--- a/Make.rules
|
||
|
+++ b/Make.rules
|
||
|
@@ -10,7 +10,13 @@
|
||
|
CFLAGS += $(CFLAGS_LIB)
|
||
|
|
||
|
#libraries = $(lib_name).so $(lib_name).a
|
||
|
-libraries = $(lib_name).a
|
||
|
+ifneq ($(enable_static),no)
|
||
|
+libraries += $(lib_name).a
|
||
|
+endif
|
||
|
+
|
||
|
+ifneq ($(enable_shared),no)
|
||
|
+libraries += $(lib_name).so
|
||
|
+endif
|
||
|
|
||
|
.PHONY: library
|
||
|
|
||
|
@@ -24,7 +30,7 @@
|
||
|
|
||
|
.PHONY: clean install
|
||
|
|
||
|
-ifeq ($(static),1)
|
||
|
+ifneq ($(enable_static),no)
|
||
|
LDFLAGS += -static
|
||
|
endif
|
||
|
|
||
|
--
|
||
|
1.9.3
|
||
|
|