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

gcc4.6_soname.patch

By: ngpbento on Nov 27th, 2011  |  syntax: None  |  size: 3.97 KB  |  views: 89  |  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. diff --git a/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/Makefile.in b/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/Makefile.in
  2. index d01c329..5a69700 100644
  3. --- a/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/Makefile.in
  4. +++ b/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/Makefile.in
  5. @@ -160,23 +160,23 @@
  6.  else
  7.  
  8.  $(SYSDIR)/avutil-50-$(ARCH).so: ffmpeg/libavutil/libavutil.so
  9. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavutil/*.o \
  10. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ ffmpeg/libavutil/*.o \
  11.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  12.  
  13.  $(SYSDIR)/avcodec-52-$(ARCH).so: $(WRAPPER) ffmpeg/libavcodec/libavcodec.so
  14. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavcodec/*.o \
  15. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ ffmpeg/libavcodec/*.o \
  16.                 ffmpeg/libavcodec/$(ARCH_DIR)/*.o `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  17.  
  18.  $(SYSDIR)/avformat-52-$(ARCH).so: $(WRAPPER) ffmpeg/libavformat/libavformat.so
  19. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libavformat/*.o \
  20. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ ffmpeg/libavformat/*.o \
  21.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  22.  
  23.  $(SYSDIR)/swscale-0.6.1-$(ARCH).so: $(WRAPPER) ffmpeg/libswscale/libswscale.so
  24. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libswscale/*.o ffmpeg/libswscale/$(ARCH_DIR)/*.o \
  25. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ ffmpeg/libswscale/*.o ffmpeg/libswscale/$(ARCH_DIR)/*.o \
  26.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  27.  
  28.  $(SYSDIR)/postproc-51-$(ARCH).so: $(WRAPPER) ffmpeg/libpostproc/libpostproc.so
  29. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ ffmpeg/libpostproc/*.o \
  30. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ ffmpeg/libpostproc/*.o \
  31.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  32.  
  33.  ffmpeg/libavutil/libavutil.so     : ffmpeg;
  34. @@ -188,25 +188,25 @@
  35.         $(MAKE) -C $@
  36.  
  37.  $(SYSDIR)/libdts-$(ARCH).so: $(WRAPPER) libdts/libdts/libdts.a
  38. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ \
  39. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ \
  40.                 libdts/libdts/bitstream.o \
  41.                 libdts/libdts/downmix.o libdts/libdts/parse.o \
  42.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  43.  
  44.  $(SYSDIR)/libfaad-$(ARCH).so:  $(WRAPPER) libfaad2/libfaad/libfaad.la
  45. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ libfaad2/libfaad/*.o \
  46. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ libfaad2/libfaad/*.o \
  47.                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
  48.  
  49.  $(SYSDIR)/liba52-$(ARCH).so: $(WRAPPER) liba52/liba52/liba52.la
  50. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ liba52/liba52/.libs/*.o \
  51. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ liba52/liba52/.libs/*.o \
  52.                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
  53.  
  54.  $(SYSDIR)/libao-$(ARCH).so: $(WRAPPER) liba52/libao/libao.a
  55. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ liba52/libao/libao.a \
  56. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ liba52/libao/libao.a \
  57.                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
  58.  
  59.  $(SYSDIR)/libmpeg2-$(ARCH).so: $(WRAPPER) libmpeg2/libmpeg2/libmpeg2.la
  60. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ libmpeg2/libmpeg2/.libs/*.o \
  61. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ libmpeg2/libmpeg2/.libs/*.o \
  62.                 -Wl`cat $(WRAPPER:.o=.def)` $(WRAPPER)
  63.  
  64.  libdts/libdts/libdts.a : libdts;
  65. diff --git a/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/libdvd/Makefile.in b/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/libdvd/Makefile.in
  66. index 625cbf2..41d71c4 100644
  67. --- a/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/libdvd/Makefile.in
  68. +++ b/src/boxee-sources-0.9.23.15885/xbmc/cores/dvdplayer/Codecs/libdvd/Makefile.in
  69. @@ -40,12 +40,12 @@
  70.  else
  71.  
  72.  $(SYSDIR)/libdvdcss-$(ARCH).so: $(WRAPPER) libdvdcss/src/.libs/libdvdcss.a
  73. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ \
  74. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ \
  75.                 libdvdcss/src/*.o \
  76.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  77.  
  78.  $(SYSDIR)/libdvdnav-$(ARCH).so: $(WRAPPER) $(DVDCSS_A) libdvdread/obj/libdvdread.a libdvdnav/obj/libdvdnav.a
  79. -       $(CC) -o $@ $(LDFLAGS) --soname,$@ $(DVDCSS_O) libdvdread/obj/*.o libdvdnav/obj/*.o \
  80. +       $(CC) -o $@ $(LDFLAGS) -Wl,--soname,$@ $(DVDCSS_O) libdvdread/obj/*.o libdvdnav/obj/*.o \
  81.                 `cat $(WRAPPER:.o=.def)` $(WRAPPER)
  82.  
  83.  endif
  84.  
  85.  
clone this paste RAW Paste Data