2013-01-27 06:35:12 +01:00
|
|
|
Make ldconfig configurable
|
|
|
|
|
|
|
|
In a cross-compilation set up, running /sbin/ldconfig is useless, so
|
|
|
|
we make the path to ldconfig configurable through the environment/make
|
|
|
|
command line. This allows to pass LDCONFIG=/bin/true when doing
|
|
|
|
cross-compilation.
|
|
|
|
|
2013-01-29 12:20:04 +01:00
|
|
|
[Gustavo: update patch for olsr 0.6.4]
|
2013-01-27 06:35:12 +01:00
|
|
|
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|
|
|
|
|
2013-01-29 12:20:04 +01:00
|
|
|
diff -Nura olsrd-0.6.4.orig/make/Makefile.linux olsrd-0.6.4/make/Makefile.linux
|
|
|
|
--- olsrd-0.6.4.orig/make/Makefile.linux 2013-01-29 09:00:18.041356389 -0300
|
|
|
|
+++ olsrd-0.6.4/make/Makefile.linux 2013-01-29 09:01:51.598226624 -0300
|
2013-01-27 06:35:12 +01:00
|
|
|
@@ -3,6 +3,7 @@
|
|
|
|
#
|
|
|
|
|
|
|
|
ARCH := $(shell uname -m)
|
|
|
|
+LDCONFIG ?= /sbin/ldconfig
|
|
|
|
|
2013-01-29 12:20:04 +01:00
|
|
|
DESTDIR ?=
|
|
|
|
prefix ?= /usr/local
|
|
|
|
@@ -26,9 +27,9 @@
|
|
|
|
PLUGIN_SONAME ?= lib$(PLUGIN_NAME).so
|
2013-01-27 06:35:12 +01:00
|
|
|
PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
|
|
|
|
INSTALL_LIB = install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
|
|
|
|
- /sbin/ldconfig -n $(LIBDIR)
|
2013-01-29 12:20:04 +01:00
|
|
|
+ $(LDCONFIG) -n $(LIBDIR)
|
|
|
|
UNINSTALL_LIB = rm -f $(LIBDIR)/$(PLUGIN_FULLNAME); \
|
|
|
|
- /sbin/ldconfig -n $(LIBDIR)
|
2013-01-27 06:35:12 +01:00
|
|
|
+ $(LDCONFIG) -n $(LIBDIR)
|
|
|
|
|
|
|
|
ifdef OLSRD_PLUGIN
|
|
|
|
GENERATE_PIC = true
|