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: Jiri B
Subject: Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition'
Date: Tue, 22 Mar 2016 06:31:31 -0400
User-agent: Mutt/1.5.23 (2014-03-12)

> >>> [...]
> >>>   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.

j.



reply via email to

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