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 1S7Osq-0002oW-Ji for ptxdist@pengutronix.de; Tue, 13 Mar 2012 11:23:13 +0100 Received: by bkuw5 with SMTP id w5so305417bku.31 for ; Tue, 13 Mar 2012 03:23:07 -0700 (PDT) MIME-Version: 1.0 In-Reply-To: <20120313095623.GH29221@pengutronix.de> References: <1331587504-16721-1-git-send-email-linux@bohmer.net> <1331587504-16721-2-git-send-email-linux@bohmer.net> <20120313095623.GH29221@pengutronix.de> Date: Tue, 13 Mar 2012 11:23:07 +0100 Message-ID: From: Remy Bohmer Subject: Re: [ptxdist] [PATCH 2/5] [x86_64] Add some support for multilib detection in the 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-1" Content-Transfer-Encoding: quoted-printable Sender: ptxdist-bounces@pengutronix.de Errors-To: ptxdist-bounces@pengutronix.de To: ptxdist@pengutronix.de Hi, 2012/3/13 Michael Olbrich : >> >> =A0 =A0 =A0lib=3D"${1}" >> + =A0 =A0extra_cflags=3D$(source ${PTXDIST_PLATFORMCONFIG} && echo "${PT= XCONF_TARGET_EXTRA_CFLAGS}") > > I think ptxd_get_ptxconf should work here. And I think you should use > PTXCONF_TARGET_EXTRA_CFLAGS and PTXCONF_TARGET_EXTRA_CPPFLAGS. I did not know that, I will look into that. >> =A0 =A0 =A0# ask the compiler for the lib >> - =A0 =A0lib_path=3D"$(${CC} -print-file-name=3D${lib})" >> + =A0 =A0lib_path=3D"$(${CC} ${extra_cflags} -print-file-name=3D${lib})" >> =A0 =A0 =A0if test "${lib_path}" =3D "${lib}"; then >> =A0 =A0 =A0 echo "install_copy_toolchain_lib: ${lib} not found" >&2 >> =A0 =A0 =A0 return 1 >> @@ -77,9 +78,10 @@ ptxd_get_lib_path() { >> =A0# >> =A0ptxd_get_dl() { >> =A0 =A0 =A0local dl >> + =A0 =A0extra_cflags=3D$(source ${PTXDIST_PLATFORMCONFIG} && echo "${PT= XCONF_TARGET_EXTRA_CFLAGS}") > > dito. OK. Thanks. Kind regards, Remy -- = ptxdist mailing list ptxdist@pengutronix.de