From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from mail-bk0-f44.google.com ([209.85.214.44]) by metis.ext.pengutronix.de with esmtp (Exim 4.72) (envelope-from ) id 1S9e2h-0003XF-Iy for ptxdist@pengutronix.de; Mon, 19 Mar 2012 15:58:42 +0100 Received: by bkuw5 with SMTP id w5so5182072bku.31 for ; Mon, 19 Mar 2012 07:58:31 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <1332097818-23592-5-git-send-email-linux@bohmer.net> References: <1332097818-23592-1-git-send-email-linux@bohmer.net> <1332097818-23592-5-git-send-email-linux@bohmer.net> Date: Mon, 19 Mar 2012 15:58:31 +0100 Message-ID: From: Remy Bohmer Subject: Re: [ptxdist] [PATCH 4/9] [x86_64, multilib] Make packages install their libraries at the right place 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-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, > diff --git a/rules/pre/Rules.make b/rules/pre/Rules.make > index 1d6da52..d6d40e0 100644 > --- a/rules/pre/Rules.make > +++ b/rules/pre/Rules.make > @@ -174,6 +174,15 @@ CROSS_ENV_PROGS :=3D \ > =A0 =A0 =A0 =A0$(CROSS_ENV_CPP_FOR_BUILD) \ > =A0 =A0 =A0 =A0$(CROSS_ENV_LINK_FOR_BUILD) > > +# Outputs 'lib' or 'lib64', derived from the ld-linux.so.2 from the comp= iler toolchain > +CROSS_LIB_DIR =A0:=3D $(shell =A0 \ > + =A0 =A0 =A0 dl=3D"$$(echo 'int main(void){return 0;}' | \ > + =A0 =A0 =A0 ${CROSS_CC} ${CROSS_CPPFLAGS} ${CROSS_CFLAGS} -x c -o /dev/= null -v - 2>&1 | \ > + =A0 =A0 =A0 sed -n -e 's/.* -dynamic-linker \([^ ]*\).*/\1/p')"; \ > + =A0 =A0 =A0 lib_dir=3D"$${dl%%/ld-linux*}"; \ This does not work uClibc based toolchains, there the linker is called ld-uClibc.so.0. I will post an update of the series. Kind regards, Remy -- = ptxdist mailing list ptxdist@pengutronix.de