-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Hi,

I'm working on adding Go (http://golang.org) to OpenWRT. Actually, I already have it working.

The goals:
 - Create gcc crosscompiler with the gccgo frontend which can be used to
compile a go project into a binary.
 - Build and include libgo.so in the target image. libgo.so is the only
run-time requirement for binaries built with gccgo. ("go packages" that
are included in the project are compiled into the binary, afaik there's no
need for a packages feed providing go libs)

To achieve these I've added some directives in the OpenWRT makefiles an
menu config.
https://github.com/GeertJohan/openwrt-go/commit/ac3ad0dc738ed94bed82723b486566b23ea491d1

This all works fine, and I have go binaries running on the MikroTIK 750GL. However, I would like to add/fix a two problems before I create and submit a patch.

GCC version
The gccgo frontend is only available in gcc 4.7.x (or higher). What would
be the proper way to force the user to use gcc 4.7.x (or higher) when
building with gccgo?
Can the "Build/install gccgo compiler?" option be greyed out until the
proper version of gcc is selected?

libgo.so depends on eglibc
I have the same "dependency" problem with libgo.so, it requires eglibc. The default is uclibc. What would be the proper way to notify the user? I don't want people having to figure out why their build fails when it can be avoided.

Any thoughts on how to do this?
Do you see anything else that might need attention before submitting a
patch?

Best regards,
Geert-Johan Riemer
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iQIcBAEBAgAGBQJSy9NjAAoJEIzWgJZJy3OF/LYP/iyLmmOs8/JgdSi96ukqoYRW
rGjQo1+TktJBt1ugaGef5owmtB7JHipxtLj3wTshhPE1j9X4/AeZZ/sr7AIyd9u6
XUo6w15CIo4sHNynxW/umtT5Si13VMDf+OXUcq6aYP8MzfDqraEm1xKN5p7nsSdF
x9Fpq/6hDfdcqQpFwkmULahNVdV6yKzP+uRTTNZ5JaZ3zFOD4FS5SQ02GoUyrHDh
V4FJf0lGRZ4z2VfBhg8HC9rdaZTNppnO7TS0xnwMbq+G1+vAl97fKKVP4P8Fkwm8
YlKbqPdbvWMxGRtMncm6ZtaDpZ9HIaTPwjnyjEb4NrY8c/cVch5C8ZzjcoppFYet
vZyM419ASKQ3EG0yIRgtlia7bUc+lKGdvCsPWZJfHeSUfY5U02tLTA0dj3Nw7pl6
CKy9bud/LVHDasCRToJOFj5PZyjmUqvmC265HTGYm2Ii/c+J/C5Hxilj+h5U08EN
4INyesALfSLRkV6T3Fum0Fq8+0P5qU0O4cJU9HQTylwOn9Oe/Y8svUriVbq0LKfL
EzsTA9umnTtfvVG9vtS0thxwJ4b4+6suCecUnl2ooN0lkG5VySt8W8k87SBvNEWV
ZeB2+9xb2kkpBdFi3KTixSZlfJG6AYPuK0zFWRIjI+iPfywu7ZjXQ4VXBNjxSYa+
WQ/OwMquyuK8LQpL92OJ
=tSy8
-----END PGP SIGNATURE-----
_______________________________________________
openwrt-devel mailing list
openwrt-devel@lists.openwrt.org
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-devel

Reply via email to