Bug 803862 - Port |Bug 722933 - add -MACHINE option for link.exe| to comm-central r=Callek
This commit is contained in:
Родитель
5b02236a5f
Коммит
0a511bb087
|
@ -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 \
|
||||||
|
|
12
configure.in
12
configure.in
|
@ -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_)
|
||||||
;;
|
;;
|
||||||
*)
|
*)
|
||||||
|
|
Загрузка…
Ссылка в новой задаче