diff options
author | Matthieu Patou <mat@matws.net> | 2010-10-30 16:51:20 +0400 |
---|---|---|
committer | Matthieu Patou <mat@samba.org> | 2010-10-30 13:45:18 +0000 |
commit | edebb76a616c40565383363bc240c0df50a850f3 (patch) | |
tree | cf97c5a18a70d332a0e9609a5c4fc5e0d7f5cce2 /buildtools/wafsamba/wafsamba.py | |
parent | 33b276c2f16c4ec70cf392e850558cfd6703d7e6 (diff) | |
download | samba-edebb76a616c40565383363bc240c0df50a850f3.tar.gz samba-edebb76a616c40565383363bc240c0df50a850f3.tar.xz samba-edebb76a616c40565383363bc240c0df50a850f3.zip |
build: strip -single_module when doing bundle on mac OS X
Diffstat (limited to 'buildtools/wafsamba/wafsamba.py')
-rw-r--r-- | buildtools/wafsamba/wafsamba.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/buildtools/wafsamba/wafsamba.py b/buildtools/wafsamba/wafsamba.py index a9dfc4036ce..35b39d36526 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 |