This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

libdwarf-pic.patch

By: a guest on May 13th, 2010  |  syntax: Make  |  size: 0.83 KB  |  views: 226  |  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. --- dwarf-20100404/libdwarf/Makefile.in.orig    2010-05-09 14:40:59.718806243 +0700
  2. +++ dwarf-20100404/libdwarf/Makefile.in 2010-05-09 14:48:07.648780941 +0700
  3. @@ -122,14 +122,18 @@
  4.          pro_macinfo.o \
  5.          pro_weaks.o
  6.          
  7. +LOBJS := $(patsubst %.o,%.lo,$(OBJS))
  8.  
  9. -all: @build_shared@ @build_nonshared@
  10. +all: libdwarf.so.0.0 @build_nonshared@
  11.  
  12.  libdwarf.a: dwarf_names.h dwarf_names.c  $(OBJS) dwarf_names.o
  13.         $(AR) $(ARFLAGS) $@ $(OBJS)  dwarf_names.o
  14.  
  15. -libdwarf.so: dwarf_names.h dwarf_names.c $(OBJS) dwarf_names.o
  16. -       $(CC) $(CFLAGS) -shared $(OBJS)  dwarf_names.o -o $@
  17. +%.lo: %.c
  18. +       $(CC) $(CFLAGS) $(DEFS) -fPIC -c -o $@ $<
  19. +
  20. +libdwarf.so.0.0: dwarf_names.h dwarf_names.c $(LOBJS) dwarf_names.lo
  21. +       $(CC) $(LDFLAGS) $(LIBS) -shared $(LOBJS) dwarf_names.lo -Wl,-soname,$@ -o $@
  22.  
  23.  none:
  24.         echo "do nothing"
clone this paste RAW Paste Data