47d6d677dd4592f5ed31f0708a84f28e63fa93ba
[feed/telephony.git] / net / freeswitch / patches / 140-libvpx-cross.patch
1 --- a/Makefile.am
2 +++ b/Makefile.am
3 @@ -573,8 +573,15 @@ libs/libedit/src/.libs/libedit.a:
4 libs/libzrtp/libzrtp.a:
5 cd libs/libzrtp && $(MAKE)
6
7 +# !!! OpenWrt was here !!!
8 +# - added CROSS and set target to generic-gnu for cross-compile
9 +# - added CPPFLAGS to CFLAGS, otherwise they would be ignored
10 +# - disabled optimizations that would override OpenWrt's CFLAGS
11 +# - disabled the building of tools (because they fail to build and we
12 +# don't need them anyway)
13 +
14 libs/libvpx/Makefile: libs/libvpx/.update
15 - cd libs/libvpx && CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS) $(VISIBILITY_FLAG)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-unit-tests --size-limit=16384x16384
16 + cd libs/libvpx && CROSS="$(CROSS)" CC="$(CC)" CXX="$(CXX)" CFLAGS="$(CFLAGS) $(CPPFLAGS) $(VISIBILITY_FLAG)" CXXFLAGS="$(CXXFLAGS)" LDFLAGS="$(LDFLAGS)" ./configure --target=generic-gnu --disable-optimizations --enable-pic --disable-docs --disable-examples --disable-install-bins --disable-install-srcs --disable-tools --disable-unit-tests --size-limit=16384x16384
17
18 libs/libvpx/libvpx.a: libs/libvpx/Makefile libs/libvpx/.update
19 @cd libs/libvpx && $(MAKE)