summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 22:28:47 +0200
committerThomas Petazzoni <thomas.petazzoni@free-electrons.com>2014-07-23 23:32:05 +0200
commitf0592c9f6581d4446d12acfd9a27b5cf18875625 (patch)
treeea72ebb69c0b149314ecf65b9331ec4f3b886026
parent8a9382d7168773c4e4d12fb5d9d43f99db6b8723 (diff)
downloadbuildroot-f0592c9f6581d4446d12acfd9a27b5cf18875625.tar.gz
buildroot-f0592c9f6581d4446d12acfd9a27b5cf18875625.zip
libpthsem: add libpth compatibility option
This commit adds the BR2_PACKAGE_LIBPTHSEM_COMPAT option to the libpthsem package, in order to enable the compatibility with the pth library, which is useful to support gnupg2. Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
-rw-r--r--package/libpthsem/Config.in10
-rw-r--r--package/libpthsem/libpthsem.mk7
2 files changed, 17 insertions, 0 deletions
diff --git a/package/libpthsem/Config.in b/package/libpthsem/Config.in
index ae1c78f5ea..932acecd07 100644
--- a/package/libpthsem/Config.in
+++ b/package/libpthsem/Config.in
@@ -7,3 +7,13 @@ config BR2_PACKAGE_LIBPTHSEM
version, with support for semaphores added.
http://www.auto.tuwien.ac.at/~mkoegler/pth/
+
+if BR2_PACKAGE_LIBPTHSEM
+
+config BR2_PACKAGE_LIBPTHSEM_COMPAT
+ bool "libpth compatibility"
+ help
+ This option enables the compatibility with the original
+ libpth library.
+
+endif
diff --git a/package/libpthsem/libpthsem.mk b/package/libpthsem/libpthsem.mk
index dbfab34263..040229edd7 100644
--- a/package/libpthsem/libpthsem.mk
+++ b/package/libpthsem/libpthsem.mk
@@ -14,4 +14,11 @@ LIBPTHSEM_INSTALL_STAGING = YES
LIBPTHSEM_DEPENDENCIES = argp-standalone
LIBPTHSEM_CONFIG_SCRIPTS = pthsem-config
+ifeq ($(BR2_PACKAGE_LIBPTHSEM_COMPAT),y)
+LIBPTHSEM_CONF_OPT += --enable-compat
+LIBPTHSEM_CONFIG_SCRIPTS += pth-config
+else
+LIBPTHSEM_CONF_OPT += --disable-compat
+endif
+
$(eval $(autotools-package))
OpenPOWER on IntegriCloud