Commit f6a2dead authored by Felix Paul Kühne's avatar Felix Paul Kühne

contribs: fixed linking libflac and libid3tag when cross-compiling on Darwin

parent cb81fa6f
......@@ -550,6 +550,9 @@ libid3tag-$(LIBID3TAG_VERSION).tar.gz:
libid3tag: libid3tag-$(LIBID3TAG_VERSION).tar.gz
$(EXTRACT_GZ)
patch -d libid3tag -p0 < Patches/libid3tag-0.15.1b-fix-CVE-2008-2109.patch
ifdef HAVE_DARWIN_OS
( cd $@; sed -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure )
endif
.id3tag: libid3tag
(cd $<; $(HOSTCC) ./configure $(HOSTCONF) --prefix=$(PREFIX) && make && make install)
......@@ -808,6 +811,9 @@ flac: flac-$(FLAC_VERSION).tar.gz
ifdef HAVE_WIN32
patch -p0 < Patches/flac-win32.patch
endif
ifdef HAVE_DARWIN_OS
( cd $@; sed -e 's%-march=i486%$(EXTRA_CFLAGS) $(EXTRA_LDFLAGS)%' -e 's%-dynamiclib%-dynamiclib -arch $(ARCH)%' -i.orig configure )
endif
FLAC_DISABLE_FLAGS = --disable-oggtest --disable-xmms-plugin --disable-cpplibs
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment