Bug 803862 - Port |Bug 722933 - add -MACHINE option for link.exe| to comm-central r=Callek

This commit is contained in:
Ian Neal 2012-10-28 23:01:35 +00:00
Родитель 5b02236a5f
Коммит 0a511bb087
2 изменённых файлов: 13 добавлений и 1 удалений

Просмотреть файл

@ -922,7 +922,7 @@ endif # BeOS
$(HOST_PROGRAM): $(HOST_PROGOBJS) $(HOST_LIBS_DEPS) $(HOST_EXTRA_DEPS) $(GLOBAL_DEPS) $(HOST_PROGRAM): $(HOST_PROGOBJS) $(HOST_LIBS_DEPS) $(HOST_EXTRA_DEPS) $(GLOBAL_DEPS)
ifeq (_WINNT,$(GNU_CC)_$(HOST_OS_ARCH)) ifeq (_WINNT,$(GNU_CC)_$(HOST_OS_ARCH))
$(HOST_LD) -NOLOGO -OUT:$@ -PDB:$(HOST_PDBFILE) $(HOST_OBJS) $(WIN32_EXE_LDFLAGS) $(HOST_LIBS) $(HOST_EXTRA_LIBS) $(HOST_LD) -NOLOGO -OUT:$@ -PDB:$(HOST_PDBFILE) $(HOST_OBJS) $(WIN32_EXE_LDFLAGS) $(HOST_LDFLAGS) $(HOST_LIBS) $(HOST_EXTRA_LIBS)
ifdef MSMANIFEST_TOOL ifdef MSMANIFEST_TOOL
@if test -f $@.manifest; then \ @if test -f $@.manifest; then \
if test -f "$(srcdir)/$@.manifest"; then \ if test -f "$(srcdir)/$@.manifest"; then \

Просмотреть файл

@ -1485,7 +1485,15 @@ case "$host" in
esac esac
case "${host_cpu}" in case "${host_cpu}" in
i*86)
if test -n "$_WIN32_MSVC"; then
HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X86"
fi
;;
x86_64) x86_64)
if test -n "$_WIN32_MSVC"; then
HOST_LDFLAGS="$HOST_LDFLAGS -MACHINE:X64"
fi
HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_" HOST_CFLAGS="$HOST_CFLAGS -D_AMD64_"
;; ;;
esac esac
@ -1984,6 +1992,7 @@ ia64*-hpux*)
CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport" CXXFLAGS="$CXXFLAGS -mstackrealign -fno-keep-inline-dllexport"
else else
AC_DEFINE(HAVE_STDCALL) AC_DEFINE(HAVE_STDCALL)
DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X86"
fi fi
AC_DEFINE(_X86_) AC_DEFINE(_X86_)
@ -1995,6 +2004,9 @@ ia64*-hpux*)
AC_DEFINE(_MIPS_) AC_DEFINE(_MIPS_)
;; ;;
x86_64-*) x86_64-*)
if test -n "$_WIN32_MSVC"; then
DSO_LDOPTS="$DSO_LDOPTS -MACHINE:X64"
fi
AC_DEFINE(_AMD64_) AC_DEFINE(_AMD64_)
;; ;;
*) *)