package/physfs: needs threads support

When physfs is built for a Linux system the PHYSFS_PLATFORM_POSIX (which
enable code that use pthread_*()) symbol must be defined, so threads support
is required.  The physfs build system used by the previous version didn't
correctly set PHYSFS_PLATFORM_POSIX for system without pthread support.

Add pthread dependency.

Fixes:
http://autobuild.buildroot.org/results/75d/75d68ff9da42d61f47d80b463445c12bc51ed1a4

Signed-off-by: Romain Naour <romain.naour@smile.fr>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
This commit is contained in:
Romain Naour 2018-01-19 14:59:29 +01:00 committed by Peter Korsgaard
parent 3c937807a3
commit 53252f23b7

View file

@ -1,10 +1,11 @@
config BR2_PACKAGE_PHYSFS config BR2_PACKAGE_PHYSFS
bool "physfs" bool "physfs"
depends on BR2_INSTALL_LIBSTDCPP depends on BR2_INSTALL_LIBSTDCPP
depends on BR2_TOOLCHAIN_HAS_THREADS
help help
PhysicsFS; a portable, flexible file i/o abstraction. PhysicsFS; a portable, flexible file i/o abstraction.
http://icculus.org/physfs http://icculus.org/physfs
comment "physfs needs a toolchain w/ C++" comment "physfs needs a toolchain w/ C++, threads"
depends on !BR2_INSTALL_LIBSTDCPP depends on !BR2_INSTALL_LIBSTDCPP || !BR2_TOOLCHAIN_HAS_THREADS