[Checkins] SVN: z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py Possible fix for 'relocation R_X86_64_32 against a local symbol' errors on amd64

Reinout van Rees reinout at vanrees.org
Mon Aug 24 08:08:03 EDT 2009


Log message for revision 103140:
  Possible fix for 'relocation R_X86_64_32 against a local symbol' errors on amd64

Changed:
  U   z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py

-=-
Modified: z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py
===================================================================
--- z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py	2009-08-24 11:58:22 UTC (rev 103139)
+++ z3c.recipe.staticlxml/trunk/src/z3c/recipe/staticlxml/__init__.py	2009-08-24 12:08:03 UTC (rev 103140)
@@ -4,6 +4,7 @@
 import sys
 import os
 import pkg_resources
+import platform
 import logging
 from fnmatch import fnmatch
 
@@ -95,6 +96,8 @@
         options["url"] = self.xslt_url
         options["extra_options"] = "--with-libxml-prefix=%s --without-python --without-crypto" % self.xml2_location
         # ^^^ crypto is off as libgcrypt can lead to problems on especially osx and also on some linux machines.
+        if platform.machine() == 'x86_64':
+            options["extra_options"] += ' --with-pic'
         self.xslt_cmmi = zc.recipe.cmmi.Recipe(self.buildout, "libxslt", options)
 
         if os.path.exists(os.path.join(self.xslt_cmmi.options["location"], "bin", "xslt-config")):
@@ -266,4 +269,4 @@
                 XML_CONFIG=self.xml2_config,
                 LDSHARED=self.get_ldshared())
 
-# vim: set ft=python ts=4 sw=4 expandtab : 
+# vim: set ft=python ts=4 sw=4 expandtab :



More information about the Checkins mailing list