Skip to content
Snippets Groups Projects
Commit 6555acad authored by Mans Rullgard's avatar Mans Rullgard
Browse files

configure: escape colons in values written to config.fate


The fields in config.fate are colon-separated so any colons
within the fields should be escaped to prevent confusion.

Signed-off-by: default avatarMans Rullgard <mans@mansr.com>
parent de7f22ab
No related branches found
No related tags found
No related merge requests found
......@@ -2594,7 +2594,11 @@ case $target_os in
;;
esac
echo "config:$arch:$subarch:$cpu:$target_os:$cc_ident:$LIBAV_CONFIGURATION" >config.fate
esc(){
echo "$*" | sed 's/%/%25/g;s/:/%3a/g'
}
echo "config:$arch:$subarch:$cpu:$target_os:$(esc $cc_ident):$(esc $LIBAV_CONFIGURATION)" >config.fate
check_cpp_condition stdlib.h "defined(__PIC__) || defined(__pic__) || defined(PIC)" && enable pic
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment