buildroot/package/ibrdtn-tools/ibrdtn-tools.mk
Vicente Olivert Riera 0d3f4752af ibrdtn-tools: fix linking problem when building statically
The problem looks like this:

/br/output/host/usr/mipsel-buildroot-linux-uclibc/sysroot/usr//lib/librt.a(timer_routines.os):
In function `__start_helper_thread':
timer_routines.c:(.text+0x2f4): undefined reference to `pthread_atfork'
collect2: error: ld returned 1 exit status

Adding -pthread to LDFLAGS fixes the problem.

Fixes:

  http://autobuild.buildroot.net/results/a87/a87a764d3a28f835ed8645923594f7023a662ae8/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2015-10-04 11:43:21 +02:00

32 lines
893 B
Makefile

################################################################################
#
# ibrdtn-tools
#
################################################################################
IBRDTN_TOOLS_VERSION = 1.0.1
IBRDTN_TOOLS_SITE = https://www.ibr.cs.tu-bs.de/projects/ibr-dtn/releases
IBRDTN_TOOLS_LICENSE = Apache-2.0
IBRDTN_TOOLS_LICENSE_FILES = COPYING
IBRDTN_TOOLS_DEPENDENCIES = ibrcommon ibrdtn host-pkgconf
ifeq ($(BR2_STATIC_LIBS),y)
IBRDTN_TOOLS_CONF_ENV += LDFLAGS="$(TARGET_LDFLAGS) -pthread"
endif
ifeq ($(BR2_PACKAGE_LIBDAEMON),y)
IBRDTN_TOOLS_CONF_OPTS += --with-libdaemon
IBRDTN_TOOLS_DEPENDENCIES += libdaemon
else
IBRDTN_TOOLS_CONF_OPTS += --without-libdaemon
endif
ifeq ($(BR2_PACKAGE_LIBARCHIVE),y)
IBRDTN_TOOLS_CONF_OPTS += --with-libarchive
IBRDTN_TOOLS_DEPENDENCIES += libarchive
else
IBRDTN_TOOLS_CONF_OPTS += --without-libarchive
endif
$(eval $(autotools-package))