package/assimp: fix static only build
authorPeter Seiderer <ps.report@gmx.net>
Sun, 12 Apr 2020 16:35:25 +0000 (18:35 +0200)
committerThomas Petazzoni <thomas.petazzoni@bootlin.com>
Sun, 12 Apr 2020 21:22:17 +0000 (23:22 +0200)
commitb44b5cb265e3764169aa4856f40e8e2db55cba22
tree6ab9b2d548b1301a87240a911365f2daa8041e09
parent14476b7fcaf102dcc39b5d4919a4f08660f821de
package/assimp: fix static only build

Add patch to disable internal dynamic zlib library building, fixes
compile failure for static only toolchains (and assimp links
against the static one).

Fixes:

  http://autobuild.buildroot.net/results/7c2db184ee200d1719308f38f42382bb39d8d5c6

  [13%] Linking C shared library ../../lib/libzlib.so
  .../arm-buildroot-linux-uclibcgnueabi/bin/ld: .../host/arm-buildroot-linux-uclibcgnueabi/sysroot/usr/lib/libc.a(__uClibc_main.os): in function `__uClibc_fini':
  __uClibc_main.c:(.text+0x15c): undefined reference to `__fini_array_start'
  .../arm-buildroot-linux-uclibcgnueabi/bin/ld: __uClibc_main.c:(.text+0x160): undefined reference to `__fini_array_end'
  .../arm-buildroot-linux-uclibcgnueabi/bin/ld: final link failed: bad value
  collect2: error: ld returned 1 exit status

Signed-off-by: Peter Seiderer <ps.report@gmx.net>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
package/assimp/0003-contrib-zlib-disable-dynamic-library-building.patch [new file with mode: 0644]