[pypy-svn] r35067 - pypy/branch/mininal-c-backend/pypy/translator/c

ale at codespeak.net ale at codespeak.net
Tue Nov 28 11:32:17 CET 2006


Author: ale
Date: Tue Nov 28 11:32:15 2006
New Revision: 35067

Modified:
   pypy/branch/mininal-c-backend/pypy/translator/c/genc.py
Log:
Duh, actually use the right config value for linker flags

Modified: pypy/branch/mininal-c-backend/pypy/translator/c/genc.py
==============================================================================
--- pypy/branch/mininal-c-backend/pypy/translator/c/genc.py	(original)
+++ pypy/branch/mininal-c-backend/pypy/translator/c/genc.py	Tue Nov 28 11:32:15 2006
@@ -248,7 +248,7 @@
         if self.config.translation.compilerflags:
             compiler.compile_extra.append(self.config.translation.compilerflags)
         if self.config.translation.linkerflags:
-            compiler.link_extra.append(self.config.translation.compilerflags)
+            compiler.link_extra.append(self.config.translation.linkerflags)
         compiler.build()
         self.executable_name = str(compiler.outputfilename)
         self._compiled = True
@@ -272,7 +272,7 @@
         if self.config.translation.compilerflags:
             compiler.compile_extra.append(self.config.translation.compilerflags)
         if self.config.translation.linkerflags:
-            compiler.link_extra.append(self.config.translation.compilerflags)
+            compiler.link_extra.append(self.config.translation.linkerflags)
         cfiles = []
         ofiles = []
         for fn in compiler.cfilenames:
@@ -283,8 +283,6 @@
 
         if self.config.translation.cc:
             cc = self.config.translation.cc
-#            if cc == 'avr-gcc':
-#                compiler.compile_extra.append('-DAVR')
         else:
             cc = 'gcc'
         if self.config.translation.profopt:



More information about the Pypy-commit mailing list