mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-09-12 01:24:12 +08:00
define CROSS is cross compilation
This commit is contained in:
@ -97,7 +97,7 @@ emulation=generic
|
|||||||
# check for architecture variants
|
# check for architecture variants
|
||||||
case ${target_cpu} in
|
case ${target_cpu} in
|
||||||
sparclite*) cpu_type=sparc ;;
|
sparclite*) cpu_type=sparc ;;
|
||||||
sparc64) cpu_type=sparc obj_format=aout ;; # v9
|
sparc64) cpu_type=sparc64 obj_format=elf ;; # v9
|
||||||
m680[01234]0) cpu_type=m68k ;;
|
m680[01234]0) cpu_type=m68k ;;
|
||||||
m683??) cpu_type=m68k ;;
|
m683??) cpu_type=m68k ;;
|
||||||
i486) cpu_type=i386 ;;
|
i486) cpu_type=i386 ;;
|
||||||
@ -120,6 +120,8 @@ case ${generic_target} in
|
|||||||
hppa-*-osf) obj_format=elf emulation=hppa ;;
|
hppa-*-osf) obj_format=elf emulation=hppa ;;
|
||||||
hppa-*-hpux*) obj_format=som emulation=hppa ;;
|
hppa-*-hpux*) obj_format=som emulation=hppa ;;
|
||||||
|
|
||||||
|
h8300-*-coff) obj_format=coffbfd ;;
|
||||||
|
|
||||||
i386-ibm-aix*) obj_format=coffbfd gas_target=i386coff
|
i386-ibm-aix*) obj_format=coffbfd gas_target=i386coff
|
||||||
emulation=i386aix ;;
|
emulation=i386aix ;;
|
||||||
i386-*-bsd*) obj_format=aout emulation=386bsd ;;
|
i386-*-bsd*) obj_format=aout emulation=386bsd ;;
|
||||||
@ -147,7 +149,7 @@ case ${generic_target} in
|
|||||||
|
|
||||||
sparc*-*-sunos4*) bfd_gas=preferred obj_format=aout emulation=sun3 ;;
|
sparc*-*-sunos4*) bfd_gas=preferred obj_format=aout emulation=sun3 ;;
|
||||||
|
|
||||||
sparclite*-fujitsu-none)
|
sparc*-fujitsu-none)
|
||||||
obj_format=aout ;;
|
obj_format=aout ;;
|
||||||
|
|
||||||
*-*-aout | *-*-scout | *-*-linux)
|
*-*-aout | *-*-scout | *-*-linux)
|
||||||
@ -261,4 +263,14 @@ case ${need_bfd} in
|
|||||||
;;
|
;;
|
||||||
esac
|
esac
|
||||||
|
|
||||||
|
if [ x${host} = x${target} ] ; then
|
||||||
|
rm -f Makefile.tem
|
||||||
|
mv Makefile Makefile.tem
|
||||||
|
echo CROSS=-DCROSS_COMPILE
|
||||||
|
cat Makefile.tem >> Makefile
|
||||||
|
rm -f Makefile.tem
|
||||||
|
else
|
||||||
|
true
|
||||||
|
fi
|
||||||
|
|
||||||
# end of gas/configure.in
|
# end of gas/configure.in
|
||||||
|
Reference in New Issue
Block a user