Hi Matthias,
On Saturday 18 January 2014 13:47:11 Matthias Klein wrote:
> with the new ptxdist release udev does not build. (The same as with
> ptxdist 2013.12.0)
This only happens in conjunction with the new toolchain release 2013.12 and the
option "[*] Link only needed libraries (ld --as-needed)". Older toolchains do
not complain.
> You wrote that you have a patch floating around somewhere to link udev
> with librt.
> Do you still have that patch, or do we need to make a new patch ?
The patch could be more or less trivial. This is one way:
diff --git a/configs/platform-friendlyarm-mini2440/rules/udev.make
b/configs/platform-friendlyarm-mini2440/rules/udev.make
index bbdf76b..9786b9f 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
But a correct patch which fixes *why* the librt is missing would be much
better.
jbe
--
Pengutronix e.K. | Juergen Beisert |
Linux Solutions for Science and Industry | http://www.pengutronix.de/ |
--
ptxdist mailing list
[email protected]