mirror of
https://github.com/openwrt/video.git
synced 2026-07-12 20:34:48 +04:00
a022f83b56
The buildbot reported vice missing dependencies for libbsd.so.0,
libnet.so.9 and libusb-1.0.so.0. All three came from configure
autodetecting libraries that merely happened to be present in
staging_dir:
- The NETPLAY_LIBS probes run AC_CHECK_LIB(bsd/net/..., gethostbyname)
and AC_CHECK_LIB(bsd, gettimeofday). On musl these symbols live in
libc, so every probe spuriously succeeds for any of those libraries
that exists, appending -lbsd and -lnet.
- The USBSID-Pico path adds -lusb-1.0 to LIBS whenever
libusb-1.0/libusb.h is found; it is gated only by the unregistered
$enable_usbsid shell variable.
Force the offending cache variables off and set enable_usbsid=no, and
pin every remaining dependency-affecting knob to an explicit value so
nothing is auto-detected. Also disable --enable-arch, which defaults to
on and injects -march=native, wrong under cross-compilation.
Verified on x86_64: the binaries no longer link libbsd, libnet or
libusb and the package builds cleanly.
Signed-off-by: Daniel Golle <daniel@makrotopia.org>