[pypy-svn] r76312 - pypy/branch/asmgcc-64/pypy/translator/platform
jcreigh at codespeak.net
jcreigh at codespeak.net
Thu Jul 22 15:45:52 CEST 2010
Author: jcreigh
Date: Thu Jul 22 15:45:50 2010
New Revision: 76312
Modified:
pypy/branch/asmgcc-64/pypy/translator/platform/posix.py
Log:
respect shared_only and standalone_only when generating a Makefile
Modified: pypy/branch/asmgcc-64/pypy/translator/platform/posix.py
==============================================================================
--- pypy/branch/asmgcc-64/pypy/translator/platform/posix.py (original)
+++ pypy/branch/asmgcc-64/pypy/translator/platform/posix.py Thu Jul 22 15:45:50 2010
@@ -98,6 +98,11 @@
else:
target_name = exe_name.basename
+ if shared:
+ cflags = self.cflags + self.shared_only
+ else:
+ cflags = self.cflags + self.standalone_only
+
m = GnuMakefile(path)
m.exe_name = exe_name
m.eci = eci
@@ -126,7 +131,7 @@
('LIBS', self._libs(eci.libraries)),
('LIBDIRS', self._libdirs(eci.library_dirs)),
('INCLUDEDIRS', self._includedirs(rel_includedirs)),
- ('CFLAGS', self.cflags),
+ ('CFLAGS', cflags),
('CFLAGSEXTRA', list(eci.compile_extra)),
('LDFLAGS', linkflags),
('LDFLAGSEXTRA', list(eci.link_extra)),
More information about the Pypy-commit
mailing list