Want more features on Pastebin? Sign Up, it's FREE!
Guest

libspnav patch

By: a guest on Aug 14th, 2013  |  syntax: Diff  |  size: 0.77 KB  |  views: 10  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. --- Makefile.in.orig    2010-03-28 00:24:27.000000000 +0100
  2. +++ Makefile.in 2013-08-14 13:50:05.092685206 +0200
  3. @@ -4,6 +4,7 @@
  4.  lib_a = libspnav.a
  5.  soname = libspnav.so.0
  6.  lib_so = $(soname).1
  7. +linkname = libspnav.so
  8.  
  9.  CC = gcc
  10.  AR = ar
  11. @@ -16,7 +17,7 @@
  12.         $(AR) rcs $@ $(obj)
  13.  
  14.  $(lib_so): $(obj)
  15. -       $(CC) -shared -Wl,-soname,$(soname) -o $@ $(obj)
  16. +       $(CC) -shared -Wl,-soname,$(soname) $(xlib) -o $@ $(obj)
  17.  
  18.  %.o: $(srcdir)/%.c
  19.         $(CC) $(CFLAGS) -c $< -o $@
  20. @@ -33,6 +34,8 @@
  21.  install: $(lib_a) $(lib_so)
  22.         cp $(lib_a) $(PREFIX)/$(libdir)/$(lib_a)
  23.         cp $(lib_so) $(PREFIX)/$(libdir)/$(lib_so)
  24. +       ln -s $(lib_so) $(linkname)
  25. +       cp -d $(linkname) $(PREFIX)/$(libdir)/$(linkname)
  26.         for h in $(hdr); do cp -p $(srcdir)/$$h $(PREFIX)/include/; done
  27.  
  28.  .PHONY: uninstall
clone this paste RAW Paste Data