0001-Fix-cross-compiling-libvpx.patch 1.6 KB

1234567891011121314151617181920212223242526272829
  1. Fix cross-compiling libvpx
  2. Freeswitch since version 1.6.7 only uses an in-tree-version of libvpx:
  3. https://freeswitch.org/fisheye/changelog/freeswitch?cs=febe0f8dacea2d2a31902b3dc469be757f8c3c4d
  4. It is not possible to use an external version of libvpx anymore.
  5. Unfortunately the freeswitch build system has no support for cross-
  6. compiling libvpx so we need to patch Makefile to pass CROSS from
  7. package/freeswitch/freeswitch.mk and add target=generic-gnu as
  8. configure parameter:
  9. https://freeswitch.org/stash/projects/FS/repos/freeswitch/browse/libs/libvpx/README#110
  10. And yes, autoreconf is also broken, so we patch Makefile.in instead
  11. of Makefile.am.
  12. Signed-off-by: Bernd Kuhls <bernd.kuhls@t-online.de>
  13. diff -uNr freeswitch-1.6.7.org/Makefile.in freeswitch-1.6.7/Makefile.in
  14. --- freeswitch-1.6.7.org/Makefile.in 2016-04-01 18:09:54.000000000 +0200
  15. +++ freeswitch-1.6.7/Makefile.in 2016-04-22 20:11:37.938961730 +0200
  16. @@ -4182,7 +4182,7 @@
  17. cd libs/libzrtp && $(MAKE)
  18. libs/libvpx/Makefile: libs/libvpx/.update
  19. - 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
  20. + cd libs/libvpx && CROSS=$(CROSS) 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
  21. libs/libvpx/libvpx.a: libs/libvpx/Makefile libs/libvpx/.update
  22. @cd libs/libvpx && $(MAKE)