92f367b474
Link with -latomic if needed to avoid the following build failure since bump to version 2.0.1 in commit0f8d4a6ecd
and5528267b54
: /tmp/instance-0/output-1/per-package/gensio/host/opt/ext-toolchain/bin/../lib/gcc/sparc-buildroot-linux-uclibc/9.3.0/../../../../sparc-buildroot-linux-uclibc/bin/ld: ../lib/.libs/libgensio.so: undefined reference to `__atomic_fetch_add_4' Fixes: - http://autobuild.buildroot.org/results/2114f9cb3d820fc620932e793f53341a0c1f10bc - http://autobuild.buildroot.org/results/c1b397eea1c2eda19149844cec4a87d55651862d Signed-off-by: Fabrice Fontaine <fontaine.fabrice@gmail.com> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
35 lines
872 B
Makefile
35 lines
872 B
Makefile
################################################################################
|
|
#
|
|
# gensio
|
|
#
|
|
################################################################################
|
|
|
|
GENSIO_VERSION = 2.2.9
|
|
GENSIO_SITE = http://downloads.sourceforge.net/project/ser2net/ser2net
|
|
GENSIO_LICENSE = LGPL-2.1+ (library), GPL-2.0+ (tools)
|
|
GENSIO_LICENSE_FILES = COPYING.LIB COPYING
|
|
GENSIO_INSTALL_STAGING = YES
|
|
GENSIO_CONF_OPTS = \
|
|
--without-openipmi \
|
|
--without-swig \
|
|
--without-python
|
|
|
|
ifeq ($(BR2_PACKAGE_OPENSSL),y)
|
|
GENSIO_DEPENDENCIES += host-pkgconf openssl
|
|
GENSIO_CONF_OPTS += --with-openssl
|
|
else
|
|
GENSIO_CONF_OPTS += --without-openssl
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_LIBATOMIC),y)
|
|
GENSIO_CONF_ENV += LIBS=-latomic
|
|
endif
|
|
|
|
ifeq ($(BR2_TOOLCHAIN_HAS_THREADS),y)
|
|
GENSIO_CONF_OPTS += --with-pthreads
|
|
else
|
|
GENSIO_CONF_OPTS += --without-pthreads
|
|
endif
|
|
|
|
$(eval $(autotools-package))
|