Overview
| Artifact ID: | 92845c315da72b4967367c4bc58bc1336144f8c75d16f6888f20df8c17fffdf3 |
|---|---|
| Ticket: | 4663e0636f7a24b9363e67c7a3dd25e9e495be17
TIP 538 and Tcl extensions: 'tommath.h' file not found |
| User & Date: | jan.nijtmans on 2020-05-19 09:31:33 |
Changes
- icomment:
> Why doesn't Tcl provide this compat/tommath.h ... Since libtommath is now an external library, just as zlib. The provided <tommath.h> is - starting with 8.7 - maintained externally. As soon as libtommath 1.3 is released, Tcl can be compiled with it instead of the built-in. My hope is that - in the coming years - libtommath 1.2 will be provided by more (Linux) distributions (MacOS already has it in homebrew now), so installation of libtommath will become less of a burden. I - actually - don't see the need for the --without-system-libtommath option: If a suitable external libtommath is available, why would you still want to build a stripped-down version into Tcl???? So, yes, it's a burden. I don't think Tcl should take care of installing <tommath.h>, since whenever a newer libtommath version is released the newer version has preference. libtommath's maintenance is extenally now, Tcl should follow it. Tcl providing a stripped-down internal version is just a service. The <tommath.h> included by Tcl is just a fallback in case someone doesn't want to get it somewhere else. I could imagine TEA providing a TEA_TOMMATH macro, which determines the include/linker flags depending on how Tcl is built. But there are not so many extensions with this problem, NSF is about the only one I know of. Well, searching for it, I found "tclral" and "twapi" too, so that makes 3. Depending on an external libtommath would make things a lot easier. I'll think about what can be done to improve the situation.
- login: "jan.nijtmans"
- mimetype: "text/x-fossil-wiki"