From fc6493f44154f375e375a761caeb5e0a09098359 Mon Sep 17 00:00:00 2001 From: Edouard DUPIN Date: Wed, 21 Oct 2015 21:40:59 +0200 Subject: [PATCH] [DEBUG] strip Ok on MacOs (missing -u flag) --- lutin/z_builder/lutinBuilder_libraryDynamic.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/lutin/z_builder/lutinBuilder_libraryDynamic.py b/lutin/z_builder/lutinBuilder_libraryDynamic.py index e59f391..6b21595 100644 --- a/lutin/z_builder/lutinBuilder_libraryDynamic.py +++ b/lutin/z_builder/lutinBuilder_libraryDynamic.py @@ -127,9 +127,15 @@ def link(file, binary, target, depancy, flags, name, basic_path, static=False): # get the file size of the non strip file originSize = tools.file_size(file_dst); debug.print_element("SharedLib(strip)", name, "", "") - cmdLineStrip=tools.list_to_str([ - target.strip, - file_dst]) + if target.name == "MacOs": + cmdLineStrip=tools.list_to_str([ + target.strip, + "-u", + file_dst]) + else: + cmdLineStrip=tools.list_to_str([ + target.strip, + file_dst]) multiprocess.run_command(cmdLineStrip, store_output_file=file_warning) # get the stip size of the binary stripSize = tools.file_size(file_dst)