History

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.)

Martin Storsjö committed 9 years ago

Commit f96d07f1 parent 562ef821 file · +1 −1Browse files

Unified · Split

configure+1−1
@@ -5033,7 +5033,7 @@ fi · 5032 unmodified lines
50335033 for pfx in "" host_; do
50345034 varname=${pfx%_}cc_type
50355035 eval "type=\$$varname"
5036− if [ $type = "msvc" ]; then
5036+ if [ "$type" = "msvc" ]; then
50375037 check_${pfx}cc <<EOF || add_${pfx}cflags -Dinline=__inline
50385038 static inline int foo(int a) { return a; }
50395039 EOF

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t