Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
da2ae583
Commit
da2ae583
authored
Nov 10, 2023
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
configure: Consistently use HOST_ARCH for platform checks.
parent
c33f3506
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
71 additions
and
78 deletions
+71
-78
aclocal.m4
aclocal.m4
+3
-6
configure
configure
+38
-39
configure.ac
configure.ac
+30
-33
No files found.
aclocal.m4
View file @
da2ae583
...
@@ -65,12 +65,9 @@ AC_DEFUN([WINE_PATH_PKG_CONFIG],
...
@@ -65,12 +65,9 @@ AC_DEFUN([WINE_PATH_PKG_CONFIG],
[WINE_CHECK_HOST_TOOL(PKG_CONFIG,[pkg-config])])
[WINE_CHECK_HOST_TOOL(PKG_CONFIG,[pkg-config])])
AC_DEFUN([WINE_PATH_MINGW_PKG_CONFIG],
AC_DEFUN([WINE_PATH_MINGW_PKG_CONFIG],
[case "$host_cpu" in
[AS_VAR_IF([HOST_ARCH],[i386],
i[[3456789]]86*)
[ac_prefix_list="m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],[ac_wine_cpu-w64-mingw32-pkg-config ])"],
ac_prefix_list="m4_foreach([ac_wine_cpu],[i686,i586,i486,i386],[ac_wine_cpu-w64-mingw32-pkg-config ])" ;;
[ac_prefix_list="$host_cpu-w64-mingw32-pkg-config"])
*)
ac_prefix_list="$host_cpu-w64-mingw32-pkg-config" ;;
esac
AC_CHECK_PROGS(MINGW_PKG_CONFIG,[$ac_prefix_list],false)])
AC_CHECK_PROGS(MINGW_PKG_CONFIG,[$ac_prefix_list],false)])
dnl **** Extract the soname of a library ****
dnl **** Extract the soname of a library ****
...
...
configure
View file @
da2ae583
...
@@ -9440,8 +9440,9 @@ case $host_os in
...
@@ -9440,8 +9440,9 @@ case $host_os in
LIBEXT
=
"dll"
LIBEXT
=
"dll"
DLLEXT
=
""
DLLEXT
=
""
EXTRACFLAGS
=
"-D__WINE_PE_BUILD"
EXTRACFLAGS
=
"-D__WINE_PE_BUILD"
case
$host_cpu
in
if
test
"x
$HOST_ARCH
"
=
xi386
*
i[3456]86
*
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,--disable-stdcall-fixup"
>
&5
then
:
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wl,--disable-stdcall-fixup"
>
&5
printf
%s
"checking whether the compiler supports -Wl,--disable-stdcall-fixup... "
>
&6
;
}
printf
%s
"checking whether the compiler supports -Wl,--disable-stdcall-fixup... "
>
&6
;
}
if
test
${
ac_cv_cflags__Wl___disable_stdcall_fixup
+y
}
if
test
${
ac_cv_cflags__Wl___disable_stdcall_fixup
+y
}
then
:
then
:
...
@@ -9468,8 +9469,8 @@ printf "%s\n" "$ac_cv_cflags__Wl___disable_stdcall_fixup" >&6; }
...
@@ -9468,8 +9469,8 @@ printf "%s\n" "$ac_cv_cflags__Wl___disable_stdcall_fixup" >&6; }
if
test
"x
$ac_cv_cflags__Wl___disable_stdcall_fixup
"
=
xyes
if
test
"x
$ac_cv_cflags__Wl___disable_stdcall_fixup
"
=
xyes
then
:
then
:
LDDLLFLAGS
=
"-Wl,--disable-stdcall-fixup"
LDDLLFLAGS
=
"-Wl,--disable-stdcall-fixup"
fi
;;
fi
esac
fi
enable_loader
=
${
enable_loader
:-
no
}
enable_loader
=
${
enable_loader
:-
no
}
enable_server
=
${
enable_server
:-
no
}
enable_server
=
${
enable_server
:-
no
}
with_x
=
${
with_x
:-
no
}
with_x
=
${
with_x
:-
no
}
...
@@ -9504,9 +9505,9 @@ fi ;;
...
@@ -9504,9 +9505,9 @@ fi ;;
WINELOADER_LDFLAGS
=
"-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
WINELOADER_LDFLAGS
=
"-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
case
$
host_cpu
in
case
$
HOST_ARCH
in
*
i[3456]86
*
|
*
x86_64
*
)
wine_can_build_preloader
=
yes
;;
i386|x86_64
)
wine_can_build_preloader
=
yes
;;
*
)
wine_can_build_preloader
=
no
;;
*
)
wine_can_build_preloader
=
no
;;
esac
esac
if
test
"
$wine_can_build_preloader
"
=
"yes"
if
test
"
$wine_can_build_preloader
"
=
"yes"
...
@@ -9540,11 +9541,11 @@ if test "x$ac_cv_cflags__Wl__no_pie" = xyes
...
@@ -9540,11 +9541,11 @@ if test "x$ac_cv_cflags__Wl__no_pie" = xyes
then
:
then
:
WINEPRELOADER_LDFLAGS
=
"-Wl,-no_pie
$WINEPRELOADER_LDFLAGS
"
WINEPRELOADER_LDFLAGS
=
"-Wl,-no_pie
$WINEPRELOADER_LDFLAGS
"
fi
fi
case
$
host_cpu
in
case
$
HOST_ARCH
in
*
i[3456]86
*
)
i386
)
WINEPRELOADER_LDFLAGS
=
"-Wl,-image_base,0x7d400000
$WINEPRELOADER_LDFLAGS
"
WINEPRELOADER_LDFLAGS
=
"-Wl,-image_base,0x7d400000
$WINEPRELOADER_LDFLAGS
"
;;
;;
*
x86_64
*
)
x86_64
)
WINEPRELOADER_LDFLAGS
=
"-Wl,-image_base,0x200000000,-segalign,0x1000,-segaddr,WINE_RESERVE,0x1000
$WINEPRELOADER_LDFLAGS
"
WINEPRELOADER_LDFLAGS
=
"-Wl,-image_base,0x200000000,-segalign,0x1000,-segaddr,WINE_RESERVE,0x1000
$WINEPRELOADER_LDFLAGS
"
;;
;;
esac
esac
...
@@ -10056,11 +10057,11 @@ fi
...
@@ -10056,11 +10057,11 @@ fi
if
test
"x
$exec_prefix
"
=
xNONE
if
test
"x
$exec_prefix
"
=
xNONE
then
then
case
$
host_cpu
in
case
$
HOST_ARCH
in
*
i[3456]86
*
)
exec_prefix
=
'${prefix}/x86'
;;
i386
)
exec_prefix
=
'${prefix}/x86'
;;
*
x86_64
*
)
exec_prefix
=
'${prefix}/x86_64'
;;
x86_64
)
exec_prefix
=
'${prefix}/x86_64'
;;
*
arm
*
)
exec_prefix
=
'${prefix}/armeabi-v7a'
;;
arm
)
exec_prefix
=
'${prefix}/armeabi-v7a'
;;
*
aarch64
*
)
exec_prefix
=
'${prefix}/arm64-v8a'
;;
aarch64
)
exec_prefix
=
'${prefix}/arm64-v8a'
;;
esac
esac
fi
fi
;;
;;
...
@@ -10072,8 +10073,8 @@ printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
...
@@ -10072,8 +10073,8 @@ printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
test
"
$ac_cv_sys_file_offset_bits
"
=
64
&&
test
"
$ac_cv_sys_file_offset_bits
"
=
64
&&
printf
"%s
\n
"
"#define _TIME_BITS 64"
>>
confdefs.h
printf
"%s
\n
"
"#define _TIME_BITS 64"
>>
confdefs.h
case
$host_cpu
in
if
test
$HOST_ARCH
=
i386
*
i[3456789]86
*
)
then
DLLFLAGS
=
"
$DLLFLAGS
-fno-PIC"
DLLFLAGS
=
"
$DLLFLAGS
-fno-PIC"
LDDLLFLAGS
=
"-fno-PIC"
LDDLLFLAGS
=
"-fno-PIC"
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fno-PIC -Wl,-z,notext"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fno-PIC -Wl,-z,notext"
>
&5
...
@@ -10104,11 +10105,10 @@ if test "x$ac_cv_cflags__fno_PIC__Wl__z_notext" = xyes
...
@@ -10104,11 +10105,10 @@ if test "x$ac_cv_cflags__fno_PIC__Wl__z_notext" = xyes
then
:
then
:
LDDLLFLAGS
=
"
$LDDLLFLAGS
-Wl,-z,notext"
LDDLLFLAGS
=
"
$LDDLLFLAGS
-Wl,-z,notext"
fi
fi
;;
else
*
)
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
DLLFLAGS
=
"
$DLLFLAGS
-fPIC"
LDDLLFLAGS
=
"-fPIC"
;;
LDDLLFLAGS
=
"-fPIC"
esac
fi
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether -Wl,-z,defs works correctly"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether -Wl,-z,defs works correctly"
>
&5
printf
%s
"checking whether -Wl,-z,defs works correctly... "
>
&6
;
}
printf
%s
"checking whether -Wl,-z,defs works correctly... "
>
&6
;
}
...
@@ -11702,12 +11702,12 @@ fi
...
@@ -11702,12 +11702,12 @@ fi
if
test
"x
$with_system_dllpath
"
!=
"x"
-a
-n
"
$PE_ARCHS
"
if
test
"x
$with_system_dllpath
"
!=
"x"
-a
-n
"
$PE_ARCHS
"
then
then
case
"
$host_cpu
"
in
if
test
"x
$HOST_ARCH
"
=
xi386
i[3456789]86
*
)
then
:
ac_prefix_list
=
"i686-w64-mingw32-pkg-config i586-w64-mingw32-pkg-config i486-w64-mingw32-pkg-config i386-w64-mingw32-pkg-config "
;;
ac_prefix_list
=
"i686-w64-mingw32-pkg-config i586-w64-mingw32-pkg-config i486-w64-mingw32-pkg-config i386-w64-mingw32-pkg-config "
*
)
else
$as_nop
ac_prefix_list
=
"
$host_cpu
-w64-mingw32-pkg-config"
;;
ac_prefix_list
=
"
$host_cpu
-w64-mingw32-pkg-config"
esac
fi
for
ac_prog
in
$ac_prefix_list
for
ac_prog
in
$ac_prefix_list
do
do
# Extract the first word of "$ac_prog", so it can be a program name with args.
# Extract the first word of "$ac_prog", so it can be a program name with args.
...
@@ -19213,10 +19213,10 @@ if ac_fn_c_try_compile "$LINENO"
...
@@ -19213,10 +19213,10 @@ if ac_fn_c_try_compile "$LINENO"
then
:
then
:
wine_cv_64bit_compare_swap
=
"none needed"
wine_cv_64bit_compare_swap
=
"none needed"
else
$as_nop
else
$as_nop
case
$
host_cpu
in
case
$
HOST_ARCH
in
*
i[3456]86
*
)
wine_cv_64bit_compare_swap
=
"-march=i586"
;;
i386
)
wine_cv_64bit_compare_swap
=
"-march=i586"
;;
*
arm
*
)
wine_cv_64bit_compare_swap
=
"-march=armv7-a"
;;
arm
)
wine_cv_64bit_compare_swap
=
"-march=armv7-a"
;;
*
)
wine_cv_64bit_compare_swap
=
"unknown"
;;
*
)
wine_cv_64bit_compare_swap
=
"unknown"
;;
esac
esac
if
test
"x
$wine_cv_64bit_compare_swap
"
!=
xunknown
if
test
"x
$wine_cv_64bit_compare_swap
"
!=
xunknown
then
then
...
@@ -19412,8 +19412,8 @@ then :
...
@@ -19412,8 +19412,8 @@ then :
fi
;;
fi
;;
esac
esac
case
$
host_cpu
in
case
$
HOST_ARCH
in
*
i[3456789]86
*
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fno-omit-frame-pointer"
>
&5
i386
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -fno-omit-frame-pointer"
>
&5
printf
%s
"checking whether the compiler supports -fno-omit-frame-pointer... "
>
&6
;
}
printf
%s
"checking whether the compiler supports -fno-omit-frame-pointer... "
>
&6
;
}
if
test
${
ac_cv_cflags__fno_omit_frame_pointer
+y
}
if
test
${
ac_cv_cflags__fno_omit_frame_pointer
+y
}
then
:
then
:
...
@@ -19441,7 +19441,7 @@ if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes
...
@@ -19441,7 +19441,7 @@ if test "x$ac_cv_cflags__fno_omit_frame_pointer" = xyes
then
:
then
:
MSVCRTFLAGS
=
"
$MSVCRTFLAGS
-fno-omit-frame-pointer"
MSVCRTFLAGS
=
"
$MSVCRTFLAGS
-fno-omit-frame-pointer"
fi
;;
fi
;;
*
x86_64
*
)
x86_64
)
case
$host_os
in
case
$host_os
in
cygwin
*
|
mingw32
*
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wno-format"
>
&5
cygwin
*
|
mingw32
*
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wno-format"
>
&5
printf
%s
"checking whether the compiler supports -Wno-format... "
>
&6
;
}
printf
%s
"checking whether the compiler supports -Wno-format... "
>
&6
;
}
...
@@ -19507,7 +19507,7 @@ printf "%s\n" "$ac_cv_mabi_ms" >&6; }
...
@@ -19507,7 +19507,7 @@ printf "%s\n" "$ac_cv_mabi_ms" >&6; }
fi
fi
MSVCRTFLAGS
=
"
$MSVCRTFLAGS
-mabi=ms"
;;
MSVCRTFLAGS
=
"
$MSVCRTFLAGS
-mabi=ms"
;;
esac
;;
esac
;;
arm
*
)
arm
)
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wincompatible-function-pointer-types"
>
&5
{
printf
"%s
\n
"
"
$as_me
:
${
as_lineno
-
$LINENO
}
: checking whether the compiler supports -Wincompatible-function-pointer-types"
>
&5
printf
%s
"checking whether the compiler supports -Wincompatible-function-pointer-types... "
>
&6
;
}
printf
%s
"checking whether the compiler supports -Wincompatible-function-pointer-types... "
>
&6
;
}
if
test
${
ac_cv_cflags__Wincompatible_function_pointer_types
+y
}
if
test
${
ac_cv_cflags__Wincompatible_function_pointer_types
+y
}
...
@@ -19689,12 +19689,11 @@ WINELOADER_PROGRAMS="$wine_binary"
...
@@ -19689,12 +19689,11 @@ WINELOADER_PROGRAMS="$wine_binary"
case
$host_os
in
case
$host_os
in
linux
*
)
linux
*
)
case
$host_cpu
i
n
if
test
$HOST_ARCH
!=
unknow
n
*
i[3456789]86
*
|
x86_64
*
|
*
aarch64
*
|
arm
*
)
then
test
"
$wine_binary
"
=
wine
||
as_fn_append CONFIGURE_TARGETS
" loader/wine-preloader"
test
"
$wine_binary
"
=
wine
||
as_fn_append CONFIGURE_TARGETS
" loader/wine-preloader"
WINELOADER_PROGRAMS
=
"
$WINELOADER_PROGRAMS
$wine_binary
-preloader"
WINELOADER_PROGRAMS
=
"
$WINELOADER_PROGRAMS
$wine_binary
-preloader"
;;
fi
esac
;;
;;
darwin
*
|
macosx
*
)
darwin
*
|
macosx
*
)
if
test
"
$wine_can_build_preloader
"
=
"yes"
if
test
"
$wine_can_build_preloader
"
=
"yes"
...
...
configure.ac
View file @
da2ae583
...
@@ -644,10 +644,9 @@ case $host_os in
...
@@ -644,10 +644,9 @@ case $host_os in
DLLEXT=""
DLLEXT=""
EXTRACFLAGS="-D__WINE_PE_BUILD"
EXTRACFLAGS="-D__WINE_PE_BUILD"
dnl Disable stdcall fixups to catch prototype mismatches
dnl Disable stdcall fixups to catch prototype mismatches
case $host_cpu in
AS_VAR_IF([HOST_ARCH],[i386],
*i[[3456]]86*) WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
[WINE_TRY_CFLAGS([-Wl,--disable-stdcall-fixup],
[LDDLLFLAGS="-Wl,--disable-stdcall-fixup"]) ;;
[LDDLLFLAGS="-Wl,--disable-stdcall-fixup"])])
esac
dnl Disable modules that can't be used on Windows
dnl Disable modules that can't be used on Windows
enable_loader=${enable_loader:-no}
enable_loader=${enable_loader:-no}
enable_server=${enable_server:-no}
enable_server=${enable_server:-no}
...
@@ -675,9 +674,9 @@ case $host_os in
...
@@ -675,9 +674,9 @@ case $host_os in
WINELOADER_LDFLAGS="-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
WINELOADER_LDFLAGS="-Wl,-pie,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
case $
host_cpu
in
case $
HOST_ARCH
in
*i[[3456]]86*|*x86_64*
) wine_can_build_preloader=yes ;;
i386|x86_64
) wine_can_build_preloader=yes ;;
*)
wine_can_build_preloader=no ;;
*) wine_can_build_preloader=no ;;
esac
esac
if test "$wine_can_build_preloader" = "yes"
if test "$wine_can_build_preloader" = "yes"
...
@@ -685,11 +684,11 @@ case $host_os in
...
@@ -685,11 +684,11 @@ case $host_os in
WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs -e _start -ldylib1.o -mmacosx-version-min=10.7 -Wl,-no_new_main,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
WINEPRELOADER_LDFLAGS="-nostartfiles -nodefaultlibs -e _start -ldylib1.o -mmacosx-version-min=10.7 -Wl,-no_new_main,-segalign,0x1000,-pagezero_size,0x1000,-sectcreate,__TEXT,__info_plist,loader/wine_info.plist"
WINE_TRY_CFLAGS([-Wl,-no_pie],
WINE_TRY_CFLAGS([-Wl,-no_pie],
[WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
[WINEPRELOADER_LDFLAGS="-Wl,-no_pie $WINEPRELOADER_LDFLAGS"])
case $
host_cpu
in
case $
HOST_ARCH
in
*i[[3456]]86*
)
i386
)
WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x7d400000 $WINEPRELOADER_LDFLAGS"
WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x7d400000 $WINEPRELOADER_LDFLAGS"
;;
;;
*x86_64*
)
x86_64
)
WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x200000000,-segalign,0x1000,-segaddr,WINE_RESERVE,0x1000 $WINEPRELOADER_LDFLAGS"
WINEPRELOADER_LDFLAGS="-Wl,-image_base,0x200000000,-segalign,0x1000,-segaddr,WINE_RESERVE,0x1000 $WINEPRELOADER_LDFLAGS"
;;
;;
esac
esac
...
@@ -738,11 +737,11 @@ case $host_os in
...
@@ -738,11 +737,11 @@ case $host_os in
if test "x$exec_prefix" = xNONE
if test "x$exec_prefix" = xNONE
then
then
case $
host_cpu
in
case $
HOST_ARCH
in
*i[[3456]]86*)
exec_prefix='${prefix}/x86' ;;
i386)
exec_prefix='${prefix}/x86' ;;
*x86_64*)
exec_prefix='${prefix}/x86_64' ;;
x86_64)
exec_prefix='${prefix}/x86_64' ;;
*arm*)
exec_prefix='${prefix}/armeabi-v7a' ;;
arm)
exec_prefix='${prefix}/armeabi-v7a' ;;
*aarch64*)
exec_prefix='${prefix}/arm64-v8a' ;;
aarch64)
exec_prefix='${prefix}/arm64-v8a' ;;
esac
esac
fi
fi
;;
;;
...
@@ -750,16 +749,15 @@ case $host_os in
...
@@ -750,16 +749,15 @@ case $host_os in
*)
*)
AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
AC_DEFINE(_GNU_SOURCE,1,[Define to 1 to enable GNU extensions on Linux])
test "$ac_cv_sys_file_offset_bits" = 64 && AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux])
test "$ac_cv_sys_file_offset_bits" = 64 && AC_DEFINE(_TIME_BITS,64,[Define to 64 to enable 64-bit time_t on Linux])
case $host_cpu in
if test $HOST_ARCH = i386
*i[[3456789]]86*)
then
DLLFLAGS="$DLLFLAGS -fno-PIC"
DLLFLAGS="$DLLFLAGS -fno-PIC"
LDDLLFLAGS="-fno-PIC"
LDDLLFLAGS="-fno-PIC"
WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
WINE_TRY_CFLAGS([-fno-PIC -Wl,-z,notext],[LDDLLFLAGS="$LDDLLFLAGS -Wl,-z,notext"])
;;
else
*)
DLLFLAGS="$DLLFLAGS -fPIC"
DLLFLAGS="$DLLFLAGS -fPIC"
LDDLLFLAGS="-fPIC"
;;
LDDLLFLAGS="-fPIC"
esac
fi
AC_CACHE_CHECK([whether -Wl,-z,defs works correctly], ac_cv_wl_z_defs,
AC_CACHE_CHECK([whether -Wl,-z,defs works correctly], ac_cv_wl_z_defs,
[ac_save_CFLAGS="$CFLAGS"
[ac_save_CFLAGS="$CFLAGS"
...
@@ -1875,10 +1873,10 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
...
@@ -1875,10 +1873,10 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
#error no
#error no
#endif]])],
#endif]])],
[wine_cv_64bit_compare_swap="none needed"],
[wine_cv_64bit_compare_swap="none needed"],
[case $
host_cpu
in
[case $
HOST_ARCH
in
*i[[3456]]86*
) wine_cv_64bit_compare_swap="-march=i586" ;;
i386
) wine_cv_64bit_compare_swap="-march=i586" ;;
*arm*)
wine_cv_64bit_compare_swap="-march=armv7-a" ;;
arm)
wine_cv_64bit_compare_swap="-march=armv7-a" ;;
*)
wine_cv_64bit_compare_swap="unknown" ;;
*) wine_cv_64bit_compare_swap="unknown" ;;
esac
esac
if test "x$wine_cv_64bit_compare_swap" != xunknown
if test "x$wine_cv_64bit_compare_swap" != xunknown
then
then
...
@@ -1919,10 +1917,10 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
...
@@ -1919,10 +1917,10 @@ char*f(const char *h,char n) {return strchr(h,n);}]])],[ac_cv_c_logicalop_noisy=
WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
WINE_TRY_CFLAGS([-Wno-format],[MSVCRTFLAGS="$MSVCRTFLAGS -Wno-format"]) ;;
esac
esac
case $
host_cpu
in
case $
HOST_ARCH
in
dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
dnl gcc-4.6+ omits frame pointers by default, breaking some copy protections
*i[[3456789]]86*
) WINE_TRY_CFLAGS([-fno-omit-frame-pointer],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-omit-frame-pointer"]) ;;
i386
) WINE_TRY_CFLAGS([-fno-omit-frame-pointer],[MSVCRTFLAGS="$MSVCRTFLAGS -fno-omit-frame-pointer"]) ;;
*x86_64*
)
x86_64
)
case $host_os in
case $host_os in
dnl Mingw uses Windows 64-bit types, not Unix ones
dnl Mingw uses Windows 64-bit types, not Unix ones
cygwin*|mingw32*) WINE_TRY_CFLAGS([-Wno-format]) ;;
cygwin*|mingw32*) WINE_TRY_CFLAGS([-Wno-format]) ;;
...
@@ -1939,7 +1937,7 @@ int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }]
...
@@ -1939,7 +1937,7 @@ int a(int b, ...) { __builtin_ms_va_list list; __builtin_ms_va_start(list,b); }]
fi
fi
MSVCRTFLAGS="$MSVCRTFLAGS -mabi=ms" ;;
MSVCRTFLAGS="$MSVCRTFLAGS -mabi=ms" ;;
esac ;;
esac ;;
arm
*
)
arm)
WINE_TRY_CFLAGS([-Wincompatible-function-pointer-types],[EXTRACFLAGS="$EXTRACFLAGS -Wno-error=incompatible-function-pointer-types"]) ;;
WINE_TRY_CFLAGS([-Wincompatible-function-pointer-types],[EXTRACFLAGS="$EXTRACFLAGS -Wno-error=incompatible-function-pointer-types"]) ;;
esac
esac
...
@@ -1996,12 +1994,11 @@ AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
...
@@ -1996,12 +1994,11 @@ AC_SUBST(WINELOADER_PROGRAMS,"$wine_binary")
case $host_os in
case $host_os in
linux*)
linux*)
case $host_cpu i
n
if test $HOST_ARCH != unknow
n
*i[[3456789]]86*|x86_64*|*aarch64*|arm*)
then
test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
test "$wine_binary" = wine || WINE_IGNORE_FILE(loader/wine-preloader)
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
WINELOADER_PROGRAMS="$WINELOADER_PROGRAMS $wine_binary-preloader"
;;
fi
esac
;;
;;
darwin*|macosx*)
darwin*|macosx*)
if test "$wine_can_build_preloader" = "yes"
if test "$wine_can_build_preloader" = "yes"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment