Tcl Source Code

View Ticket
Login
Ticket UUID: 97b8e1d54ba6f9a0b7f0712310f79faf70788a49
Title: -mdynamic-no-pic not supported on Apple Silicon
Type: Bug Created on: 2021-11-27 22:29:49
Submitter: ilg-ul Assigned to: jan.nijtmans
Subsystem: 53. Configuration and Build Tools Severity: Minor
Priority: 5 Medium Last modified: 2021-12-09 12:05:57
Status: Closed Closed by: chrstphrchvz
Resolution: Fixed Closed on: 2021-12-09 12:05:57
Version: 8.6
Description:
The macOS configure script always adds -mdynamic-no-pic to the build, but this option is not available on Apple Silicon:

- https://github.com/iains/gcc-darwin-arm64/issues/55#issuecomment-980795386

It appears that clang silently ignores it, and GCC will probably too, but it would be still preferable for the configure script to not issue it at all.
User Comments:
jan.nijtmans added on 2021-11-28 22:07:08:

Although very unlikely that Tcl 8.6.12 still works on 32-bit intel Mac (or even earlier), fixed now for Tcl 8.7. I see that a workaround for (Darwin) gcc is already implemented, so there is no urge to fix it in 8.6 too. But knowing that there no longer will be support for this option, better removed it for 8.7. Done now.

Thanks for the report!


chrstphrchvz added on 2021-12-09 12:05:57:

For anyone curious, MacPorts was able to build Tcl 8.6.12 and various extensions for macOS 10.6 Snow Leopard on 32-bit Intel: https://ports.macports.org/port/tcl/details/