diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2022-07-19 09:22:47 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2022-07-19 22:17:41 +0200 |
commit | dd5dd6d1e10fd2dc793f8a9f0d4c95d4ff88c08f (patch) | |
tree | 9052ac7717c927d1f507a73e004162329fec4c9a | |
parent | 3c1b41fb14263e1693208df9cb03adc2057095a1 (diff) | |
download | gobject-introspection-dd5dd6d1e10fd2dc793f8a9f0d4c95d4ff88c08f.tar.gz |
Disable rpath handling on Windows
While gcc on Windows allows being passed -rpath and just ignores it,
llvm/lld will fail with "lld: error: unknown argument: -rpath".
There is no such thing as rpath on Windows, so just skip it.
-rw-r--r-- | giscanner/ccompiler.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py index a6be9ee6..7a1e9393 100644 --- a/giscanner/ccompiler.py +++ b/giscanner/ccompiler.py @@ -208,7 +208,7 @@ class CCompiler(object): args.append('-libpath:' + library_path) else: args.append('-L' + library_path) - if os.path.isabs(library_path): + if os.name != 'nt' and os.path.isabs(library_path): if libtool: args.append('-rpath') args.append(library_path) |