• 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/keyutils/0001-allow-building-of-the-shared-library-to-be-suppressed.patch
Peter KorsgaardPeter Korsgaard committed 298cd8eaa2103 Feb 2015
Raw file
Source viewDiff to previous
xxxxxxxxxx
 
1
keyutils: Allow building of the shared library to be suppressed
2
​
3
Upstream patch:
4
  https://kernel.googlesource.com/pub/scm/linux/kernel/git/dhowells/keyutils/+/a4deb71ddc05e951c8be8d46615beed9d408a5c8
5
​
6
Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
7
​
8
LIB: Allow building of the shared library to be suppressed
9
​
10
Allow building of the shared library to be suppressed by passing NO_SOLIB=1 to
11
the Makefile.
12
​
13
Reported-and-tested-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
14
Signed-off-by: David Howells <dhowells@redhat.com>
15
diff --git a/Makefile b/Makefile
16
index c904eaf..5dd2113 100644
17
--- a/Makefile
18
+++ b/Makefile
19
@@ -5,6 +5,7 @@
20
 SPECFILE   := keyutils.spec
21
 NO_GLIBC_KEYERR    := 0
22
 NO_ARLIB   := 0
23
+NO_SOLIB   := 0
24
 ETCDIR     := /etc
25
 BINDIR     := /bin
26
 SBINDIR        := /sbin
27
@@ -95,7 +96,7 @@
28
 # Normal build rule
29
 #
30
 ###############################################################################
31
-all: $(DEVELLIB) keyctl request-key key.dns_resolver
32
+all: keyctl request-key key.dns_resolver
33
 
34
 ###############################################################################
35
 #
36
@@ -104,20 +105,23 @@
37
 ###############################################################################
38
 #RPATH = -Wl,-rpath,$(LIBDIR)
39
 
40
-ifeq ($(NO_ARLIB),0)
41
-all: $(ARLIB)
42
-$(ARLIB): keyutils.o
43
-   $(AR) rcs $@ $<
44
-endif
45
-
46
 VCPPFLAGS  := -DPKGBUILD="\"$(shell date -u +%F)\""
47
 VCPPFLAGS  += -DPKGVERSION="\"keyutils-$(VERSION)\""
48
 VCPPFLAGS  += -DAPIVERSION="\"libkeyutils-$(APIVERSION)\""
49
 
50
+ifeq ($(NO_ARLIB),0)
51
+all: $(ARLIB)
52
+$(ARLIB): keyutils.o
53
+   $(AR) rcs $@ $<
54
+
55
 keyutils.o: keyutils.c keyutils.h Makefile
56
    $(CC) $(CPPFLAGS) $(VCPPFLAGS) $(CFLAGS) -UNO_GLIBC_KEYERR -o $@ -c $<
57
+LIB_DEPENDENCY := libkeyutils.a
58
+endif
59
 
60
 
61
+ifeq ($(NO_SOLIB),0)
62
+all: $(DEVELLIB)
63
 $(DEVELLIB): $(SONAME)
  • 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.