mirror of https://github.com/xemu-project/xemu.git
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
|
@ -61,7 +61,7 @@ cat > $TMPC <<EOF
|
|||
int main(void) {}
|
||||
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
|
||||
else
|
||||
echo "ERROR: \"$cc\" either does not exist or does not work"
|
||||
|
@ -75,7 +75,7 @@ cat > $TMPC <<EOF
|
|||
#endif
|
||||
int main(void) { return 0; }
|
||||
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
|
||||
|
|
Loading…
Reference in New Issue