[vlc-devel] commit: contribs: fixed linking libflac and libid3tag when cross-compiling on Darwin ( Felix Paul Kühne )
git version control
git at videolan.org
Thu Sep 3 16:26:35 CEST 2009
vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Sun Aug 30 20:49:19 2009 +0200| [481f9bb3b08c189cd217fcc95c9b1be66510d6d7] | committer: Felix Paul Kühne
contribs: fixed linking libflac and libid3tag when cross-compiling on Darwin
Signed-off-by: Felix Paul Kühne <fkuehne at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=481f9bb3b08c189cd217fcc95c9b1be66510d6d7
---
extras/contrib/src/Makefile | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 54411eb..1c35c9d 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -599,6 +599,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)
@@ -847,6 +850,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
More information about the vlc-devel
mailing list