Summary: | ocaml-3.07-r1.ebuild ignores my CFLAGS (e.g. -Os) | ||
---|---|---|---|
Product: | Gentoo Linux | Reporter: | Gavin <colonel_dolphin> |
Component: | New packages | Assignee: | Gentoo Team for the ML programming language family <ml> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | High | ||
Version: | unspecified | ||
Hardware: | x86 | ||
OS: | Linux | ||
Whiteboard: | |||
Package list: | Runtime testing required: | --- | |
Bug Depends on: | |||
Bug Blocks: | 59506 |
Description
Gavin
2004-05-20 14:21:47 UTC
The ocaml compiler has a configure script that is devoted to setting the right options for gcc on the different arches and does not accept any flag to set particular CFLAGS. I asked on the list why it is so and got no response, which i can interpret as 'we do not support other CFLAGS than ours'. This is quite sensible given how the native compilation is fine-tuned in ocaml and repose on gcc options. I can't fix it, changing the Makefiles etc.., as if I do that I won't be able to ask for support or submit bug reports on ocaml anymore. Well, right now ocaml will break for any systems requiring ABI flags, it will break crossbuilding and it will break GRP. Ignoring CFLAGS isn't a valid solution. Ok, i added support for CFLAGS in ocaml-3.07-r1 and ocaml-3.08 with a warning in pkg_setup() about unsafe flags and unexpected bugs. Now it will not ignore -Os so i close this bug. |