changeset 6184:6a6aabe5121b

darwin: do not kill rpath for cross packages. Allows using rpath in cross/gcc.
author Jan Nieuwenhuizen <janneke@gnu.org>
date Sat, 25 Aug 2012 12:10:59 +0200
parents 5d6c1bb0dd46
children 71587882ddc3
files gub/darwin.py
diffstat 1 files changed, 2 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/gub/darwin.py	Sat Aug 25 10:01:39 2012 +0200
+++ b/gub/darwin.py	Sat Aug 25 12:10:59 2012 +0200
@@ -139,7 +139,8 @@
     @context.subst_method
     def rpath (foo):
         return ''
-    package.rpath = misc.MethodOverrider (package.nop, rpath)
+    if not isinstance (package, cross.AutoBuild):
+        package.rpath = misc.MethodOverrider (package.nop, rpath)
 
     @context.subst_method
     def so_extension (foo):