[pypy-svn] r79819 - pypy/branch/cpyext-darwin/pypy/translator/platform

danchr at codespeak.net danchr at codespeak.net
Sat Dec 4 20:50:54 CET 2010


Author: danchr
Date: Sat Dec  4 20:50:53 2010
New Revision: 79819

Modified:
   pypy/branch/cpyext-darwin/pypy/translator/platform/posix.py
Log:
Fix building --shared on Mac OS X, when non-default architecture is used.

Modified: pypy/branch/cpyext-darwin/pypy/translator/platform/posix.py
==============================================================================
--- pypy/branch/cpyext-darwin/pypy/translator/platform/posix.py	(original)
+++ pypy/branch/cpyext-darwin/pypy/translator/platform/posix.py	Sat Dec  4 20:50:53 2010
@@ -166,7 +166,7 @@
                    'int main(int argc, char* argv[]) '
                    '{ return $(PYPY_MAIN_FUNCTION)(argc, argv); }" > $@')
             m.rule('$(DEFAULT_TARGET)', ['$(TARGET)', 'main.o'],
-                   '$(CC_LINK) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@')
+                   '$(CC_LINK) $(LDFLAGS) $(LDFLAGSEXTRA) main.o -L. -l$(SHARED_IMPORT_LIB) -o $@')
 
         return m
 



More information about the Pypy-commit mailing list