diff options
-rw-r--r-- | share/qbs/modules/cpp/gcc.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/share/qbs/modules/cpp/gcc.js b/share/qbs/modules/cpp/gcc.js index 95e3d198c..452d7a4d1 100644 --- a/share/qbs/modules/cpp/gcc.js +++ b/share/qbs/modules/cpp/gcc.js @@ -341,8 +341,8 @@ function linkerFlags(project, product, inputs, output, linkerPath) { } function isNotSystemRunPath(p) { - return !systemRunPaths.contains(p) - && !canonicalSystemRunPaths.contains(File.canonicalFilePath(p)); + return !FileInfo.isAbsolutePath(p) || (!systemRunPaths.contains(p) + && !canonicalSystemRunPaths.contains(File.canonicalFilePath(p))); }; for (i in rpaths) { if (isNotSystemRunPath(rpaths[i])) |