linkoptions

The linkoptions function passes arguments directly to the linker command line without translation.

linkoptions { "options" }

If a project includes multiple calls to linkoptions the lists are concatenated, in the order in which they appear in the script.

Applies To

Solutions, projects, and configurations.

Parameters

options is a list of linker flags and options, specific to a particular linker.

Examples

Use pkg-config style configuration when building on Linux with GCC. Build options are always linker specific and should be targeted to a particular toolset.

configuration { "linux", "gmake" }
  linkoptions { "`wx-config --libs`" }

in Examples closing character is missing.
correct is:
configuration { "linux", "gmake" }
buildoptions { "`wx-config --ldflags`" }

Fixed, thanks for reporting it!

and more correctly (topic is 'linkoptions' not 'buildoptions'):

configuration { "linux", "gmake" }
  linkoptions { "`wx-config --ldflags`" }
<code>
configuration { "linux", "gmake" }
  linkoptions { "`wx-config --libs`" }

- topic is 'linkoptions' not 'buildoptions'
- wx-config wants --libs and not --ldflags