ibrdtn-tools: fix linking problem when building statically
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>
Thu, 10 Sep 2015 10:03:00 +0000 (11:03 +0100)
committerPeter Korsgaard <peter@korsgaard.com>
Sun, 4 Oct 2015 09:43:21 +0000 (11:43 +0200)
commit0d3f4752af7a11215c1ef05f1b4f32bfca7d5a1b
treec9282c603d1130fa5139bff95cdb231fcfc41cfd
parent0f75b2635ee564fbbdb9ea631cf39fa8731d6d6c
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>
package/ibrdtn-tools/ibrdtn-tools.mk