mirror of
https://github.com/qemu/qemu.git
synced 2025-08-15 13:47:03 +00:00
Use CFLAGS from enviroment, ARCH_CFLAGS hasn't been defined yet
Signed-off-by: Juan Quintela <quintela@redhat.com> Signed-off-by: Anthony Liguori <aliguori@us.ibm.com> Message-Id:
This commit is contained in:
parent
40bf384428
commit
d2ac582ca5
4
configure
vendored
4
configure
vendored
@ -61,7 +61,7 @@ cat > $TMPC <<EOF
|
|||||||
int main(void) {}
|
int main(void) {}
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
if $cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
|
if $cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null ; then
|
||||||
: C compiler works ok
|
: C compiler works ok
|
||||||
else
|
else
|
||||||
echo "ERROR: \"$cc\" either does not exist or does not work"
|
echo "ERROR: \"$cc\" either does not exist or does not work"
|
||||||
@ -75,7 +75,7 @@ cat > $TMPC <<EOF
|
|||||||
#endif
|
#endif
|
||||||
int main(void) { return 0; }
|
int main(void) { return 0; }
|
||||||
EOF
|
EOF
|
||||||
$cc $ARCH_CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
|
$cc $CFLAGS -c -o $TMPO $TMPC > /dev/null 2> /dev/null
|
||||||
}
|
}
|
||||||
|
|
||||||
if check_define __i386__ ; then
|
if check_define __i386__ ; then
|
||||||
|
Loading…
Reference in New Issue
Block a user