summaryrefslogtreecommitdiffstats
path: root/package/sdl/sdl.mk
diff options
context:
space:
mode:
Diffstat (limited to 'package/sdl/sdl.mk')
-rw-r--r--package/sdl/sdl.mk9
1 files changed, 9 insertions, 0 deletions
diff --git a/package/sdl/sdl.mk b/package/sdl/sdl.mk
index 78eb4ddd8d..cc1ad06731 100644
--- a/package/sdl/sdl.mk
+++ b/package/sdl/sdl.mk
@@ -58,6 +58,15 @@ ifneq ($(BR2_USE_MMU),y)
SDL_CONF_OPTS += --enable-dga=no
endif
+# overwrite autodection (prevents confusion with host libpth version)
+ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
+SDL_CONF_OPTS += --enable-pth
+SDL_CONF_ENV += ac_cv_path_PTH_CONFIG=$(STAGING_DIR)/usr/bin/pth-config
+SDL_DEPENDENCIES += libpthsem
+else
+SDL_CONF_OPTS += --disable-pth
+endif
+
ifeq ($(BR2_PACKAGE_TSLIB),y)
SDL_DEPENDENCIES += tslib
endif
OpenPOWER on IntegriCloud