summaryrefslogtreecommitdiffstats
path: root/package/collectd/0002-ipc-enable-gnu-source.patch
diff options
context:
space:
mode:
authorVicente Olivert Riera <Vincent.Riera@imgtec.com>2015-09-07 09:35:03 +0100
committerPeter Korsgaard <peter@korsgaard.com>2015-11-24 09:14:55 +0100
commit7f1ec872cd163ff1b5dd2448f8ff8af1a7178347 (patch)
tree1a6b5d71523f743ed0ad7a4f03f868d361c0b6ef /package/collectd/0002-ipc-enable-gnu-source.patch
parent97ab48658d574ded87f8af799795ba7ed76f6ba4 (diff)
downloadbuildroot-7f1ec872cd163ff1b5dd2448f8ff8af1a7178347.tar.gz
buildroot-7f1ec872cd163ff1b5dd2448f8ff8af1a7178347.zip
openntpd: fix linking problem when building statically
The problem looks like this: CCLD ntpd ../compat/.libs/libcompat.a(libcompat_la-arc4random.o): In function `arc4random': /br/output/build/openntpd-5.7p4/compat/arc4random.c:183: undefined reference to `pthread_mutex_lock' /br/output/build/openntpd-5.7p4/compat/arc4random.c:185: undefined reference to `pthread_mutex_unlock' ../compat/.libs/libcompat.a(libcompat_la-arc4random.o): In function `arc4random_buf': /br/output/build/openntpd-5.7p4/compat/arc4random.c:192: undefined reference to `pthread_mutex_lock' /br/output/build/openntpd-5.7p4/compat/arc4random.c:194: undefined reference to `pthread_mutex_unlock' /br/output/build/openntpd-5.7p4/compat/arc4random.c:194: undefined reference to `pthread_mutex_unlock' collect2: error: ld returned 1 exit status Adding -pthread to CFLAGS fixes the problem. Fixes: http://autobuild.buildroot.net/results/b12/b120b6da87ae4eb355d06f2fd8f4fc8050410897/ [Peter: unconditionally pass in CFLAGS, add comment about why] Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com> Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
Diffstat (limited to 'package/collectd/0002-ipc-enable-gnu-source.patch')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud