Patchwork [meta-oe,2/3] udev: link librt explicitly on uclibc

login
register
mail settings
Submitter Khem Raj
Date June 26, 2012, 3:55 p.m.
Message ID <1340726124-30861-2-git-send-email-raj.khem@gmail.com>
Download mbox | patch
Permalink /patch/30659/
State Accepted
Commit 030296b6a5380d46c7732aaebbb25a0fb8af79b4
Headers show

Comments

Khem Raj - June 26, 2012, 3:55 p.m.
Some functions used by udev are in librt in uclibc case
therefore add -lrt to linker flags when building for uclibc

Signed-off-by: Khem Raj <raj.khem@gmail.com>
---
 meta-oe/recipes-core/udev/udev_182.bb |    2 ++
 1 file changed, 2 insertions(+)

Patch

diff --git a/meta-oe/recipes-core/udev/udev_182.bb b/meta-oe/recipes-core/udev/udev_182.bb
index f2bdd75..7d88aed 100644
--- a/meta-oe/recipes-core/udev/udev_182.bb
+++ b/meta-oe/recipes-core/udev/udev_182.bb
@@ -12,6 +12,7 @@  LIC_FILES_CHKSUM = "file://COPYING;md5=b234ee4d69f5fce4486a80fdaf4a4263 \
                     file://src/COPYING;md5=17c4e5fb495e6707ac92a3864926f979 \
                     file://src/gudev/COPYING;md5=fb494485a7d0505308cb68e4997cc266"
 
+PR = "r1"
 # glib-2.0: Needed for udev-extras
 # util-linux: Needed for libblkid
 # kmod: needed for libkmod
@@ -51,6 +52,7 @@  do_configure_prepend() {
 	cp ${WORKDIR}/gtk-doc.make ${S}
 }
 
+LDFLAGS_prepend-libc-uclibc = " -lrt "
 PACKAGES =+ "${PN}-systemd libudev libgudev udev-consolekit udev-utils"
 
 FILES_${PN}-systemd = "${systemd_unitdir}"