• Skip to sidebar navigation
  • Skip to content

Bitbucket

  • More
    ProjectsRepositories
  • Help
    • Online help
    • Learn Git
    • Welcome to Bitbucket
    • Keyboard shortcuts
  • Log In
Alexander Dahl
  1. Alexander Dahl

buildroot

Public
Actions
  • Clone
  • Compare

Learn more about cloning repositories

You have read-only access

Navigation
  • Source
  • Commits
  • Branches
  • All Branches Graph
  • Forks
  1. Alexander Dahl
  2. buildroot

Source

buildroot/package/dvb-apps/0003-handle-static-shared-only-build.patch
Romain NaourRomain Naour committed 129496891df07 Jan 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
From a826c7c722db40bfedf00e51ce38411550ae8216 Mon Sep 17 00:00:00 2001
2
From: Romain Naour <romain.naour@openwide.fr>
3
Date: Thu, 25 Dec 2014 19:22:16 +0100
4
Subject: [PATCH] Make.rules: Handle static/shared only build
5
​
6
Do not build .a library when enable_static is set to "no"
7
Do not build .so library when enable_shared is set to "no"
8
​
9
Signed-off-by: Romain Naour <romain.naour@openwide.fr>
10
---
11
 Make.rules | 10 ++++++++--
12
 1 file changed, 8 insertions(+), 2 deletions(-)
13
​
14
diff --git a/Make.rules b/Make.rules
15
index 3410d7b..d274e16 100644
16
--- a/Make.rules
17
+++ b/Make.rules
18
@@ -9,7 +9,13 @@ ifneq ($(lib_name),)
19
 CFLAGS_LIB ?= -fPIC
20
 CFLAGS += $(CFLAGS_LIB)
21
 
22
-libraries = $(lib_name).so $(lib_name).a
23
+ifneq ($(enable_static),no)
24
+libraries += $(lib_name).a
25
+endif
26
+
27
+ifneq ($(enable_shared),no)
28
+libraries += $(lib_name).so
29
+endif
30
 
31
 .PHONY: library
32
 
33
@@ -23,7 +29,7 @@ prerequisites = $(subst .o,.d,$(objects)) $(addsuffix .d,$(binaries))
34
 
35
 .PHONY: clean install
36
 
37
-ifeq ($(static),1)
38
+ifneq ($(enable_static),no)
39
 LDFLAGS += -static
40
 endif
41
 
42
-- 
43
1.9.3
44
​
  • Git repository management for enterprise teams powered by Atlassian Bitbucket
  • Atlassian Bitbucket v6.7.2
  • Documentation
  • Request a feature
  • About
  • Contact Atlassian
Atlassian

Everything looks good. We'll let you know here if there's anything you should know about.