From d667b5b48cff7f053ba0d7bf5811a77f66cedeb1 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Fri, 5 Jan 2018 10:25:16 +0100 Subject: [PATCH] python/build/libs.py: work around libid3tag CFLAGS bug --- python/build/libs.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/python/build/libs.py b/python/build/libs.py index 8653ddb4c..305bd7636 100644 --- a/python/build/libs.py +++ b/python/build/libs.py @@ -1,3 +1,4 @@ +import re from build.project import Project from build.zlib import ZlibProject from build.autotools import AutotoolsProject @@ -58,6 +59,11 @@ libid3tag = AutotoolsProject( '--disable-debugging', ], autogen=True, + + edits={ + # fix bug in libid3tag's configure.ac which discards all but the last optimization flag + 'configure.ac': lambda data: re.sub(r'optimize="\$1"', r'optimize="$optimize $1"', data, count=1), + } ) libmad = AutotoolsProject(