[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH 2/3] configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS


  • To: Roger Pau Monné <roger.pau@xxxxxxxxxx>
  • From: Bertrand Marquis <Bertrand.Marquis@xxxxxxx>
  • Date: Fri, 22 May 2020 11:40:06 +0000
  • Accept-language: en-GB, en-US
  • Arc-authentication-results: i=1; mx.microsoft.com 1; spf=pass smtp.mailfrom=arm.com; dmarc=pass action=none header.from=arm.com; dkim=pass header.d=arm.com; arc=none
  • Arc-message-signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=microsoft.com; s=arcselector9901; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version:X-MS-Exchange-SenderADCheck; bh=u6AVmq4i3qqZSAG4+PoTdBB32oBNrQBYxRDH4Lj/iFE=; b=gySMzVmvCtX681uLFTFr4Q7QXyH7P0JjDxf6Z8tdPoOpIXIRpCTtPWFlWNkz4/czLNrCecVBwoiw5P1SQnRzIEGVzaXTiMEmjNATbuyusfzaIDicuEQNSsmuzpkbL9y1jfwFa9/Nw1DDbQg90OFzYLbhO3CnWX4HXvIONoBuoBJHQKbbB4m3yzHFHZTe3yLNVaRjq6e4htOQFT9Fp51O3UM3+d3ba/sV9/IqjAyNdNFjtSGr397c+xCG+aFJl1+ZY/LhLVyZUPVwdH92yzN3UtHRleanZp5Q4Bo8+QxydT/TP0UhEoSMLL9ldJGrYLH2co/ihMizaDSXpUxjuzuztQ==
  • Arc-seal: i=1; a=rsa-sha256; s=arcselector9901; d=microsoft.com; cv=none; b=knmBnsOgeEMK7JUoF8+6iPXcLAgMzGD7Mx8UzKVSlTdgpU85p/kLVuut9m+7esQNTN1siQ+CjrmcEH/VwkPn5D1V+nPl5npBq9kEiPL0sneAOE/m8Q+MdnLAA1ia3tIz3rUvgPBmFV9e5QWwOA8tBTnHedLvnvIkFlaWfu+kOn0h/AJ2nn7KYKRb1/eRXeuqa6HuYSNoYQ7nSMcj5AClprM66zJQ9OW4brtNxPGWRFr60ueb8LMFTuKvu8WKIeq0O5iZyxvSuLnRBjZFv7MIpKg9ztmcPeJjho29kiwO4d/uh3AdsKq0Oj+JD/o82en5wCafWav+zmOenhKFqug9fw==
  • Authentication-results-original: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
  • Cc: xen-devel <xen-devel@xxxxxxxxxxxxxxxxxxxx>, nd <nd@xxxxxxx>, Ian Jackson <ian.jackson@xxxxxxxxxxxxx>, Wei Liu <wl@xxxxxxx>
  • Delivery-date: Fri, 22 May 2020 11:40:36 +0000
  • List-id: Xen developer discussion <xen-devel.lists.xenproject.org>
  • Nodisclaimer: true
  • Original-authentication-results: citrix.com; dkim=none (message not signed) header.d=none;citrix.com; dmarc=none action=none header.from=arm.com;
  • Thread-index: AQHWIr9BT1TmXNUg30iaUVp4td7OCaiz5AWAgAAG4ICAACVhAIAABbUA
  • Thread-topic: [PATCH 2/3] configure: also add EXTRA_PREFIX to {CPP/LD}FLAGS


> On 22 May 2020, at 12:19, Roger Pau Monné <roger.pau@xxxxxxxxxx> wrote:
> 
> On Fri, May 22, 2020 at 10:05:53AM +0100, Wei Liu wrote:
>> On Fri, May 22, 2020 at 08:41:17AM +0000, Bertrand Marquis wrote:
>>> Hi,
>>> 
>>> As a consequence of this fix, the following has been committed (I guess as 
>>> a consequence of regenerating the configure scripts):
>>> diff --git a/tools/configure b/tools/configure
>>> index 375430df3f..36596389b8 100755
>>> --- a/tools/configure
>>> +++ b/tools/configure
>>> @@ -4678,6 +4678,10 @@ for ldflag in $APPEND_LIB
>>> do
>>>     APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
>>> done
>>> +if  ! -z $EXTRA_PREFIX ; then
>>> +    CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include"
>>> +    LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib"
>>> +fi
>>> CPPFLAGS="$PREPEND_CPPFLAGS $CPPFLAGS $APPEND_CPPFLAGS"
>>> LDFLAGS="$PREPEND_LDFLAGS $LDFLAGS $APPEND_LDFLAGS”
>>> 
>>> This should be:
>>> if  [ ! -z $EXTRA_PREFIX ]; then
>>> 
>>> As on other configure scripts.
>>> 
>>> During configure I have not the following error:
>>> ./configure: line 4681: -z: command not found
>>> 
>>> Which is ignored but is adding -L/lib and -I/include to the CPPFLAGS and 
>>> LDFLAGS
>>> 
>>> What should be the procedure to actually fix that (as the problem is coming 
>>> from the configure script regeneration I guess) ? 
>> 
>> Does the following patch work for you?
>> 
>> diff --git a/m4/set_cflags_ldflags.m4 b/m4/set_cflags_ldflags.m4
>> index 08f5c983cc63..cd34c139bc94 100644
>> --- a/m4/set_cflags_ldflags.m4
>> +++ b/m4/set_cflags_ldflags.m4
>> @@ -15,7 +15,7 @@ for ldflag in $APPEND_LIB
>> do
>>     APPEND_LDFLAGS="$APPEND_LDFLAGS -L$ldflag"
>> done
>> -if [ ! -z $EXTRA_PREFIX ]; then
>> +if test ! -z $EXTRA_PREFIX ; then
>>     CPPFLAGS="$CPPFLAGS -I$EXTRA_PREFIX/include"
>>     LDFLAGS="$LDFLAGS -L$EXTRA_PREFIX/lib"
>> fi
> 
> Reviewed-by: Roger Pau Monné <roger.pau@xxxxxxxxxx>
Reviewed-by: Bertrand Marquis <bertrand.marquis@xxxxxxx>

> 
> My bad, I assume [] is expanded by m4, as that seems to be part of the
> language?
> 
> Thanks, Roger.


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.