[gobject-introspection] scanner: Fix non-libtool linker flags on Darwin



commit 3a140df2d29410d91f9bc86e9dd8bfbf82b3fad3
Author: Philip Chimento <philip chimento gmail com>
Date:   Tue May 16 21:48:51 2017 -0700

    scanner: Fix non-libtool linker flags on Darwin
    
    Darwin's linker doesn't like "-rpath=path"; instead pass "-rpath path",
    which works on more linkers than the version with the = sign does.
    
    Regressed in commit 5d4cd25292b8ed2c7a821ebe19fc5ab5d447db1a.
    
    https://bugzilla.gnome.org/show_bug.cgi?id=781525

 giscanner/ccompiler.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/giscanner/ccompiler.py b/giscanner/ccompiler.py
index 9951cc7..29de0ee 100644
--- a/giscanner/ccompiler.py
+++ b/giscanner/ccompiler.py
@@ -157,7 +157,7 @@ class CCompiler(object):
                         args.append('-rpath')
                         args.append(library_path)
                     else:
-                        args.append('-Wl,-rpath=' + library_path)
+                        args.append('-Wl,-rpath,' + library_path)
 
             runtime_paths.append(library_path)
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]