+Wed Dec 31 14:42:18 1997 Ian Lance Taylor <ian@cygnus.com>
+
+ * configure.in: Set and subsitute host_exeext. Use it when creating
+ the assembler and linker symlinks.
+ * configure: Rebuild.
+ * Makefile.in (exeext): Set to @host_exeext@.
+ (build_exeext): New variable, set to @build_exeext@.
+ (FLAGS_TO_PASS): Pass down build_exeext.
+ (STAGESTUFF): Use build_exeext, not exeext, for gen* and bi*
+ programs.
+
Wed Dec 31 10:05:44 1997 Jeffrey A Law (law@cygnus.com)
* mn10200.md (addsi3, subsi3): Fix thinkos.
# Extension (if any) to put in installed man-page filename.
manext = .1
objext = .o
-exeext = @build_exeext@
+exeext = @host_exeext@
+build_exeext = @build_exeext@
# Directory in which to put man pages.
mandir = @mandir@/man1
"SHELL=$(SHELL)" \
"STAGE_PREFIX=@stage_prefix_set_by_configure@" \
"exeext=$(exeext)" \
+ "build_exeext=$(build_exeext)" \
"objext=$(objext)" \
"exec_prefix=$(exec_prefix)" \
"prefix=$(prefix)" \
stamp-flags stamp-config stamp-codes stamp-mlib \
stamp-output stamp-recog stamp-emit stamp-extract stamp-peep \
stamp-attr stamp-attrtab stamp-opinit stamp-proto stamp-crt stamp-crtS stamp-crt0 \
- genemit$(exeext) genoutput$(exeext) genrecog$(exeext) genextract$(exeext) \
- genflags$(exeext) gencodes$(exeext) genconfig$(exeext) genpeep$(exeext) \
- genattrtab$(exeext) genattr$(exeext) genopinit$(exeext) \
+ genemit$(build_exeext) genoutput$(build_exeext) genrecog$(build_exeext) \
+ genextract$(build_exeext) genflags$(build_exeext) gencodes$(build_exeext) \
+ genconfig$(build_exeext) genpeep$(build_exeext) genattrtab$(build_exeext) \
+ genattr$(build_exeext) genopinit$(build_exeext) \
$(BC_ALL) \
stamp-bcarity stamp-bcopcode stamp-bcopname \
- bi-arity$(exeext) bi-opcode$(exeext) bi-opname$(exeext) \
+ bi-arity$(build_exeext) bi-opcode$(build_exeext) bi-opname$(build_exeext) \
xgcc$(exeext) cc1$(exeext) cpp$(exeext) $(EXTRA_PASSES) \
$(EXTRA_PARTS) $(EXTRA_PROGRAMS) gcc-cross$(exeext) \
$(CCCP)$(exeext) cc1obj$(exeext) enquire$(exeext) \
host_xm_file=
host_xmake_file=
host_truncate_target=
+host_exeext=
# Decode the host machine, then the target machine.
# For the host machine, we save the xm_file variable as host_xm_file;
host_truncate_target=$truncate_target
host_extra_gcc_objs=$extra_gcc_objs
host_extra_objs=$extra_host_objs
+ host_exeext=$exeext
pass2done=yes
fi
fi
# If we have gas in the build tree, make a link to it.
if [ -f ../gas/Makefile ]; then
- rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
+ rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
fi
# If we have ld in the build tree, make a link to it.
if [ -f ../ld/Makefile ]; then
# if [[ x$use_collect2 = x ]]; then
-# rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
+# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
# else
- rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
+ rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
# fi
fi
+
# Echo that links are built
s%@fixincludes@%$fixincludes%g
s%@build_install_headers_dir@%$build_install_headers_dir%g
s%@build_exeext@%$build_exeext%g
+s%@host_exeext@%$host_exeext%g
s%@float_format@%$float_format%g
s%@will_use_collect2@%$will_use_collect2%g
s%@maybe_use_collect2@%$maybe_use_collect2%g
local_prefix='${local_prefix}'
build_install_headers_dir='${build_install_headers_dir}'
build_exeext='${build_exeext}'
+host_exeext='${host_exeext}'
out_file='${out_file}'
gdb_needs_out_file_path='${gdb_needs_out_file_path}'
SET_MAKE='${SET_MAKE}'
host_xm_file=
host_xmake_file=
host_truncate_target=
+host_exeext=
# Decode the host machine, then the target machine.
# For the host machine, we save the xm_file variable as host_xm_file;
host_truncate_target=$truncate_target
host_extra_gcc_objs=$extra_gcc_objs
host_extra_objs=$extra_host_objs
+ host_exeext=$exeext
pass2done=yes
fi
fi
# If we have gas in the build tree, make a link to it.
if [[ -f ../gas/Makefile ]]; then
- rm -f as; $symbolic_link ../gas/as-new as 2>/dev/null
+ rm -f as; $symbolic_link ../gas/as-new$host_exeext as$host_exeext 2>/dev/null
fi
# If we have ld in the build tree, make a link to it.
if [[ -f ../ld/Makefile ]]; then
# if [[ x$use_collect2 = x ]]; then
-# rm -f ld; $symbolic_link ../ld/ld-new ld 2>/dev/null
+# rm -f ld; $symbolic_link ../ld/ld-new$host_exeext ld$host_exeext 2>/dev/null
# else
- rm -f collect-ld; $symbolic_link ../ld/ld-new collect-ld 2>/dev/null
+ rm -f collect-ld; $symbolic_link ../ld/ld-new$host_exeext collect-ld$host_exeext 2>/dev/null
# fi
fi
AC_SUBST(fixincludes)
AC_SUBST(build_install_headers_dir)
AC_SUBST(build_exeext)
+AC_SUBST(host_exeext)
AC_SUBST(float_format)
AC_SUBST(will_use_collect2)
AC_SUBST(maybe_use_collect2)
local_prefix='${local_prefix}'
build_install_headers_dir='${build_install_headers_dir}'
build_exeext='${build_exeext}'
+host_exeext='${host_exeext}'
out_file='${out_file}'
gdb_needs_out_file_path='${gdb_needs_out_file_path}'
SET_MAKE='${SET_MAKE}'