Commit graph

243 commits

Author SHA1 Message Date
Jacek Caban
8a87ce3c4f configure: Use -fms-hotpatch when available.
On Clang, this flag serves as a replacement for the __ms_hook_prologue__ attribute.
2024-11-14 11:10:28 +01:00
Alexandre Julliard
76a44d758b configure: Remove some obsolete checks. 2024-09-19 15:02:35 +02:00
Alexandre Julliard
e5ecc6368c configure: Use the compiler instead of the preprocessor to check CPU defines. 2024-09-11 13:40:40 +02:00
Alexandre Julliard
9305ac2206 configure: Re-generate with autoconf 2.72. 2024-09-10 16:58:28 +02:00
Alexandre Julliard
72409c32be configure: Disable building programs for ARM64EC.
Explicitly enable the few programs that need it.
2023-12-08 15:07:17 +01:00
Jacek Caban
cf29f40ce4 configure: Fix action-if-no handling in WINE_TRY_PE_CFLAGS macro. 2023-11-27 22:39:51 +01:00
Jacek Caban
5004e6bce7 configure: Add arm64ec PE target support. 2023-11-13 11:26:19 +01:00
Alexandre Julliard
da2ae5832c configure: Consistently use HOST_ARCH for platform checks. 2023-11-10 20:52:28 +01:00
Alexandre Julliard
3e49808094 configure: Remove no longer used WINE_TRY_SHLIB_FLAGS macro. 2023-11-10 13:20:59 +01:00
Eric Pouech
ede777d11d configure: Log pkg-config error messages.
While investigating https://bugs.winehq.org/show_bug.cgi?id=53953,
it may be a good idea to log any pkg-config error messages instead
of ignoring them.

Signed-off-by: Eric Pouech <eric.pouech@gmail.com>
2022-12-01 22:34:51 +01:00
Jacek Caban
c096d6cec7 configure: Use -nostdlib instead of -nostartfiles in WINE_TRY_PE_CFLAGS.
-nostartfiles is not enough if clang is configured with explicit default rtlib.
2022-11-28 21:01:55 +01:00
Alexandre Julliard
b1f59bc679 makefiles: Add support for multiple PE architectures. 2022-11-01 10:29:49 +01:00
Zebediah Figura
9ac28955cf configure: Try to detect MinGW zlib using pkg-config if --with-system-dllpath is specified.
Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-12-02 20:20:39 +01:00
Zebediah Figura
f10b176bfa configure: Don't use a bundled include path if external linker flags are specified.
The external include path might be empty e.g. if the relevant headers are to be
found directly in the MinGW sysroot, but we still don't want to use the bundled
library's include path in that case.

Signed-off-by: Zebediah Figura <zfigura@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-30 12:43:34 +01:00
Alexandre Julliard
c6b5f4a406 makefiles: Generate the top makefile entirely from configure.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-11-10 13:44:44 +01:00
Alexandre Julliard
a4b01382e1 makefiles: Add support for building libraries imported from external sources.
Based on a patch by Rémi Bernon.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-10-18 11:07:07 +02:00
Jacek Caban
b070eb78cc configure: Try using pure clang as a cross compiler when mingw is not available.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-05-17 20:41:25 +02:00
Sergei Trofimovich
d7645b67c3 aclocal.m4: Fix compatibility with upcoming autoconf-2.70.
Under autoconf 2.69c (beta) `./configure` fails as:

```
./configure
...
checking for msgfmt... msgfmt
./configure: line 7441: syntax error near unexpected token `newline'
./configure: line 7441: `    '''
```

This happens due to underquoting of a snippet
argument for `AS_VAR_SET_IF` call.

Signed-off-by: Sergei Trofimovich <slyfox@gentoo.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-10-30 10:34:13 +01:00
Alexandre Julliard
468af5bbb4 makefiles: Remove directory variables that are redundant with non-recursive make.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-14 19:42:40 +02:00
Jacek Caban
3cae9288ea configure: Assume that -delayload linker argument is supported when -target argument is used.
In practice, it's present only on clang and it always needs to be used
there. mingw and msvc targets have different syntax. We take care of
that in winegcc.

Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-05-05 20:53:02 +02:00
Jacek Caban
f29d4a43e2 configure: Use -nostartfiles -nodefaultlibs in cross compiler checks.
Signed-off-by: Jacek Caban <jacek@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-02-17 15:05:00 +01:00
Alexandre Julliard
4152f944f6 makefiles: Create source dir symlinks from the makefiles.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-11-22 14:45:10 +01:00
Evgeny Litvinenko
11b8bbc7b9 aclocal.m4: Allow nesting WINE_TRY_SHLIB_FLAGS.
Signed-off-by: Evgeny Litvinenko <evgeny.v.litvinenko@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-06 19:06:15 +02:00
Alexandre Julliard
92714fcb62 configure: Also cache negative results of soname checks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-14 15:10:31 +02:00
Huw Davies
56a30ff60e configure: Use a separate cache variable for the cross-compiler flags.
Signed-off-by: Huw Davies <huw@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-08 09:55:22 +02:00
Alexandre Julliard
870f99eced configure: Check for supported warning flags also for the cross-compiler.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-04-05 22:16:31 +02:00
Alexandre Julliard
faac33827c makefiles: Create 64-bit winewrapper symlink in the WoW64 build tree.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-11-26 14:21:57 +01:00
Martin Storsjo
31de3c6907 configure: Detect MinGW-w64 ARM64 toolchains.
Signed-off-by: Martin Storsjo <martin@martin.st>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-05-10 08:37:22 +02:00
Alexandre Julliard
3aecaf1da7 makefiles: Treat all directories the same way in configure.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:23:28 -06:00
Alexandre Julliard
431b645998 makefiles: Generate the tools dependencies from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:23:27 -06:00
Alexandre Julliard
acc6306bcf makefiles: Generate the winetest resource list from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-03-05 06:23:27 -06:00
Alexandre Julliard
e91304e416 makefiles: Generate the remaining top-level rules from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 21:23:36 +01:00
Alexandre Julliard
2b59daf326 makefiles: Generate the top-level test rules from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 17:33:12 +01:00
Alexandre Julliard
1c31b75e62 makefiles: Generate the top-level import library rules from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 17:33:05 +01:00
Alexandre Julliard
733ed05650 makefiles: Generate the top-level install rules using the subdirs rules.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-22 14:34:56 +01:00
Alexandre Julliard
1a52ba0bc8 makefiles: Generate the uninstall rule using the subdirs file lists.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 12:29:06 +01:00
Alexandre Julliard
832a40109e makefiles: Make the directory specifications a bit more standard.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-21 12:25:26 +01:00
Alexandre Julliard
11ecc76dd0 makefiles: Generate the clean rule using the subdirs file lists.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 22:13:59 +01:00
Alexandre Julliard
3e6c12e7a9 makefiles: Generate the testclean rule using the subdirs file lists.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-02-19 21:23:13 +01:00
Alexandre Julliard
4100c9210d configure: Replace AC_HEADER_MAJOR macro to handle glibc 2.25 sys/types.h breakage.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-12-01 15:56:54 +01:00
Alasdair Sinclair
6981a86441 configure: Fix make install for mf3216.dll.
Signed-off-by: Alasdair Sinclair <alasdairsinc@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-27 09:17:25 +01:00
Alexandre Julliard
27528e5498 makefiles: Build import libraries that contain object files as static libraries.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-25 15:40:12 +09:00
Alexandre Julliard
c6d6dcee47 configure: Don't create makefiles in directories that are symlinks in a Wow64 build.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-07 16:26:42 +09:00
Alexandre Julliard
850df9d5a5 configure: Support setting the corresponding enable variable directly from the WINE_NOTICE_WITH macros.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-03-01 15:46:55 +09:00
Alexandre Julliard
dcc16c7cac makefiles: Don't generate global rules in disabled directories.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-29 20:05:00 +09:00
Alexandre Julliard
77c1b7e352 makefiles: Generate the top-level .gitignore and the distclean rules.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 18:06:25 +09:00
Alexandre Julliard
f74638f940 makefiles: Generate rules for import libraries symlinks.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-26 15:10:06 +09:00
Alexandre Julliard
ce231568a9 makefiles: Generate top-level rules for pot files.
Get rid of the rsrc.pot and msg.pot hacks, use each individual source
file instead.

Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-25 17:07:09 +09:00
Alexandre Julliard
8a064a7d12 makefiles: Import libraries don't need to depend on subdirectories even when there's a static lib.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-02-16 23:26:29 +09:00
Alexandre Julliard
cd0af88591 makefiles: Generate makefile dependencies from makedep.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-01-11 21:02:46 +09:00