Buildroot Archive on lore.kernel.org
 help / color / mirror / Atom feed
* [Buildroot] [PATCH] aiccu: fix undefined reference to clock_* functions
@ 2014-01-14 11:22 Vicente Olivert Riera
  2014-01-14 21:41 ` Peter Korsgaard
  0 siblings, 1 reply; 2+ messages in thread
From: Vicente Olivert Riera @ 2014-01-14 11:22 UTC (permalink / raw)
  To: buildroot

Since glibc 2.17 the clock_* suite functions are available directly in
the main C library. For previous versions we still need -lrt to link.

Upstream is aware of this problem.

Fixes:
   http://autobuild.buildroot.net/results/c11/c1182b00f9d968e587acba15af4af905b92227f5/

Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>
---
 .../aiccu-0003-clock-suite-functions-fix.patch     |   18 ++++++++++++++++++
 1 files changed, 18 insertions(+), 0 deletions(-)
 create mode 100644 package/aiccu/aiccu-0003-clock-suite-functions-fix.patch

diff --git a/package/aiccu/aiccu-0003-clock-suite-functions-fix.patch b/package/aiccu/aiccu-0003-clock-suite-functions-fix.patch
new file mode 100644
index 0000000..365e72a
--- /dev/null
+++ b/package/aiccu/aiccu-0003-clock-suite-functions-fix.patch
@@ -0,0 +1,18 @@
+aiccu: fix undefined reference to clock_* functions
+
+Since glibc 2.17 the clock_* suite functions are available directly in 
+the main C library. For previous versions we still need -lrt to link.
+
+Signed-off-by: Vicente Olivert Riera <vincent.riera@imgtec.com>
+
+--- aiccu/unix-console/Makefile.orig	2014-01-14 10:17:20.204602513 +0000
++++ aiccu/unix-console/Makefile	2014-01-14 10:17:31.435777359 +0000
+@@ -42,7 +42,7 @@ CFLAGS	+= -D AICCU_CONSOLE
+ # Currently defaultly builds only on Linux, but other platforms might easily also support it
+ ifeq ($(shell uname | grep -c "Linux"),1)
+ CFLAGS	+= -D AICCU_GNUTLS
+-LDFLAGS += -lgnutls
++LDFLAGS += -lgnutls -lrt
+ endif
+ 
+ # Linux
-- 
1.7.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [Buildroot] [PATCH] aiccu: fix undefined reference to clock_* functions
  2014-01-14 11:22 [Buildroot] [PATCH] aiccu: fix undefined reference to clock_* functions Vicente Olivert Riera
@ 2014-01-14 21:41 ` Peter Korsgaard
  0 siblings, 0 replies; 2+ messages in thread
From: Peter Korsgaard @ 2014-01-14 21:41 UTC (permalink / raw)
  To: buildroot

>>>>> "Vicente" == Vicente Olivert Riera <Vincent.Riera@imgtec.com> writes:

 > Since glibc 2.17 the clock_* suite functions are available directly in
 > the main C library. For previous versions we still need -lrt to link.

 > Upstream is aware of this problem.

 > Fixes:
 >    http://autobuild.buildroot.net/results/c11/c1182b00f9d968e587acba15af4af905b92227f5/

 > Signed-off-by: Vicente Olivert Riera <Vincent.Riera@imgtec.com>

Committed, thanks.

-- 
Bye, Peter Korsgaard

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2014-01-14 21:41 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2014-01-14 11:22 [Buildroot] [PATCH] aiccu: fix undefined reference to clock_* functions Vicente Olivert Riera
2014-01-14 21:41 ` Peter Korsgaard

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox