summary refs log tree commit diff
path: root/pkgs/development/libraries/gobject-introspection/darwin-fixups.patch
blob: 02443d56afabc8bce6c9467e9e73d6b6b076aedb (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
diff -ur gobject-introspection-1.46.0-orig/giscanner/ccompiler.py gobject-introspection-1.46.0/giscanner/ccompiler.py
--- gobject-introspection-1.46.0-orig/giscanner/ccompiler.py	2016-02-01 12:25:41.000000000 -0500
+++ gobject-introspection-1.46.0/giscanner/ccompiler.py	2016-02-01 15:50:36.000000000 -0500
@@ -128,11 +128,7 @@
                     self.compiler.add_runtime_library_dir('.')
 
                 # https://bugzilla.gnome.org/show_bug.cgi?id=625195
-                args.append('-Wl,-rpath=.')
-
-                # Ensure libraries are always linked as we are going to use ldd to work
-                # out their names later
-                args.append('-Wl,--no-as-needed')
+                args.append('-Wl,-rpath,.')
 
             for library in libraries:
                 self.compiler.add_library(library)
@@ -140,7 +136,7 @@
                 for library_path in libpaths:
                     args.append('-L' + library_path)
                     if os.path.isabs(library_path):
-                        args.append('-Wl,-rpath=' + library_path)
+                        args.append('-Wl,-rpath,' + library_path)
 
         else:
             # libtool case: assemble linker command arguments, like we did before
Only in gobject-introspection-1.46.0/giscanner: ccompiler.py~