Overview
| Artifact ID: | c893ef168e1de6526636ab9a574b2bacbdeaedef |
|---|---|
| Ticket: | 541181ffffffffffffffffffffffffffffffffff
gcc compiled Tcl library needs libgcc |
| User & Date: | dgp on 2002-06-27 12:06:59 |
Changes
- icomment:
Logged In: YES user_id=80530 The missing symbols are routines supplied by gcc for doing math on "long long" values. The implementation of these routines is in libgcc.a, so the linking of the embedding application can be completed by adding that library to those linked, as Andreas suggested before. Note that I see this problem with both gcc-2.95.2 and gcc-3.0.3. It is a new problem because of new "long long" code within Tcl, not because of a change in compiler. So, one approach to fix this would be to see that the appropriate -L... -lgcc options get added to the TCL_LIBS value in tclConfig.sh. Another might be to require embedders to use the TCL_CC compiler recorded in tclConfig.sh. Neither of those is really a satisfactory answer though, because it requires the embedder to use the same toolset as the library builder. It would be better if the binary Tcl and Tk libraries could be distributed in a binary distribution for embedding into applications possibly by a different toolset. So, it would be best to find some options to pass to the linker during the construction of libtcl8.4.so that force it to pull the math support code out of libgcc and put it directly into libtcl8.4.so. (I'm assuming that libgcc is LGPL). Anyone know linker options well enough to proceed along that path?
- login: "dgp"
- mimetype: "text/plain"
- priority changed to: "8"
- username: "dgp"