Hi,

Update: fix a few endian and relocation issue, I can now build all
i386/x64_64/powerpc targets from x86/powerpc OSX Tiger/Leopard.

Note: when building on OSX, I recommend adding configure option
--disable-grub-fstest --disable-grub-emu --disable-mkfont. grub-fstest
can be built successfully, but OSX don't allow executing code from
stack, running grub-fstest would cause a segment fault. grub-emu can
be broken occasionally, and even if it's compiled ok, it has the same
problem as grub-fstest. grub-mkfont is currently broken on OSX.

Here are some information on configure parameter:

x86 OSX 10.5 (Leopard), Xcode 3.0, gcc 4.0
i386-pc:
./configure --with-platform=pc --disable-grub-fstest
--disable-grub-emu --disable-mkfont

x86_64-efi:
./configure --with-platform=efi  --target=x86_64 --disable-grub-fstest
--disable-grub-emu --disable-mkfont

powerpc-ieee1275:
./configure --with-platform=ieee1275  --target=powerpc
TARGET_CC=powerpc-apple-darwin9-gcc-4.0.1 --disable-grub-fstest
--disable-grub-emu --disable-mkfont

powerpc OSX 10.4 (Tiger), Xcode 2.5, gcc 4.0
i386-pc:
./configure --with-platform=pc --target=i386
TARGET_CC=i686-apple-darwin8-gcc-4.0.1 --disable-grub-fstest
--disable-grub-emu --disable-mkfont

x86_64-efi:
./configure --with-platform=efi  --target=x86_64
TARGET_CC=i686-apple-darwin8-gcc-4.0.1 --disable-grub-fstest
--disable-grub-emu --disable-mkfont

powerpc-ieee1275:
./configure --with-platform=ieee1275 --disable-grub-fstest
--disable-grub-emu --disable-mkfont

BTW, the default bison installed on OSX tiger would cause compile
error, install bison from macport and it would be ok.

-- 
Bean

gitgrub home: http://github.com/grub/grub/
my fork page: http://github.com/bean123/grub/


_______________________________________________
Grub-devel mailing list
Grub-devel@gnu.org
http://lists.gnu.org/mailman/listinfo/grub-devel

Reply via email to