python/build/libs.py: work around libid3tag CFLAGS bug

This commit is contained in:
Max Kellermann 2018-01-05 10:25:16 +01:00
parent 9cba55b39c
commit d667b5b48c
1 changed files with 6 additions and 0 deletions

View File

@ -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(