[pypy-svn] r54819 - pypy/dist/pypy/rlib/rsdl

arigo at codespeak.net arigo at codespeak.net
Sat May 17 13:19:02 CEST 2008


Author: arigo
Date: Sat May 17 13:19:01 2008
New Revision: 54819

Modified:
   pypy/dist/pypy/rlib/rsdl/RSDL.py
Log:
Use ExternalCompilationInfo.from_config_tool() in rsdl.


Modified: pypy/dist/pypy/rlib/rsdl/RSDL.py
==============================================================================
--- pypy/dist/pypy/rlib/rsdl/RSDL.py	(original)
+++ pypy/dist/pypy/rlib/rsdl/RSDL.py	Sat May 17 13:19:01 2008
@@ -3,10 +3,9 @@
 from pypy.translator.tool.cbuild import ExternalCompilationInfo
 
 eci = ExternalCompilationInfo(
-    includes = ['SDL.h'],
-    include_dirs = ['/usr/include/SDL'],
-    libraries = ['SDL'],
-)
+    includes=['SDL.h'],
+    )
+eci = eci.merge(ExternalCompilationInfo.from_config_tool('sdl-config'))
 
 def external(name, args, result):
     return rffi.llexternal(name, args, result, compilation_info=eci)



More information about the Pypy-commit mailing list