[vlc-commits] contrib: make live555 honor EXTRA_CFLAGS
Rafaël Carré
git at videolan.org
Mon Jun 18 19:32:11 CEST 2012
vlc | branch: master | Rafaël Carré <funman at videolan.org> | Mon Jun 18 19:30:48 2012 +0200| [6fbfa4842308ba1b97b73aefa668f72a2fc42632] | committer: Rafaël Carré
contrib: make live555 honor EXTRA_CFLAGS
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=6fbfa4842308ba1b97b73aefa668f72a2fc42632
---
contrib/src/live555/rules.mak | 8 ++++----
1 file changed, 4 insertions(+), 4 deletions(-)
diff --git a/contrib/src/live555/rules.mak b/contrib/src/live555/rules.mak
index a79f3d4..a95ed3d 100644
--- a/contrib/src/live555/rules.mak
+++ b/contrib/src/live555/rules.mak
@@ -38,10 +38,10 @@ ifdef HAVE_WINCE
endif
cd live && sed -e 's%cc%$(CC)%' -e 's%c++%$(CXX)%' -e 's%LIBRARY_LINK =.*ar%LIBRARY_LINK = $(AR)%' -i.orig config.$(LIVE_TARGET)
cd live && sed -i.orig -e s/"libtool -s -o"/"ar cr"/g config.macosx*
- cd live && sed \
- -e 's%-DBSD=1%-DBSD=1\ $(EXTRA_CFLAGS)\ $(EXTRA_LDFLAGS)%' \
- -e 's%$(CXX)%$(CXX)\ $(EXTRA_LDFLAGS)%' \
- -i.orig config.macosx
+ cd live && sed -i.orig config.macosx \
+ -e 's%$(CXX)%$(CXX)\ $(EXTRA_LDFLAGS)%'
+ cd live && sed -i.orig config.* \
+ -e 's%^COMPILE_OPTS.*$$%\0 '"$(EXTRA_CFLAGS)%"
cd live && sed -e 's%-D_FILE_OFFSET_BITS=64%-D_FILE_OFFSET_BITS=64\ -fPIC\ -DPIC%' -i.orig config.linux
ifdef HAVE_ANDROID
cd live && sed -e 's%-DPIC%-DPIC -DNO_SSTREAM=1 -DLOCALE_NOT_USED -I$(ANDROID_NDK)/platforms/android-9/arch-arm/usr/include%' -i.orig config.linux
More information about the vlc-commits
mailing list