From d5e172e98d442b6af263da56531dd175258bc1ab Mon Sep 17 00:00:00 2001 From: Mahder Gebremedhin Date: Thu, 29 Oct 2020 12:49:09 +0100 Subject: [PATCH] Explicitly link to boost system --- OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo b/OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo index 657572a6f01..88909c12ab6 100644 --- a/OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo +++ b/OMCompiler/Compiler/SimCode/SimCodeFunctionUtil.mo @@ -2645,7 +2645,7 @@ algorithm cflags := if stringEq(Config.simCodeTarget(),"JavaScript") then "-Os -Wno-warn-absolute-paths" else cflags; ldflags := System.getLDFlags(); if Flags.getConfigBool(Flags.PARMODAUTO) then - ldflags := "-lParModelicaAuto -ltbb_static " + ldflags; + ldflags := "-lParModelicaAuto -ltbb_static -lboost_system" + ldflags; end if; rtlibs := if isFunction then Autoconf.ldflags_runtime else (if isFMU then Autoconf.ldflags_runtime_fmu else Autoconf.ldflags_runtime_sim); platform := System.modelicaPlatform();