contribs: make sure libgsm geet's compiled with the setup we chose on OS X
authorFelix Paul Kühne <fkuehne@videolan.org>
Sat, 1 Aug 2009 12:02:06 +0000 (14:02 +0200)
committerFelix Paul Kühne <fkuehne@videolan.org>
Sat, 1 Aug 2009 12:02:32 +0000 (14:02 +0200)
extras/contrib/src/Makefile

index 82ec6fe..15131a8 100644 (file)
@@ -2561,6 +2561,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)