LDFLAGS() to ymake.core.conf
@@ -2941,6 +2941,13 @@ macro DUMPERF_CODEGEN(Prefix) {
.CMD=$BASE_CODEGEN(extsearch/images/robot/tools/dumperf/codegen, $Prefix, ${output_include;hide:"extsearch/images/kernel/erf/erf_format.h"})
}
+### @usage: LDFLAGS(linker_flags)
+### Add flags to the linkage command line of executable or shared library/dll.
+### Note: remember about the incompatibility of flags for gcc and cl.
+macro LDFLAGS(Flags...) {
+ SET_APPEND(LDFLAGS_GLOBAL $Flags)
+}
+
# LDFLAGS "macro" does not substitute build variables. Use this fixed version to workaround.
macro LDFLAGS_FIXED(Flags...) {
SET_APPEND(LDFLAGS $Flags)
