From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1aiJbS-00077L-HT for mharc-grub-devel@gnu.org; Tue, 22 Mar 2016 06:31:58 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:35553) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiJbQ-00074g-0C for grub-devel@gnu.org; Tue, 22 Mar 2016 06:31:56 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1aiJbL-0006SJ-Vs for grub-devel@gnu.org; Tue, 22 Mar 2016 06:31:55 -0400 Received: from wolfman.devio.us ([98.142.108.75]:43352) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1aiJbB-0006Pz-PP; Tue, 22 Mar 2016 06:31:41 -0400 Received: from localhost (localhost [127.0.0.1]) by wolfman.devio.us (Postfix) with ESMTP id 40239201DBC; Tue, 22 Mar 2016 06:31:35 -0400 (EDT) X-Virus-Scanned: amavisd-new at devio.us Received: from wolfman.devio.us ([127.0.0.1]) by localhost (wolfman.devio.us [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id ioMVQRgp_KcG; Tue, 22 Mar 2016 06:31:32 -0400 (EDT) Received: by wolfman.devio.us (Postfix, from userid 2589) id E8BD8201DEE; Tue, 22 Mar 2016 06:31:31 -0400 (EDT) Date: Tue, 22 Mar 2016 06:31:31 -0400 From: Jiri B To: Andrei Borzenkov Subject: Re: [openbsd] 2.02-beta3: build fails - getroot.c:(.text+0x2b): undefined reference to `getrawpartition' Message-ID: <20160322103131.GH32407@wolfman.devio.us> References: <20160314181957.GV17281@wolfman.devio.us> <56E706FC.4000905@gmail.com> <20160317101239.GY17281@wolfman.devio.us> <56EAD33C.2020805@gmail.com> <56EAD654.9080509@gmail.com> <20160317205641.GB32407@wolfman.devio.us> <56EB7577.2010503@gmail.com> <20160318130142.GE32407@wolfman.devio.us> <56EC3279.2020909@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <56EC3279.2020909@gmail.com> User-Agent: Mutt/1.5.23 (2014-03-12) X-detected-operating-system: by eggs.gnu.org: OpenBSD 4.x-5.x X-Received-From: 98.142.108.75 Cc: Vladimir 'phcoder' Serbinenko , The development of GNU GRUB , bug-grub@gnu.org X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 22 Mar 2016 10:31:57 -0000 > >>> [...] > >>> 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.