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.