From GridLAB-D Wiki
Jump to: navigation, search

LDFLAGS -- Set the C++ linker flags for runtime classes

Synopsis

#setenv LDFLAGS=g++-command-line-options
/bin/bash$ export LDFLAGS=g++-command-line-options

Remarks

The default C++ runtime class linker options are as follows:

-shared
Generate a shared library (always included)
-m32
Generate 32-bit code (always included on 32-bit GridLAB-D versions)
-m64
Generate 64-bit code (always included on 64-bit GridLAB-D versions)
-lstdc++
Use the standard C++ library (always included)

If debug output is enabled, the -g optional to enable linking with debugging symbols is added automatically. If you wish to enable debugging without debug output generated, you must add the -g option to both CXXFLAGS and LDFLAGS.

Version

This option is supported as of Keeler (Version 4.0)

See also