Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

There are several flags that the solaris linker does not support. Here we will write replacement options. Some of them can also be viewed by the ld -z helpcommand.

Unrecognized option

Replacement

Example

--version-scripts

-M

-Wl,--version-script=/path/to/file =>

-Wl,-M,/path/to/file

--whole-archive | --no-whole-archive

-zallextract | -zdefaultextract

-Wl,--whole-archive =>

-Wl,-zallextract

...