![Fabrice Fontaine](/assets/img/avatar_default.png)
On some architectures, atomic binutils are provided by the libatomic library from gcc. Linking with libatomic is therefore necessary, otherwise the build fails with: sparc-buildroot-linux-uclibc/sysroot/lib/libatomic.so.1: error adding symbols: DSO missing from command line This is often for example the case on sparcv8 32 bit. Fixes: http://autobuild.buildroot.net/results/fd6bee70ff20bee9607a9f6f557a3a793d00cd9f Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> [Thomas: use LIBS instead of LDFLAGS.] Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
69 lines
1.9 KiB
Makefile
69 lines
1.9 KiB
Makefile
################################################################################
|
|
#
|
|
# pinentry
|
|
#
|
|
################################################################################
|
|
|
|
PINENTRY_VERSION = 1.0.0
|
|
PINENTRY_SOURCE = pinentry-$(PINENTRY_VERSION).tar.bz2
|
|
PINENTRY_SITE = https://www.gnupg.org/ftp/gcrypt/pinentry
|
|
PINENTRY_LICENSE = GPL-2.0+
|
|
PINENTRY_LICENSE_FILES = COPYING
|
|
PINENTRY_DEPENDENCIES = \
|
|
libassuan libgpg-error \
|
|
$(if $(BR2_PACKAGE_LIBICONV),libiconv) \
|
|
host-pkgconf
|
|
PINENTRY_CONF_OPTS += \
|
|
--with-libassuan-prefix=$(STAGING_DIR)/usr \
|
|
--with-libgpg-error-prefix=$(STAGING_DIR)/usr \
|
|
--without-libcap # requires PAM
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
PINENTRY_CONF_ENV += LIBS=-latomic
|
|
endif
|
|
|
|
# build with X if available
|
|
ifeq ($(BR2_PACKAGE_XORG7),y)
|
|
PINENTRY_CONF_OPTS += --with-x
|
|
else
|
|
PINENTRY_CONF_OPTS += --without-x
|
|
endif
|
|
|
|
ifeq ($(BR2_PACKAGE_LIBSECRET),y)
|
|
PINENTRY_CONF_OPTS += --enable-libsecret
|
|
PINENTRY_DEPENDENCIES += libsecret
|
|
else
|
|
PINENTRY_CONF_OPTS += --disable-libsecret
|
|
endif
|
|
|
|
# pinentry-ncurses backend
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_NCURSES),y)
|
|
PINENTRY_CONF_OPTS += --enable-ncurses --with-ncurses-include-dir=none
|
|
PINENTRY_DEPENDENCIES += ncurses
|
|
else
|
|
PINENTRY_CONF_OPTS += --disable-ncurses
|
|
endif
|
|
|
|
# pinentry-gtk2 backend
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_GTK2),y)
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-gtk2
|
|
PINENTRY_DEPENDENCIES += libgtk2
|
|
else
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-gtk2
|
|
endif
|
|
|
|
# pinentry-qt4/5 backend
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_QT4)$(BR2_PACKAGE_PINENTRY_QT5),y)
|
|
ifeq ($(BR2_PACKAGE_PINENTRY_QT4),y)
|
|
# -pthread needs to be passed for certain toolchains
|
|
# http://autobuild.buildroot.net/results/6be/6be109ccedec603a67cebdb31b55865dcce0e128/
|
|
PINENTRY_CONF_OPTS += LIBS=-pthread MOC=$(HOST_DIR)/bin/moc
|
|
endif
|
|
PINENTRY_CONF_OPTS += --enable-pinentry-qt
|
|
PINENTRY_DEPENDENCIES += $(if $(BR2_PACKAGE_PINENTRY_QT4),qt,qt5base)
|
|
else
|
|
PINENTRY_CONF_OPTS += --disable-pinentry-qt
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|