Bug 955

Summary: Grub fails to build with External Toolchain
Product: buildroot Reporter: Clark Rawlins <clark.rawlins>
Component: OtherAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: buildroot
Priority: P5 Keywords: patch
Version: unspecified   
Target Milestone: 2010.05   
Hardware: PC   
OS: Linux   
Host: Target: i686-nptl-linux-gnu
Build: x86_64
Attachments: Fix external toolchain build error for grub and migrate grub to the autotools macro

Description Clark Rawlins 2010-01-25 21:43:26 UTC
Created attachment 979 [details]
Fix external toolchain build error for grub and migrate grub to the autotools macro

When building grub with an external toolchain I get the following failure.

make[1]: Entering directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub'
/opt/x-tools/i686-nptl-linux-gnu/bin/i686-nptl-linux-gnu-gcc  -static   -o grub  main.o asmstub.o ../stage2/libgrub.a  ../lib/libcommon.a -lncurses 
/opt/x-tools/i686-nptl-linux-gnu/lib/gcc/i686-nptl-linux-gnu/4.3.2/../../../../i686-nptl-linux-gnu/bin/ld: cannot find -lncurses
collect2: ld returned 1 exit status
make[1]: *** [grub] Error 1
make[1]: Leaving directory `/home/clark/src/br-upstream/output/build/grub-0.97/grub'
make: *** [/home/clark/src/br-upstream/output/build/grub-0.97/grub/grub] Error 2
Comment 1 Thomas Petazzoni 2010-07-13 18:21:56 UTC
The grub.mk file has been completely rewritten during the bootloaders-cleanup work, and here Grub compiles properly with an external toolchain.