Ticket #52797: patch-add-relocatable_xz-nls.diff

File patch-add-relocatable_xz-nls.diff, 866 bytes (added by RJVB (René Bertin), 8 years ago)
  • src/xz/Makefile.am

    old new  
    55## You can do whatever you want with this file.
    66##
    77
    8 bin_PROGRAMS = xz
     8bin_PROGRAMS = xz xz_r
    99
    1010xz_SOURCES = \
    1111        args.c \
     
    5050        -I$(top_builddir)/lib
    5151
    5252xz_LDADD = $(top_builddir)/src/liblzma/liblzma.la
     53xz_r_LDADD = $(top_builddir)/src/liblzma/liblzma.la
    5354
    5455if COND_GNULIB
    5556xz_LDADD += $(top_builddir)/lib/libgnu.a
     57xz_r_LDADD += $(top_builddir)/lib/libgnu.a
    5658endif
    5759
    5860# libgnu.a may need these libs, so this must be after libgnu.a.
    5961xz_LDADD += $(LTLIBINTL)
    6062
     63xz_r_SOURCES = $(xz_SOURCES)
     64xz_r_CPPFLAGS = $(xz_CPPFLAGS)
     65xz_r_LDADD += @PREFIX@/lib/libintl.a @PREFIX@/lib/libiconv.a
     66xz_r_LDFLAGS = -static-libtool-libs -Wl,-framework -Wl,CoreFoundation
     67
    6168
    6269# Windows resource compiler support
    6370.rc.o: