diff options
author | Michael Niedermayer <michaelni@gmx.at> | 2012-10-16 13:19:11 +0200 |
---|---|---|
committer | Michael Niedermayer <michaelni@gmx.at> | 2012-10-16 13:20:46 +0200 |
commit | 9270a2b374eae02c3588ff9a36af298d19f006c8 (patch) | |
tree | bce36468c80d453d10fbe2385711b7a5b2c8ce41 /configure | |
parent | 36b3b2376dd99e035f5acc389f8c506647146e14 (diff) | |
parent | 4c995fafd861f537360b3717901cdbed6a6844e7 (diff) | |
download | ffmpeg-9270a2b374eae02c3588ff9a36af298d19f006c8.tar.gz |
Merge commit '4c995fafd861f537360b3717901cdbed6a6844e7'
* commit '4c995fafd861f537360b3717901cdbed6a6844e7':
configure: simplify get_version() function
build: support asan and tsan toolchain shortcuts
rmdec: Move SIPR code shared with Matroska demuxer to a separate file
Merged-by: Michael Niedermayer <michaelni@gmx.at>
Diffstat (limited to 'configure')
-rwxr-xr-x | configure | 12 |
1 files changed, 11 insertions, 1 deletions
@@ -2326,6 +2326,16 @@ strip_default="${cross_prefix}${strip_default}" sysinclude_default="${sysroot}/usr/include" case "$toolchain" in + clang-asan) + cc_default="clang" + add_cflags -faddress-sanitizer + add_ldflags -faddress-sanitizer + ;; + clang-tsan) + cc_default="clang" + add_cflags -fthread-sanitizer + add_ldflags -fthread-sanitizer + ;; msvc) cc_default="c99wrap cl" ld_default="c99wrap link" @@ -4254,7 +4264,7 @@ get_version(){ lcname=$1 name=$(toupper $lcname) file=$source_path/$lcname/version.h - eval $(grep "#define ${name}_VERSION_M" "$file" | awk '{ print $2"="$3 }') + eval $(awk "/#define ${name}_VERSION_M/ { print \$2 \"=\" \$3 }" "$file") eval ${name}_VERSION=\$${name}_VERSION_MAJOR.\$${name}_VERSION_MINOR.\$${name}_VERSION_MICRO eval echo "${lcname}_VERSION=\$${name}_VERSION" >> config.mak eval echo "${lcname}_VERSION_MAJOR=\$${name}_VERSION_MAJOR" >> config.mak |