aboutsummaryrefslogtreecommitdiff
path: root/examples/python2.7/patches/link-system-expat.diff
diff options
context:
space:
mode:
Diffstat (limited to 'examples/python2.7/patches/link-system-expat.diff')
-rw-r--r--examples/python2.7/patches/link-system-expat.diff22
1 files changed, 22 insertions, 0 deletions
diff --git a/examples/python2.7/patches/link-system-expat.diff b/examples/python2.7/patches/link-system-expat.diff
new file mode 100644
index 0000000..841d8c6
--- /dev/null
+++ b/examples/python2.7/patches/link-system-expat.diff
@@ -0,0 +1,22 @@
+# DP: Link with the system expat
+
+--- a/Modules/Setup.dist
++++ b/Modules/Setup.dist
+@@ -180,7 +180,7 @@
+ #itertools itertoolsmodule.c # Functions creating iterators for efficient looping
+ #strop stropmodule.c # String manipulations
+ #_functools _functoolsmodule.c # Tools for working with functions and callable objects
+-#_elementtree -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator
++#_elementtree -DUSE_PYEXPAT_CAPI _elementtree.c # elementtree accelerator
+ #_pickle _pickle.c # pickle accelerator
+ #datetime datetimemodule.c # date/time type
+ #_bisect _bisectmodule.c # Bisection algorithms
+@@ -471,7 +471,7 @@
+ #
+ # More information on Expat can be found at www.libexpat.org.
+ #
+-#pyexpat expat/xmlparse.c expat/xmlrole.c expat/xmltok.c pyexpat.c -I$(srcdir)/Modules/expat -DHAVE_EXPAT_CONFIG_H -DUSE_PYEXPAT_CAPI
++#pyexpat pyexpat.c -lexpat
+
+
+ # Hye-Shik Chang's CJKCodecs