open-plc-utils: new package
[buildroot-gz.git] / package / olsr / 0001-configurable-ldconfig.patch
blob73fff7eecfccdf22f87dfb639fdfa2a2ae4ef329
1 Make ldconfig configurable
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.
8 [Gustavo: update patch for olsr 0.6.4]
9 Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
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 @@
17 ARCH := $(shell uname -m)
18 +LDCONFIG ?= /sbin/ldconfig
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)
32 ifdef OLSRD_PLUGIN
33 GENERATE_PIC = true