grub-devel
[Top][All Lists]
Advanced

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

Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefine


From: Andrei Borzenkov
Subject: Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'
Date: Tue, 22 Mar 2016 20:48:03 +0300
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

22.03.2016 13:31, Jiri B пишет:
>>>>> [...]
>>>>>   CFLAGS=-ftrampolines -fno-stack-protector -fno-pie -nopie
>>>>>
>>>>> $ ls -l 
>>>>> /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.im*
>>>>> -rwxr-xr-x  1 jirib  wheel  3068 Mar 17 21:45 
>>>>> /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.image*
>>>>> -rw-r--r--  1 jirib  wheel  2832 Mar 17 21:45 
>>>>> /home/jirib/openbsd/pobj/grub-2.02-beta3/fake-amd64/usr/local/lib/grub/i386-pc/lzma_decompress.img
>>>>>
>>>>> [...]
>>>>>
>>
>> Good. Please test attached patch.
>>
>> [...]
>>
>> diff --git a/configure.ac b/configure.ac
>> index a85b134..57e1713 100644
>> --- a/configure.ac
>> +++ b/configure.ac
>> @@ -1185,9 +1185,9 @@ CFLAGS="$TARGET_CFLAGS"
>>  # Position independent executable.
>>  grub_CHECK_PIE
>>  [# Need that, because some distributions ship compilers that include
>> -# `-fPIE' in the default specs.
>> +# `-fPIE' or '-fpie' in the default specs.
>>  if [ x"$pie_possible" = xyes ]; then
>> -  TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE"
>> +  TARGET_CFLAGS="$TARGET_CFLAGS -fno-PIE -fno-pie"
>>  fi]
>>  
>>  CFLAGS="$TARGET_CFLAGS"
> 
> Thx, builds find on OpenBSD.
> 

OK, so we are left with -ipath. One possibility is something like
attached patch; another - to replace ipath with -path | grep -v. Latter
is probably more readable.

Attachment: find-ipath.patch
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]