Skip to content
This repository was archived by the owner on May 18, 2019. It is now read-only.

Commit d9dbed6

Browse files
AndreasOpenModelica-Hudson
authored andcommitted
Fix rpath for OMSI FMU with gcc
Belonging to [master]: - OpenModelica/OpenModelica#171 - #3084
1 parent a4e794b commit d9dbed6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Compiler/Template/CodegenOMSIC.tpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ template createMakefile(SimCode simCode, String target, String makeflieName)
145145
let OMLibs = match makefileParams.platform case "win32" case "win64" then 'lib' case "linux64" then 'lib/x86_64-linux-gnu' else 'lib'
146146
let lapackDirWin = match makefileParams.platform case "win32" then '$(OMDEV)/tools/msys/mingw32/bin' case "win64" then '$(OMDEV)/tools/msys/mingw64/bin' else ''
147147
let libEnding = match makefileParams.platform case "win32" case "win64" then 'dll' else 'so'
148-
let rpath = match makefileParams.platform case "win32" case "win64" then '' else "-rpath '$$ORIGIN/.'"
148+
let rpath = match makefileParams.platform case "win32" case "win64" then '' else "\"-Wl,-rpath,\$$ORIGIN/.\""
149149
let star = match makefileParams.platform case "win32" case "win64" then '' else '*'
150150
let fPIC = match makefileParams.platform case "win32" case "win64" then '' else '-fPIC '
151151

0 commit comments

Comments
 (0)