From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from thebe.hi.pengutronix.de ([2001:6f8:1178:2:5e26:aff:fe2b:7cc4]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1W06Jf-0007ak-0G for ptxdist@pengutronix.de; Mon, 06 Jan 2014 10:17:47 +0100 From: =?iso-8859-15?q?J=FCrgen_Beisert?= Date: Mon, 6 Jan 2014 10:20:15 +0100 MIME-Version: 1.0 Content-Disposition: inline Message-Id: <201401061020.15990.jbe@pengutronix.de> Subject: [ptxdist] [RFC] standalone udev fails to build with recent GCC toolchain Reply-To: ptxdist@pengutronix.de List-Id: PTXdist Development Mailing List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Content-Type: text/plain; charset="iso-8859-15" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de 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 :=3D GPLv2 # UDEV_CONF_ENV :=3D \ $(CROSS_ENV) \ + LIBS=3D-lrt \ CPPFLAGS=3D"-I$(KERNEL_HEADERS_INCLUDE_DIR) $(CROSS_CPPFLAGS)" = UDEV_CONF_TOOL :=3D autoconf jbe -- = Pengutronix e.K. =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 =A0 = =A0| Juergen Beisert =A0 =A0 =A0 =A0 =A0 =A0 | Linux Solutions for Science and Industry =A0 =A0 =A0| http://www.pengutroni= x.de/ | -- = ptxdist mailing list ptxdist@pengutronix.de