You've already forked FFmpeg
mirror of
https://github.com/FFmpeg/FFmpeg.git
synced 2025-08-15 14:13:16 +02:00
configure: Add quotes around a variable which might be empty
If we only have a target compiler but no host compiler, the $type variable will be empty once. (Currently we fail to do a cross build if no host compiler is available due to using the host compiler for processing option lists though. But despite that, this comparison in configure needs quotes.) Signed-off-by: Martin Storsjö <martin@martin.st>
This commit is contained in:
2
configure
vendored
2
configure
vendored
@@ -5033,7 +5033,7 @@ fi
|
|||||||
for pfx in "" host_; do
|
for pfx in "" host_; do
|
||||||
varname=${pfx%_}cc_type
|
varname=${pfx%_}cc_type
|
||||||
eval "type=\$$varname"
|
eval "type=\$$varname"
|
||||||
if [ $type = "msvc" ]; then
|
if [ "$type" = "msvc" ]; then
|
||||||
check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline
|
check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline
|
||||||
static inline int foo(int a) { return a; }
|
static inline int foo(int a) { return a; }
|
||||||
EOF
|
EOF
|
||||||
|
Reference in New Issue
Block a user