Accepting request 98401 from devel:openSUSE:Factory
1. set --target=%{_target_plaform) explicitly to %configure in case it wouldn't do that for us implicitly 2. when making x86_64-efi image not use i386 target build and keep use of x86_64. otherwise it would have error "invalid ELF header" (forwarded request 98397 from michael-chang) OBS-URL: https://build.opensuse.org/request/show/98401 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/grub2?expand=0&rev=27
This commit is contained in:
parent
2c853cae15
commit
9bb9d2c66d
@ -1,3 +1,11 @@
|
||||
-------------------------------------------------------------------
|
||||
Thu Dec 29 02:31:23 UTC 2011 - mchang@suse.com
|
||||
|
||||
- set --target=%{_target_plaform) explicitly to %configure in case
|
||||
it wouldn't do that for us implicitly
|
||||
- when making x86_64-efi image not use i386 target build and keep
|
||||
use of x86_64. otherwise it would have error "invalid ELF header"
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Dec 2 16:31:14 UTC 2011 - coolo@suse.com
|
||||
|
||||
|
13
grub2.spec
13
grub2.spec
@ -44,11 +44,6 @@ BuildRequires: xz
|
||||
# Modules always contain just 32-bit code
|
||||
%define _libdir %{_exec_prefix}/lib
|
||||
|
||||
# 64-bit x86-64 machines use 32-bit boot loader
|
||||
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
|
||||
%ifarch x86_64
|
||||
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
|
||||
%endif
|
||||
%ifarch ppc ppc64
|
||||
%define platform ieee1275
|
||||
%else
|
||||
@ -149,6 +144,7 @@ FFLAGS=" "
|
||||
export CFLAGS CXXFLAGS FFLAGS
|
||||
%configure \
|
||||
TARGET_LDFLAGS=-static \
|
||||
--target=%{_target_platform} \
|
||||
--with-platform=efi \
|
||||
--program-transform-name=s,grub,%{name}-efi,
|
||||
make %{?_smp_mflags}
|
||||
@ -171,9 +167,16 @@ CXXFLAGS=" "
|
||||
FFLAGS=" "
|
||||
export CFLAGS CXXFLAGS FFLAGS
|
||||
|
||||
# 64-bit x86-64 machines use 32-bit boot loader
|
||||
# (We cannot just redefine _target_cpu, as we'd get i386.rpm packages then)
|
||||
%ifarch x86_64
|
||||
%define _target_platform i386-%{_vendor}-%{_target_os}%{?_gnu}
|
||||
%endif
|
||||
|
||||
# -static is needed so that autoconf script is able to link
|
||||
# test that looks for _start symbol on 64 bit platforms
|
||||
%configure TARGET_LDFLAGS=-static \
|
||||
--target=%{_target_platform} \
|
||||
--with-platform=%{platform} \
|
||||
--enable-grub-emu-usb \
|
||||
--program-transform-name=s,grub,%{name},
|
||||
|
Loading…
Reference in New Issue
Block a user