mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-09-26 12:00:48 -09:00
package/pocketpy: fix build without threads
pocketpy enables thread support by default (PK_ENABLE_THREADS=ON) and
then requires Threads from cmake, which fails on toolchains without
thread support:
CMake Error at /usr/share/cmake-3.28/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
Could NOT find Threads (missing: Threads_FOUND)
Thread support is optional, so enable it only when the toolchain
provides threads.
Signed-off-by: Dario Binacchi <dario.binacchi@amarulasolutions.com>
Signed-off-by: Julien Olivain <ju.o@free.fr>
This commit is contained in:
committed by
Julien Olivain
parent
a38ff8ca81
commit
376daf3dd0
@@ -12,6 +12,12 @@ POCKETPY_INSTALL_STAGING = YES
|
||||
|
||||
POCKETPY_CONF_OPTS = -DPK_BUILD_SHARED_LIB=ON
|
||||
|
||||
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
||||
POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=ON
|
||||
else
|
||||
POCKETPY_CONF_OPTS += -DPK_ENABLE_THREADS=OFF
|
||||
endif
|
||||
|
||||
define POCKETPY_INSTALL_TARGET_CMDS
|
||||
$(INSTALL) -D -m 0755 $(@D)/libpocketpy.so* $(TARGET_DIR)/usr/lib
|
||||
endef
|
||||
|
||||
Reference in New Issue
Block a user