libpthsem.mk 1.4 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ################################################################################
  2. #
  3. # libpthsem
  4. #
  5. ################################################################################
  6. LIBPTHSEM_VERSION = 2.0.8
  7. LIBPTHSEM_SOURCE = pthsem_$(LIBPTHSEM_VERSION).tar.gz
  8. LIBPTHSEM_SITE = http://www.auto.tuwien.ac.at/~mkoegler/pth
  9. LIBPTHSEM_LICENSE = LGPL-2.1+
  10. LIBPTHSEM_LICENSE_FILES = COPYING
  11. LIBPTHSEM_AUTORECONF = YES
  12. LIBPTHSEM_INSTALL_STAGING = YES
  13. LIBPTHSEM_CONFIG_SCRIPTS = pthsem-config
  14. # Force the setjmp/longjmp detection, because the test being done in
  15. # the AC_CHECK_SJLJ macro is not cross-compilation safe: it checks the
  16. # running kernel with 'uname -r', and checks the C library version by
  17. # looking at /usr/include/features.h. In terms of kernel version, it
  18. # assumes any version later than 2.2.x is fine, except that it doesn't
  19. # recognize 4.x as a valid kernel version, recognizing such systems as
  20. # "braindead" and therefore falling back to the 'sjljlx' value for
  21. # ac_cv_check_sjlj. In terms of C library version, it wants
  22. # __GLIBC_MINOR to be at least 1. Since both conditions are true for
  23. # all Buildroot systems, we can simply force the setjmp/longjmp
  24. # detection to ssjlj.
  25. LIBPTHSEM_CONF_ENV += \
  26. ac_cv_check_sjlj=ssjlj
  27. ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
  28. LIBPTHSEM_CONF_OPTS += --enable-compat
  29. LIBPTHSEM_CONFIG_SCRIPTS += pth-config
  30. else
  31. LIBPTHSEM_CONF_OPTS += --disable-compat
  32. endif
  33. $(eval $(autotools-package))