]> git.ipfire.org Git - thirdparty/libarchive.git/commit
Skip unsupported linker options on illumos. 2835/head
authorJosh Carp <jm.carp@gmail.com>
Wed, 31 Dec 2025 22:37:01 +0000 (22:37 +0000)
committerJosh Carp <jm.carp@gmail.com>
Wed, 31 Dec 2025 22:37:01 +0000 (22:37 +0000)
commit3ff73fdfce4814a886024658acf4a358bc55eca6
tree24c8a31f5699ae8ac2ff4c31454c2e944cca9d40
parente91171c9a03077c5a1ff5f1c181fe0da4121261a
Skip unsupported linker options on illumos.

Building on illumos currently fails with:

```
ld: fatal: unrecognized option '--gc-sections'
```

This happens because `--gc-sections` isn't supported on illumos `ld`.
This patch updates CMakeLists.txt to skip unsupported linker options on
illumos. The flags used on other operating systems are optimizations
that don't affect correctness, so this change is safe.
CMakeLists.txt