summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMatthieu Patou <mat@matws.net>2010-10-30 16:51:20 +0400
committerMatthieu Patou <mat@samba.org>2010-10-30 13:45:18 +0000
commitedebb76a616c40565383363bc240c0df50a850f3 (patch)
treecf97c5a18a70d332a0e9609a5c4fc5e0d7f5cce2
parent33b276c2f16c4ec70cf392e850558cfd6703d7e6 (diff)
downloadsamba-edebb76a616c40565383363bc240c0df50a850f3.tar.gz
samba-edebb76a616c40565383363bc240c0df50a850f3.tar.xz
samba-edebb76a616c40565383363bc240c0df50a850f3.zip
build: strip -single_module when doing bundle on mac OS X
-rw-r--r--buildtools/wafsamba/wafsamba.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py
index a9dfc4036c..35b39d3652 100644
--- a/buildtools/wafsamba/wafsamba.py
+++ b/buildtools/wafsamba/wafsamba.py
@@ -972,3 +972,15 @@ def samba_display(self):
Task.TaskBase.classes['Task'].old_display = Task.TaskBase.classes['Task'].display
Task.TaskBase.classes['Task'].display = samba_display
+
+
+@after('apply_link')
+@feature('cshlib')
+def apply_bundle_remove_dynamiclib_patch(self):
+ if self.env['MACBUNDLE'] or getattr(self,'mac_bundle',False):
+ if not getattr(self,'vnum',None):
+ try:
+ self.env['LINKFLAGS'].remove('-dynamiclib')
+ self.env['LINKFLAGS'].remove('-single_module')
+ except ValueError:
+ pass