[vlc-devel] commit: contrib/gsm: fixed compilation on Darwin if target platform isn' t the platform used for compilation ( Felix Paul Kühne )
git version control
git at videolan.org
Wed Oct 28 19:15:18 CET 2009
vlc | branch: 1.0-bugfix | Felix Paul Kühne <fkuehne at videolan.org> | Wed Oct 28 19:15:02 2009 +0100| [8eba2e0fd770926c24c802cf1717628af7ff8c8f] | committer: Felix Paul Kühne
contrib/gsm: fixed compilation on Darwin if target platform isn't the platform used for compilation
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=8eba2e0fd770926c24c802cf1717628af7ff8c8f
---
extras/contrib/src/Makefile | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
diff --git a/extras/contrib/src/Makefile b/extras/contrib/src/Makefile
index 03bf800..72bb8ef 100644
--- a/extras/contrib/src/Makefile
+++ b/extras/contrib/src/Makefile
@@ -2529,6 +2529,9 @@ gsm: gsm-$(GSM_VERSION).tar.gz
ifneq ($(HOST),$(BUILD))
(patch -p0 < Patches/gsm-cross.patch)
endif
+ifdef HAVE_DARWIN_OS
+ (cd $@; sed -e 's%-O2%-O2\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' -e 's%# LDFLAGS =%LDFLAGS = $(EXTRA_LDFLAGS)%' -e 's%gcc%$(CC)%' -i.orig Makefile)
+endif
.gsm: gsm
(cd $<; $(HOSTCC) make && cp inc/gsm.h $(PREFIX)/include && cp lib/libgsm.a $(PREFIX)/lib)
More information about the vlc-devel
mailing list