grub: set nopie=yes
I tried to patch include/grub/i386/tsc.h and grub-core/loader/i386/xnu.c to avoid clobbering %rbx (or %ebx) when using cpuid, but finally the linking of trig.module would fail due to picking up the LDFLAGS. Disabling PIE seems to be the only way for now.
This commit is contained in:
parent
ea069975d5
commit
d9bbd8091c
|
@ -1,7 +1,7 @@
|
||||||
# Template file for 'grub'
|
# Template file for 'grub'
|
||||||
pkgname=grub
|
pkgname=grub
|
||||||
version=2.00
|
version=2.00
|
||||||
revision=24
|
revision=25
|
||||||
hostmakedepends="flex"
|
hostmakedepends="flex"
|
||||||
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
makedepends="libusb-compat-devel ncurses-devel freetype-devel
|
||||||
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
liblzma-devel device-mapper-devel font-unifont-bdf fuse-devel"
|
||||||
|
@ -14,6 +14,7 @@ homepage="http://www.gnu.org/software/grub/"
|
||||||
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
|
distfiles="$GNU_SITE/grub/grub-$version.tar.xz"
|
||||||
checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458
|
checksum=784ec38e7edc32239ad75b8e66df04dc8bfb26d88681bc9f627133a6eb85c458
|
||||||
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
only_for_archs="i686 i686-musl x86_64 x86_64-musl"
|
||||||
|
nopie=yes
|
||||||
|
|
||||||
subpackages="grub-utils grub-i386-efi"
|
subpackages="grub-utils grub-i386-efi"
|
||||||
case "$XBPS_TARGET_MACHINE" in
|
case "$XBPS_TARGET_MACHINE" in
|
||||||
|
|
Loading…
Reference in New Issue