Bug 790084: incremental updates to .a causes missing debug info (r=wmaddox)
authorTom Rodriguez <throdrig@adobe.com>
Tue, 18 Sep 2012 14:18:05 -0700
changeset 7549 06379be1981dcfc9d66ea97b9c6200d9b6d36757
parent 7548 9429ae120cc8dcbbee37f7703a884447ade7eb25
child 7550 eb149b6a31e6cf70b6685f26700027b5c98dde14
push id4259
push userdschaffe@adobe.com
push dateFri, 21 Sep 2012 15:36:33 +0000
reviewerswmaddox
bugs790084, 1113772
Bug 790084: incremental updates to .a causes missing debug info (r=wmaddox) CL@1113772
build/configuration.py
--- a/build/configuration.py
+++ b/build/configuration.py
@@ -215,18 +215,18 @@ class Configuration:
         elif self._target[0] == 'darwin':
             self._acvars.update({
                 'DLL_SUFFIX'   : 'dylib',
                 'CPPFLAGS'     : '-pipe',
                 'CXXFLAGS'     : '',
                 'CFLAGS'       : '',
                 'DLL_CFLAGS'   : '-fPIC',
                 'LDFLAGS'      : '-framework CoreServices',
-                'AR'           : 'ar',
-                'MKSTATICLIB'  : '$(AR) cr $(1)',
+                'AR'           : 'libtool',
+                'MKSTATICLIB'  : '$(AR) -static -o $(1)',
                 'MKDLL'        : '$(CXX) -dynamiclib -single_module -install_name @executable_path/$(1) -o $(1)',
                 'MKPROGRAM'    : '$(CXX) -o $(1)',
                 'POSTMKPROGRAM': 'dsymutil $(1)'
                 })
 
 # -Wno-trigraphs -Wreturn-type -Wnon-virtual-dtor -Wmissing-braces -Wparentheses -Wunused-label  -Wunused-parameter -Wunused-variable -Wunused-value -Wuninitialized
 
             if 'CXX' in os.environ: