3 @@ -557,8 +557,15 @@ src/include/switch_version.h: src/includ
4 libs/libedit/src/.libs/libedit.a:
5 cd libs/libedit && $(MAKE)
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)
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
18 libs/libvpx/libvpx.a: libs/libvpx/Makefile libs/libvpx/.update
19 @cd libs/libvpx && $(MAKE)