Thierry,
Can you try the attached patch ?
--
-{Nico}
Nico wrote:
> Thierry MUSEUX - www.fwt.fr - wrote:
>
>> Problem not solved, same thing with last trunk 21343
>> I am on debian x86_64
>> Why in configure:
>> checking build system type... x86_64-pc-linux-gnu
>>
>>
> It is solved.
>
> You have to investigate why your 64-bits build system refuses to build a
> 32-bits app (see ./build_dir/grub-0.97/config.log). Depending on the
> distro you're using, you might need to install additional packages like
> gcc-multilib (Debian/Ubuntu) or gcc.i686 & libgcc.i686 (CentOS/Fedora/RHEL).
>
> I'm working on Prereq check to spot that before attempting to build...
>
> Cheers,
> --
> -{Nico}
>
> _______________________________________________
> openwrt-devel mailing list
> [email protected]
> https://lists.openwrt.org/mailman/listinfo/openwrt-devel
>
Index: package/grub/Makefile
===================================================================
--- package/grub/Makefile (revision 21305)
+++ package/grub/Makefile (working copy)
@@ -67,5 +67,16 @@
$(CP) $(PKG_INSTALL_DIR)/usr/sbin/* $(1)/usr/sbin/
endef
+ifeq ($(HOST_ARCH),x86_64)
+ define Require/working-gcc32
+ echo 'int main(int argc, char **argv) { return 0; }' | \
+ gcc -x c -o $(TMP_DIR)/a.out - -m32 -lc
+ endef
+endif
+
+$(eval $(call Require,working-gcc32, \
+ Please install 32 bits development files. \
+))
+
$(eval $(call HostBuild))
$(eval $(call BuildPackage,grub))
_______________________________________________
openwrt-devel mailing list
[email protected]
https://lists.openwrt.org/mailman/listinfo/openwrt-devel