patch-make_Makefile_linux 892 B

1234567891011121314151617181920212223
  1. $Id: update-patches 24 2008-08-31 14:56:13Z wbx $
  2. --- olsrd-0.5.6-r2.orig/make/Makefile.linux 2008-10-03 14:45:07.000000000 +0200
  3. +++ olsrd-0.5.6-r2/make/Makefile.linux 2009-06-13 14:10:25.000000000 +0200
  4. @@ -4,7 +4,7 @@
  5. ARCH := $(shell uname -m)
  6. DESTDIR ?=
  7. -LIBDIR = $(DESTDIR)$(shell if [ "$(ARCH)" = "x86_64" -a -d "/usr/lib64" ]; then echo "/usr/lib64"; else echo "/usr/lib"; fi)
  8. +LIBDIR = $(DESTDIR)/usr/lib
  9. SRCS += $(wildcard src/linux/*.c src/unix/*.c)
  10. HDRS += $(wildcard src/linux/*.h src/unix/*.h)
  11. @@ -13,8 +13,8 @@ CPPFLAGS += -Dlinux
  12. LIBS +=
  13. PLUGIN_FULLNAME ?= $(PLUGIN_NAME).so.$(PLUGIN_VER)
  14. -INSTALL_LIB = install -D -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME); \
  15. - /sbin/ldconfig -n $(LIBDIR)
  16. +INSTALL_LIB = install -d -m 755 $(LIBDIR); \
  17. + install -m 755 $(PLUGIN_FULLNAME) $(LIBDIR)/$(PLUGIN_FULLNAME);
  18. ifdef OLSRD_PLUGIN
  19. GENERATE_PIC = true