The cirros image was rebuilt against the 3.13.0-83 kernel, drivers e1000e, igbvf...
[packages/trusty/cirros-testvm.git] / cirros-testvm / src-cirros / buildroot-2015.05 / package / olsr / 0001-configurable-ldconfig.patch
1 Make ldconfig configurable
2
3 In a cross-compilation set up, running /sbin/ldconfig is useless, so
4 we make the path to ldconfig configurable through the environment/make
5 command line. This allows to pass LDCONFIG=/bin/true when doing
6 cross-compilation.
7
8 [Gustavo: update patch for olsr 0.6.4]
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
10
11 diff -Nura olsrd-0.6.4.orig/make/Makefile.linux olsrd-0.6.4/make/Makefile.linux
12 --- olsrd-0.6.4.orig/make/Makefile.linux        2013-01-29 09:00:18.041356389 -0300
13 +++ olsrd-0.6.4/make/Makefile.linux     2013-01-29 09:01:51.598226624 -0300
14 @@ -3,6 +3,7 @@
15  #
16  
17  ARCH := $(shell uname -m)
18 +LDCONFIG ?= /sbin/ldconfig
19  
20  DESTDIR ?=
21  prefix ?= /usr/local
22 @@ -26,9 +27,9 @@
23  PLUGIN_SONAME ?= lib$(PLUGIN_NAME).so
24  PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
25  INSTALL_LIB =  install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
26 -               /sbin/ldconfig -n $(LIBDIR)
27 +               $(LDCONFIG) -n $(LIBDIR)
28  UNINSTALL_LIB =        rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
29 -               /sbin/ldconfig -n $(LIBDIR)
30 +               $(LDCONFIG) -n $(LIBDIR)
31  
32  ifdef OLSRD_PLUGIN
33  GENERATE_PIC = true