Follow-up Comment #9, sr #111069 (group libtool):

[comment #8 comment #8:] 
> If you could modify this patch to include a linker version check that should
be sufficient.

You could probably try to parse this output:
```
❯ cc -Wl,-version_details -xc - -o /dev/null <<<'int main(){}' 2>/dev/null
{
        "version": "1053.12",
        "architectures": [
                "armv6",
                "armv7",
                "armv7s",
                "arm64",
                "arm64e",
                "arm64_32",
                "i386",
                "x86_64",
                "x86_64h",
                "armv6m",
                "armv7k",
                "armv7m",
                "armv7em"
        ],
        "lto": {
                "runtime_api_version": 29,
                "static_api_version": 29,
                "version_string": "LLVM version 15.0.0"
        },
        "tapi": {
                "version": "15.0.0",
                "version_string": "Apple TAPI version 15.0.0
(tapi-1500.3.2.2)"
        }
}
```

You need `version` to be greater than or equal to 711. If it errors you can
probably assume that `-no_fixup_chains` is not supported.

You could probably also parse the output of `ld -v`, but that might be a
little more fiddly.


    _______________________________________________________

Reply to this item at:

  <https://savannah.gnu.org/support/?111069>

_______________________________________________
Message sent via Savannah
https://savannah.gnu.org/


Reply via email to