Skip to content
mba105 edited this page Sep 24, 2014 · 2 revisions

Home > [Scripting Reference](Scripting Reference) > linkoptions


linkoptions

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

#!lua
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.

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

Clone this wiki locally