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
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
17 ARCH := $(shell uname -m)
18 +LDCONFIG ?= /sbin/ldconfig
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)