Skip to content

Makefile.mk: drop Windows support - #12224

Closed
vszakats wants to merge 6 commits into
curl:masterfrom
vszakats:mk-drop-windows-support
Closed

vszakats wants to merge 6 commits into
curl:masterfrom
vszakats:mk-drop-windows-support

Conversation

@vszakats

@vszakats vszakats commented Oct 28, 2023 •

Copy link
Copy Markdown
Member

And DLL-support with it. This leaves Makefile.mk for MS-DOS and Amiga.

We recommend CMake instead. With unity mode it's much faster, and about
the same without.

Ref: #12221 (comment)
Closes #12224


  • Hold off till curl v8.6.0.

@vszakats vszakats added build feature-window A merge of this requires an open feature window Windows Windows-specific labels Oct 28, 2023
@github-actions github-actions Bot added CI Continuous Integration cmdline tool labels Oct 28, 2023
@jay

jay commented Oct 29, 2023

Copy link
Copy Markdown
Member

@gvanem does this affect how you build curl?

@gvanem

gvanem commented Oct 29, 2023

Copy link
Copy Markdown
Contributor

@jay No and I have no objections to remove support for these.

@vszakats
vszakats force-pushed the mk-drop-windows-support branch from a089deb to 68482dd Compare December 6, 2023 20:36
@vszakats vszakats closed this in ba8752e Dec 16, 2023
@vszakats
vszakats deleted the mk-drop-windows-support branch December 16, 2023 13:18
@firstrose

Copy link
Copy Markdown

Excuse me, but could you tell me how to build curl by mingw with cmake under windows now? Start from 8.6.0, the makefile doesn't work anymore. It confuses me before I see this. Thanks.

@jay

jay commented Mar 31, 2024 •

Copy link
Copy Markdown
Member

Excuse me, but could you tell me how to build curl by mingw with cmake under windows now? Start from 8.6.0, the makefile doesn't work anymore. It confuses me before I see this. Thanks.

Original mingw is no longer supported. It may still work I haven't tried. mingw-w64 is supported. To have cmake generate mingw build files use -G "MinGW Makefiles", for example

git clone https://github.com/curl/curl.git
mkdir curlbuild
cd curlbuild
cmake ../curl -G "MinGW Makefiles" -DCURL_USE_SCHANNEL=ON
cmake --build .

you will of course need the prerequisites for mingw gcc and make installed beforehand which should be as simple as open a MSYS2 MINGW64 shell prompt and pacman -S mingw-w64-x86_64-toolchain

also you can set the path where cmake will install curl with -DCMAKE_INSTALL_PREFIX:PATH=yourpathhere

see also INSTALL-CMAKE.md for cmake info

jay added a commit to jay/curl that referenced this pull request Mar 31, 2024
- Explain that CMake's -G option can be used to specify which build
  system to generate files for.

Example: cmake ../curl -G "MinGW Makefiles"

Ref: curl#12224 (comment)

Closes #xxxx
jay added a commit that referenced this pull request Apr 1, 2024
- Explain that CMake's -G option can be used to specify which build
  system to generate files for.

Example: cmake ../curl -G "MinGW Makefiles"

Ref: #12224 (comment)

Closes #13244
vszakats added a commit that referenced this pull request Dec 10, 2025
Meant for use from `Makefile.mk`. The suggested replacement is CMake or
autotools.

Follow-up to ba8752e #12224

Closes #19920
vszakats added a commit that referenced this pull request Aug 16, 2026
This is the only purpose it's maintained for.

Drop mingw-w64 and other logic falling outside of VS2010-2013 needs.

mingw-w64/MSVC platform differences keep being maintained/documented as
part of the CMake pre-fill logic in `CMake/win32-cache.cmake`.

Follow-up to ba8752e #12224

Closes #22595
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

build CI Continuous Integration cmdline tool feature-window A merge of this requires an open feature window Windows Windows-specific

Development

Successfully merging this pull request may close these issues.

5 participants