![]() System : Linux absol.cf 5.4.0-198-generic #218-Ubuntu SMP Fri Sep 27 20:18:53 UTC 2024 x86_64 User : www-data ( 33) PHP Version : 7.4.33 Disable Function : pcntl_alarm,pcntl_fork,pcntl_waitpid,pcntl_wait,pcntl_wifexited,pcntl_wifstopped,pcntl_wifsignaled,pcntl_wifcontinued,pcntl_wexitstatus,pcntl_wtermsig,pcntl_wstopsig,pcntl_signal,pcntl_signal_get_handler,pcntl_signal_dispatch,pcntl_get_last_error,pcntl_strerror,pcntl_sigprocmask,pcntl_sigwaitinfo,pcntl_sigtimedwait,pcntl_exec,pcntl_getpriority,pcntl_setpriority,pcntl_async_signals,pcntl_unshare, Directory : /usr/local/share/cmake-3.15/Help/command/ |
Upload File : |
To pass options to the linker tool, each compiler driver has is own syntax. The ``LINKER:`` prefix can be used to specify, in a portable way, options to pass to the linker tool. The ``LINKER:`` prefix is replaced by the required driver option and the rest of the option string defines linker arguments using ``,`` as separator. These arguments will be formatted according to the :variable:`CMAKE_<LANG>_LINKER_WRAPPER_FLAG` and :variable:`CMAKE_<LANG>_LINKER_WRAPPER_FLAG_SEP` variables. For example, ``"LINKER:-z,defs"`` becomes ``-Xlinker -z -Xlinker defs`` for ``Clang`` and ``-Wl,-z,defs`` for ``GNU GCC``. The ``LINKER:`` prefix can be specified as part of a ``SHELL:`` prefix expression. The ``LINKER:`` prefix supports, as alternate syntax, specification of arguments using ``SHELL:`` prefix and space as separator. Previous example becomes ``"LINKER:SHELL:-z defs"``. .. note:: Specifying ``SHELL:`` prefix elsewhere than at the beginning of the ``LINKER:`` prefix is not supported.