[gobject-introspection] Disable rpath handling on Windows
- From: Marco Trevisan <marcotrevi src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gobject-introspection] Disable rpath handling on Windows
- Date: Fri, 5 Aug 2022 23:00:06 +0000 (UTC)
commit dd5dd6d1e10fd2dc793f8a9f0d4c95d4ff88c08f
Author: Christoph Reiter <reiter christoph gmail com>
Date: Tue Jul 19 09:22:47 2022 +0200
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.
giscanner/ccompiler.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index a6be9ee66..7a1e93938 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)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]