Guest User

Untitled

a guest
Oct 23rd, 2017
374
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.52 KB | None | 0 0
  1. From 12359232773cd8853df7c1a415571fe34df8c539 Mon Sep 17 00:00:00 2001
  2. From: Oka Motofumi <chikuzen.mo@gmail.com>
  3. Date: Mon, 5 Sep 2011 11:50:37 +0900
  4. Subject: [PATCH] Fix install/uninstall shared libs if SYS is WINDOWS/CYGWIN
  5.  
  6. ---
  7. Makefile |   13 ++++++++++---
  8.  1 files changed, 10 insertions(+), 3 deletions(-)
  9.  
  10. diff --git a/Makefile b/Makefile
  11. index 5831091..9cd28c2 100644
  12. --- a/Makefile
  13. +++ b/Makefile
  14. @@ -228,18 +228,25 @@ install-lib-static: lib-static install-lib-dev
  15.     $(if $(RANLIB), $(RANLIB) $(DESTDIR)$(libdir)/$(LIBX264))
  16.  
  17.  install-lib-shared: lib-shared install-lib-dev
  18. -ifeq ($(SYS),WINDOWS)
  19. +ifneq ($(IMPLIBNAME),)
  20. +   install -d $(DESTDIR)$(bindir)
  21.     $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(bindir))
  22. +   install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir)
  23.  else
  24.     $(if $(SONAME), ln -f -s $(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
  25.     $(if $(SONAME), install -m 755 $(SONAME) $(DESTDIR)$(libdir))
  26.  endif
  27. -   $(if $(IMPLIBNAME), install -m 644 $(IMPLIBNAME) $(DESTDIR)$(libdir))
  28.  
  29.  uninstall:
  30.     rm -f $(DESTDIR)$(includedir)/x264.h $(DESTDIR)$(includedir)/x264_config.h $(DESTDIR)$(libdir)/libx264.a
  31.     rm -f $(DESTDIR)$(bindir)/x264$(EXE) $(DESTDIR)$(libdir)/pkgconfig/x264.pc
  32. -   $(if $(SONAME), rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX))
  33. +ifneq ($(SONAME),)
  34. +ifneq ($(IMPLIBNAME),)
  35. +   rm -f $(DESTDIR)$(bindir)/$(SONAME) $(DESTDIR)$(libdir)/$(IMPLIBNAME)
  36. +else
  37. +   rm -f $(DESTDIR)$(libdir)/$(SONAME) $(DESTDIR)$(libdir)/libx264.$(SOSUFFIX)
  38. +endif
  39. +endif
  40.  
  41.  etags: TAGS
  42.  
  43. --
  44. 1.7.6.msysgit.0
Add Comment
Please, Sign In to add comment