From 7816089f20b107fb4f6620903bfd745956038467 Mon Sep 17 00:00:00 2001 From: Natanael Copa Date: Tue, 4 Jun 2013 12:50:48 +0000 Subject: main/python: fix ctypes.util.find_library() and set CFLAGS ref #2012 --- main/python/find_library.patch | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 main/python/find_library.patch (limited to 'main/python/find_library.patch') diff --git a/main/python/find_library.patch b/main/python/find_library.patch new file mode 100644 index 0000000000..b2a7d4fbd7 --- /dev/null +++ b/main/python/find_library.patch @@ -0,0 +1,11 @@ +--- ./Lib/ctypes/util.py.orig 2013-05-27 14:59:31.253297476 +0000 ++++ ./Lib/ctypes/util.py 2013-05-27 14:59:55.730215183 +0000 +@@ -198,7 +198,7 @@ + abi_type = mach_map.get(machine, 'libc6') + + # XXX assuming GLIBC's ldconfig (with option -p) +- expr = r'\s+(lib%s\.[^\s]+)\s+\(%s' % (re.escape(name), abi_type) ++ expr = r'\s+(lib%s\.[^\s]+)\s+\(' % (re.escape(name)) + f = os.popen('/sbin/ldconfig -p 2>/dev/null') + try: + data = f.read() -- cgit v1.2.3