mailarchive of the ptxdist mailing list
 help / color / mirror / Atom feed
* [ptxdist] [RFC] standalone udev fails to build with recent GCC toolchain
@ 2014-01-06  9:20 Jürgen Beisert
  0 siblings, 0 replies; only message in thread
From: Jürgen Beisert @ 2014-01-06  9:20 UTC (permalink / raw)
  To: ptxdist

Linking the standalone udev fails due to the missing librt when using
a more recent GCC toolchain to compile the package. It seems in earlier 
versions of the GCC toolchain librt comes in from a different library udev is 
linked against.

How to fix it? Adding a patch to its buildsystem to force the librt when 
linking udev? Or more simply with the following approach?

diff --git a/rules/udev.make b/rules/udev.make
index dcdf79c..735c1c2 100644
--- a/rules/udev.make
+++ b/rules/udev.make
@@ -44,6 +44,7 @@ UDEV_LICENSE	:= GPLv2
 #
 UDEV_CONF_ENV := \
 	$(CROSS_ENV) \
+	LIBS=-lrt \
 	CPPFLAGS="-I$(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)"
 
 UDEV_CONF_TOOL	:= autoconf

jbe

-- 
Pengutronix e.K.                              | Juergen Beisert             |
Linux Solutions for Science and Industry      | http://www.pengutronix.de/  |

-- 
ptxdist mailing list
ptxdist@pengutronix.de

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-01-06  9:17 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-06  9:20 [ptxdist] [RFC] standalone udev fails to build with recent GCC toolchain Jürgen Beisert

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