Changeset 76e28a8f in OpenModelica


Ignore:
Timestamp:
2022-05-17T12:14:31+02:00 (23 months ago)
Author:
Mahder Gebremedhin <mahder.geb@…>
Parents:
e4b7953
git-author:
Mahder Gebremedhin <mahder.geb@…> (05/17/22 12:12:47)
git-committer:
Mahder Gebremedhin <mahder.geb@…> (05/17/22 12:14:31)
Message:

Build the garbage collector (libomcgc) as a shared library.

  • The build type of omcgc with the autotools build is now changed to a shared library on Windows. This means it is now built everywhere as a shared lib.

The CMake build was building it as a static library on all platforms
to be consistent. Change it to shared lib now so we now, under both
build systems and on all platforms, build omcgc as a shared library.

Location:
OMCompiler
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OMCompiler/3rdParty

    • Property commit changed from af9b79766959e92cd3e996da37c50d9226b28ae0 to a3d6dae8301f7fa03292a35aae0ced8b710fca5d
  • OMCompiler/Compiler/runtime/CMakeLists.txt

    r8529da7 r76e28a8f  
    251251  set(CONFIG_OS "Windows_NT")
    252252
    253   set(RT_LDFLAGS_GENERATED_CODE " -lOpenModelicaRuntimeC -lopenblas -lm -lpthread")
    254   set(RT_LDFLAGS_GENERATED_CODE_SIM " -lSimulationRuntimeC -lOpenModelicaRuntimeC -lopenblas -lm -lpthread -lgfortran -lstdc++ ")
     253  set(RT_LDFLAGS_GENERATED_CODE " -lOpenModelicaRuntimeC -lomcgc -lopenblas -lm -lpthread")
     254  set(RT_LDFLAGS_GENERATED_CODE_SIM " -lSimulationRuntimeC -lOpenModelicaRuntimeC -lomcgc -lopenblas -lm -lpthread -lgfortran -lstdc++ ")
    255255  set(RT_LDFLAGS_GENERATED_CODE_SOURCE_FMU " -lopenblas -lm -lpthread ")
    256256  set(RT_LDFLAGS_GENERATED_CODE_SOURCE_FMU_STATIC "-Wl,-Bstatic -lSimulationRuntimeFMI -Wl,-Bdynamic -lopenblas -lm -lpthread -lgfortran -lstdc++ ")
     
    260260  set(CONFIG_OS ${OMC_TARGET_SYSTEM_NAME})
    261261
    262   set(RT_LDFLAGS_GENERATED_CODE " -lOpenModelicaRuntimeC -llapack -lblas -lm -lpthread -rdynamic")
    263   set(RT_LDFLAGS_GENERATED_CODE_SIM " -lSimulationRuntimeC -lOpenModelicaRuntimeC -lzlib -llapack -lblas -lm -ldl -lpthread -lgfortran -lstdc++ -rdynamic ")
     262  set(RT_LDFLAGS_GENERATED_CODE " -lOpenModelicaRuntimeC -lomcgc -llapack -lblas -lm -lpthread -rdynamic")
     263  set(RT_LDFLAGS_GENERATED_CODE_SIM " -lSimulationRuntimeC -lOpenModelicaRuntimeC -lomcgc -lzlib -llapack -lblas -lm -ldl -lpthread -lgfortran -lstdc++ -rdynamic ")
    264264  set(RT_LDFLAGS_GENERATED_CODE_SOURCE_FMU " -llapack -lblas -lm -lpthread -rdynamic ")
    265265  set(RT_LDFLAGS_GENERATED_CODE_SOURCE_FMU_STATIC "-Wl,-Bstatic -lSimulationRuntimeFMI -Wl,-Bdynamic -llapack -lblas -lm -ldl -lpthread -lgfortran -lstdc++ -rdynamic ")
Note: See TracChangeset for help on using the changeset viewer.