• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1<!--
2Copyright (C) Daniel Stenberg, <daniel@haxx.se>, et al.
3
4SPDX-License-Identifier: curl
5-->
6
7# How to install curl and libcurl
8
9## Installing Binary Packages
10
11Lots of people download binary distributions of curl and libcurl. This
12document does not describe how to install curl or libcurl using such a binary
13package. This document describes how to compile, build and install curl and
14libcurl from source code.
15
16## Building using vcpkg
17
18You can download and install curl and libcurl using the [vcpkg](https://github.com/Microsoft/vcpkg/) dependency manager:
19
20    git clone https://github.com/Microsoft/vcpkg.git
21    cd vcpkg
22    ./bootstrap-vcpkg.sh
23    ./vcpkg integrate install
24    vcpkg install curl[tool]
25
26The curl port in vcpkg is kept up to date by Microsoft team members and
27community contributors. If the version is out of date, please [create an issue
28or pull request](https://github.com/Microsoft/vcpkg) on the vcpkg repository.
29
30## Building from git
31
32If you get your code off a git repository instead of a release tarball, see
33the `GIT-INFO.md` file in the root directory for specific instructions on how
34to proceed.
35
36# Unix
37
38A normal Unix installation is made in three or four steps (after you have
39unpacked the source archive):
40
41    ./configure --with-openssl [--with-gnutls --with-wolfssl]
42    make
43    make test (optional)
44    make install
45
46(Adjust the configure line accordingly to use the TLS library you want.)
47
48You probably need to be root when doing the last command.
49
50Get a full listing of all available configure options by invoking it like:
51
52    ./configure --help
53
54If you want to install curl in a different file hierarchy than `/usr/local`,
55specify that when running configure:
56
57    ./configure --prefix=/path/to/curl/tree
58
59If you have write permission in that directory, you can do 'make install'
60without being root. An example of this would be to make a local install in
61your own home directory:
62
63    ./configure --prefix=$HOME
64    make
65    make install
66
67The configure script always tries to find a working SSL library unless
68explicitly told not to. If you have OpenSSL installed in the default search
69path for your compiler/linker, you do not need to do anything special. If you
70have OpenSSL installed in `/usr/local/ssl`, you can run configure like:
71
72    ./configure --with-openssl
73
74If you have OpenSSL installed somewhere else (for example, `/opt/OpenSSL`) and
75you have pkg-config installed, set the pkg-config path first, like this:
76
77    env PKG_CONFIG_PATH=/opt/OpenSSL/lib/pkgconfig ./configure --with-openssl
78
79Without pkg-config installed, use this:
80
81    ./configure --with-openssl=/opt/OpenSSL
82
83If you insist on forcing a build without SSL support, you can run configure
84like this:
85
86    ./configure --without-ssl
87
88If you have OpenSSL installed, but with the libraries in one place and the
89header files somewhere else, you have to set the `LDFLAGS` and `CPPFLAGS`
90environment variables prior to running configure. Something like this should
91work:
92
93    CPPFLAGS="-I/path/to/ssl/include" LDFLAGS="-L/path/to/ssl/lib" ./configure
94
95If you have shared SSL libs installed in a directory where your runtime
96linker does not find them (which usually causes configure failures), you can
97provide this option to gcc to set a hard-coded path to the runtime linker:
98
99    LDFLAGS=-Wl,-R/usr/local/ssl/lib ./configure --with-openssl
100
101## Static builds
102
103To force a static library compile, disable the shared library creation by
104running configure like:
105
106    ./configure --disable-shared
107
108The configure script is primarily done to work with shared/dynamic third party
109dependencies. When linking with shared libraries, the dependency "chain" is
110handled automatically by the library loader - on all modern systems.
111
112If you instead link with a static library, you need to provide all the
113dependency libraries already at the link command line.
114
115Figuring out all the dependency libraries for a given library is hard, as it
116might involve figuring out the dependencies of the dependencies and they vary
117between platforms and change between versions.
118
119When using static dependencies, the build scripts mostly assume that you, the
120user, provide all the necessary additional dependency libraries as additional
121arguments in the build. With configure, by setting `LIBS` or `LDFLAGS` on the
122command line.
123
124Building statically is not for the faint of heart.
125
126## Debug
127
128If you are a curl developer and use gcc, you might want to enable more debug
129options with the `--enable-debug` option.
130
131curl can be built to use a whole range of libraries to provide various useful
132services, and configure tries to auto-detect a decent default. If you want to
133alter it, you can select how to deal with each individual library.
134
135## Select TLS backend
136
137These options are provided to select the TLS backend to use.
138
139 - AmiSSL: `--with-amissl`
140 - BearSSL: `--with-bearssl`
141 - GnuTLS: `--with-gnutls`.
142 - mbedTLS: `--with-mbedtls`
143 - OpenSSL: `--with-openssl` (also for BoringSSL, AWS-LC, LibreSSL, and quictls)
144 - rustls: `--with-rustls`
145 - Schannel: `--with-schannel`
146 - Secure Transport: `--with-secure-transport`
147 - wolfSSL: `--with-wolfssl`
148
149You can build curl with *multiple* TLS backends at your choice, but some TLS
150backends cannot be combined: if you build with an OpenSSL fork (or wolfSSL),
151you cannot add another OpenSSL fork (or wolfSSL) simply because they have
152conflicting identical symbol names.
153
154When you build with multiple TLS backends, you can select the active one at
155runtime when curl starts up.
156
157## MultiSSL and HTTP/3
158
159HTTP/3 needs QUIC and QUIC needs TLS. Building libcurl with HTTP/3 and QUIC
160support is not compatible with the MultiSSL feature: they are mutually
161exclusive. If you need MultiSSL in your build, you cannot have HTTP/3 support
162and vice versa.
163
164libcurl can only use a single TLS library with QUIC and that *same* TLS
165library needs to be used for the other TLS using protocols.
166
167## Configure finding libs in wrong directory
168
169When the configure script checks for third-party libraries, it adds those
170directories to the `LDFLAGS` variable and then tries linking to see if it
171works. When successful, the found directory is kept in the `LDFLAGS` variable
172when the script continues to execute and do more tests and possibly check for
173more libraries.
174
175This can make subsequent checks for libraries wrongly detect another
176installation in a directory that was previously added to `LDFLAGS` by another
177library check.
178
179# Windows
180
181Building for Windows XP is required as a minimum.
182
183You can build curl with:
184
185- Microsoft Visual Studio 2008 v9.0 or later (`_MSC_VER >= 1500`)
186- MinGW-w64
187
188## Building Windows DLLs and C runtime (CRT) linkage issues
189
190 As a general rule, building a DLL with static CRT linkage is highly
191 discouraged, and intermixing CRTs in the same app is something to avoid at
192 any cost.
193
194 Reading and comprehending Microsoft Knowledge Base articles KB94248 and
195 KB140584 is a must for any Windows developer. Especially important is full
196 understanding if you are not going to follow the advice given above.
197
198 - [How To Use the C Runtime](https://support.microsoft.com/help/94248/how-to-use-the-c-run-time)
199 - [Runtime Library Compiler Options](https://docs.microsoft.com/cpp/build/reference/md-mt-ld-use-run-time-library)
200 - [Potential Errors Passing CRT Objects Across DLL Boundaries](https://docs.microsoft.com/cpp/c-runtime-library/potential-errors-passing-crt-objects-across-dll-boundaries)
201
202If your app is misbehaving in some strange way, or it is suffering from memory
203corruption, before asking for further help, please try first to rebuild every
204single library your app uses as well as your app using the debug
205multi-threaded dynamic C runtime.
206
207 If you get linkage errors read section 5.7 of the FAQ document.
208
209## Cygwin
210
211Almost identical to the Unix installation. Run the configure script in the
212curl source tree root with `sh configure`. Make sure you have the `sh`
213executable in `/bin/` or you see the configure fail toward the end.
214
215Run `make`
216
217## MS-DOS
218
219You can use either autotools or cmake:
220
221    ./configure \
222      CC=/path/to/djgpp/bin/i586-pc-msdosdjgpp-gcc \
223      AR=/path/to/djgpp/bin/i586-pc-msdosdjgpp-ar \
224      RANLIB=/path/to/djgpp/bin/i586-pc-msdosdjgpp-ranlib \
225      WATT_ROOT=/path/to/djgpp/net/watt \
226      --host=i586-pc-msdosdjgpp \
227      --with-openssl=/path/to/djgpp \
228      --with-zlib=/path/to/djgpp \
229      --without-libpsl \
230      --disable-shared
231
232    cmake . \
233      -DCMAKE_SYSTEM_NAME=DOS \
234      -DCMAKE_C_COMPILER_TARGET=i586-pc-msdosdjgpp \
235      -DCMAKE_C_COMPILER=/path/to/djgpp/bin/i586-pc-msdosdjgpp-gcc \
236      -DWATT_ROOT=/path/to/djgpp/net/watt \
237      -DOPENSSL_INCLUDE_DIR=/path/to/djgpp/include \
238      -DOPENSSL_SSL_LIBRARY=/path/to/djgpp/lib/libssl.a \
239      -DOPENSSL_CRYPTO_LIBRARY=/path/to/djgpp/lib/libcrypto.a \
240      -DZLIB_INCLUDE_DIR=/path/to/djgpp/include \
241      -DZLIB_LIBRARY=/path/to/djgpp/lib/libz.a \
242      -DCURL_USE_LIBPSL=OFF
243
244Notes:
245
246 - Requires DJGPP 2.04 or upper.
247
248 - Compile Watt-32 (and OpenSSL) with the same version of DJGPP. Otherwise
249   things go wrong because things like FS-extensions and `errno` values have
250   been changed between releases.
251
252## AmigaOS
253
254You can use either autotools or cmake:
255
256    ./configure \
257      CC=/opt/amiga/bin/m68k-amigaos-gcc \
258      AR=/opt/amiga/bin/m68k-amigaos-ar \
259      RANLIB=/opt/amiga/bin/m68k-amigaos-ranlib \
260      --host=m68k-amigaos \
261      --with-amissl \
262      CFLAGS='-O0 -msoft-float -mcrt=clib2' \
263      CPPFLAGS=-I/path/to/AmiSSL/Developer/include \
264      LDFLAGS=-L/path/to/AmiSSL/Developer/lib/AmigaOS3 \
265      LIBS='-lnet -lm -latomic' \
266      --without-libpsl \
267      --disable-shared
268
269    cmake . \
270      -DAMIGA=1 \
271      -DCMAKE_SYSTEM_NAME=Generic \
272      -DCMAKE_C_COMPILER_TARGET=m68k-unknown-amigaos \
273      -DCMAKE_C_COMPILER=/opt/amiga/bin/m68k-amigaos-gcc \
274      -DCMAKE_C_FLAGS='-O0 -msoft-float -mcrt=clib2' \
275      -DAMISSL_INCLUDE_DIR=/path/to/AmiSSL/Developer/include \
276      -DAMISSL_STUBS_LIBRARY=/path/to/AmiSSL/Developer/lib/AmigaOS3/libamisslstubs.a \
277      -DAMISSL_AUTO_LIBRARY=/path/to/AmiSSL/Developer/lib/AmigaOS3/libamisslauto.a \
278      -DCURL_USE_LIBPSL=OFF
279
280## Disabling Specific Protocols in Windows builds
281
282The configure utility, unfortunately, is not available for the Windows
283environment, therefore, you cannot use the various disable-protocol options of
284the configure utility on this platform.
285
286You can use specific defines to disable specific protocols and features. See
287[CURL-DISABLE](CURL-DISABLE.md) for the full list.
288
289If you want to set any of these defines you have the following options:
290
291 - Modify `lib/config-win32.h`
292 - Modify `lib/curl_setup.h`
293 - Modify `winbuild/Makefile.vc`
294 - Modify the "Preprocessor Definitions" in the libcurl project
295
296Note: The pre-processor settings can be found using the Visual Studio IDE
297under "Project -> Properties -> Configuration Properties -> C/C++ ->
298Preprocessor".
299
300## Using BSD-style lwIP instead of Winsock TCP/IP stack in Windows builds
301
302In order to compile libcurl and curl using BSD-style lwIP TCP/IP stack it is
303necessary to make the definition of the preprocessor symbol `USE_LWIPSOCK`
304visible to libcurl and curl compilation processes. To set this definition you
305have the following alternatives:
306
307 - Modify `lib/config-win32.h`
308 - Modify `winbuild/Makefile.vc`
309 - Modify the "Preprocessor Definitions" in the libcurl project
310
311Note: The pre-processor settings can be found using the Visual Studio IDE
312under "Project -> Properties -> Configuration Properties -> C/C++ ->
313Preprocessor".
314
315Once that libcurl has been built with BSD-style lwIP TCP/IP stack support, in
316order to use it with your program it is mandatory that your program includes
317lwIP header file `<lwip/opt.h>` (or another lwIP header that includes this)
318before including any libcurl header. Your program does not need the
319`USE_LWIPSOCK` preprocessor definition which is for libcurl internals only.
320
321Compilation has been verified with lwIP 1.4.0.
322
323This BSD-style lwIP TCP/IP stack support must be considered experimental given
324that it has been verified that lwIP 1.4.0 still needs some polish, and libcurl
325might yet need some additional adjustment.
326
327## Important static libcurl usage note
328
329When building an application that uses the static libcurl library on Windows,
330you must add `-DCURL_STATICLIB` to your `CFLAGS`. Otherwise the linker looks
331for dynamic import symbols.
332
333## Legacy Windows and SSL
334
335Schannel (from Windows SSPI), is the native SSL library in Windows. However,
336Schannel in Windows <= XP is unable to connect to servers that no longer
337support the legacy handshakes and algorithms used by those versions. If you
338are using curl in one of those earlier versions of Windows you should choose
339another SSL backend such as OpenSSL.
340
341# Apple Platforms (macOS, iOS, tvOS, watchOS, and their simulator counterparts)
342
343On modern Apple operating systems, curl can be built to use Apple's SSL/TLS
344implementation, Secure Transport, instead of OpenSSL. To build with Secure
345Transport for SSL/TLS, use the configure option `--with-secure-transport`.
346
347When Secure Transport is in use, the curl options `--cacert` and `--capath`
348and their libcurl equivalents, are ignored, because Secure Transport uses the
349certificates stored in the Keychain to evaluate whether or not to trust the
350server. This, of course, includes the root certificates that ship with the OS.
351The `--cert` and `--engine` options, and their libcurl equivalents, are
352currently unimplemented in curl with Secure Transport.
353
354In general, a curl build for an Apple `ARCH/SDK/DEPLOYMENT_TARGET` combination
355can be taken by providing appropriate values for `ARCH`, `SDK`, `DEPLOYMENT_TARGET`
356below and running the commands:
357
358```bash
359# Set these three according to your needs
360export ARCH=x86_64
361export SDK=macosx
362export DEPLOYMENT_TARGET=10.8
363
364export CFLAGS="-arch $ARCH -isysroot $(xcrun -sdk $SDK --show-sdk-path) -m$SDK-version-min=$DEPLOYMENT_TARGET"
365./configure --host=$ARCH-apple-darwin --prefix $(pwd)/artifacts --with-secure-transport
366make -j8
367make install
368```
369
370With CMake:
371
372```bash
373cmake . \
374  -DCMAKE_OSX_ARCHITECTURES=x86_64 \
375  -DCMAKE_OSX_DEPLOYMENT_TARGET=10.8 \
376  -DCMAKE_OSX_SYSROOT="$(xcrun --sdk macosx --show-sdk-path)"
377```
378
379The above command lines build curl for macOS platform with `x86_64`
380architecture and `10.8` as deployment target.
381
382Here is an example for iOS device:
383
384```bash
385export ARCH=arm64
386export SDK=iphoneos
387export DEPLOYMENT_TARGET=11.0
388
389export CFLAGS="-arch $ARCH -isysroot $(xcrun -sdk $SDK --show-sdk-path) -m$SDK-version-min=$DEPLOYMENT_TARGET"
390./configure --host=$ARCH-apple-darwin --prefix $(pwd)/artifacts --with-secure-transport
391make -j8
392make install
393```
394
395With CMake (3.16 or upper recommended):
396
397```bash
398cmake . \
399  -DCMAKE_SYSTEM_NAME=iOS \
400  -DCMAKE_OSX_ARCHITECTURES=arm64 \
401  -DCMAKE_OSX_DEPLOYMENT_TARGET=11.0
402```
403
404Another example for watchOS simulator for macs with Apple Silicon:
405
406```bash
407export ARCH=arm64
408export SDK=watchsimulator
409export DEPLOYMENT_TARGET=5.0
410
411export CFLAGS="-arch $ARCH -isysroot $(xcrun -sdk $SDK --show-sdk-path) -m$SDK-version-min=$DEPLOYMENT_TARGET"
412./configure --host=$ARCH-apple-darwin --prefix $(pwd)/artifacts --with-secure-transport
413make -j8
414make install
415```
416
417In all above, the built libraries and executables can be found in the
418`artifacts` folder.
419
420# Android
421
422When building curl for Android you can you CMake or curl's `configure` script.
423
424Before you can build curl for Android, you need to install the Android NDK
425first. This can be done using the SDK Manager that is part of Android Studio.
426Once you have installed the Android NDK, you need to figure out where it has
427been installed and then set up some environment variables before launching
428the build.
429
430Examples to compile for `aarch64` and API level 29:
431
432with CMake, where `ANDROID_NDK_HOME` points into your NDK:
433
434    cmake . \
435      -DANDROID_ABI=arm64-v8a \
436      -DANDROID_PLATFORM=android-29 \
437      -DCMAKE_TOOLCHAIN_FILE="$ANDROID_NDK_HOME/build/cmake/android.toolchain.cmake" \
438      -DCURL_ENABLE_SSL=OFF \
439      -DCURL_USE_LIBPSL=OFF
440
441with `configure`, on macOS:
442
443```bash
444export ANDROID_NDK_HOME=~/Library/Android/sdk/ndk/25.1.8937393 # Point into your NDK.
445export HOST_TAG=darwin-x86_64 # Same tag for Apple Silicon. Other OS values here: https://developer.android.com/ndk/guides/other_build_systems#overview
446export TOOLCHAIN=$ANDROID_NDK_HOME/toolchains/llvm/prebuilt/$HOST_TAG
447export AR=$TOOLCHAIN/bin/llvm-ar
448export AS=$TOOLCHAIN/bin/llvm-as
449export CC=$TOOLCHAIN/bin/aarch64-linux-android29-clang
450export CXX=$TOOLCHAIN/bin/aarch64-linux-android29-clang++
451export LD=$TOOLCHAIN/bin/ld
452export RANLIB=$TOOLCHAIN/bin/llvm-ranlib
453export STRIP=$TOOLCHAIN/bin/llvm-strip
454```
455
456When building on Linux or targeting other API levels or architectures, you need
457to adjust those variables accordingly. After that you can build curl like this:
458
459    ./configure --host aarch64-linux-android --with-pic --disable-shared
460
461Note that this does not give you SSL/TLS support. If you need SSL/TLS, you
462have to build curl with a SSL/TLS library, e.g. OpenSSL, because it is
463impossible for curl to access Android's native SSL/TLS layer. To build curl
464for Android using OpenSSL, follow the OpenSSL build instructions and then
465install `libssl.a` and `libcrypto.a` to `$TOOLCHAIN/sysroot/usr/lib` and copy
466`include/openssl` to `$TOOLCHAIN/sysroot/usr/include`. Now you can build curl
467for Android using OpenSSL like this:
468
469```bash
470LIBS="-lssl -lcrypto -lc++" # For OpenSSL/BoringSSL. In general, you need to the SSL/TLS layer's transitive dependencies if you are linking statically.
471./configure --host aarch64-linux-android --with-pic --disable-shared --with-openssl="$TOOLCHAIN/sysroot/usr"
472```
473
474# IBM i
475
476For IBM i (formerly OS/400), you can use curl in two different ways:
477
478- Natively, running in the **ILE**. The obvious use is being able to call curl
479  from ILE C or RPG applications.
480- You need to build this from source. See `packages/OS400/README` for the ILE
481  specific build instructions.
482- In the **PASE** environment, which runs AIX programs. curl is built as it
483  would be on AIX.
484- IBM provides builds of curl in their Yum repository for PASE software.
485- To build from source, follow the Unix instructions.
486
487There are some additional limitations and quirks with curl on this platform;
488they affect both environments.
489
490## Multi-threading notes
491
492By default, jobs in IBM i does not start with threading enabled. (Exceptions
493include interactive PASE sessions started by `QP2TERM` or SSH.) If you use
494curl in an environment without threading when options like asynchronous DNS
495were enabled, you get messages like:
496
497```
498getaddrinfo() thread failed to start
499```
500
501Do not panic. curl and your program are not broken. You can fix this by:
502
503- Set the environment variable `QIBM_MULTI_THREADED` to `Y` before starting
504  your program. This can be done at whatever scope you feel is appropriate.
505- Alternatively, start the job with the `ALWMLTTHD` parameter set to `*YES`.
506
507# Cross compile
508
509Download and unpack the curl package.
510
511`cd` to the new directory. (e.g. `cd curl-7.12.3`)
512
513Set environment variables to point to the cross-compile toolchain and call
514configure with any options you need. Be sure and specify the `--host` and
515`--build` parameters at configuration time. The following script is an example
516of cross-compiling for the IBM 405GP PowerPC processor using the toolchain on
517Linux.
518
519```bash
520#! /bin/sh
521
522export PATH=$PATH:/opt/hardhat/devkit/ppc/405/bin
523export CPPFLAGS="-I/opt/hardhat/devkit/ppc/405/target/usr/include"
524export AR=ppc_405-ar
525export AS=ppc_405-as
526export LD=ppc_405-ld
527export RANLIB=ppc_405-ranlib
528export CC=ppc_405-gcc
529export NM=ppc_405-nm
530
531./configure --target=powerpc-hardhat-linux
532    --host=powerpc-hardhat-linux
533    --build=i586-pc-linux-gnu
534    --prefix=/opt/hardhat/devkit/ppc/405/target/usr/local
535    --exec-prefix=/usr/local
536```
537
538You may also need to provide a parameter like `--with-random=/dev/urandom` to
539configure as it cannot detect the presence of a random number generating
540device for a target system. The `--prefix` parameter specifies where curl gets
541installed. If `configure` completes successfully, do `make` and `make install`
542as usual.
543
544In some cases, you may be able to simplify the above commands to as little as:
545
546    ./configure --host=ARCH-OS
547
548# REDUCING SIZE
549
550There are a number of configure options that can be used to reduce the size of
551libcurl for embedded applications where binary size is an important factor.
552First, be sure to set the `CFLAGS` variable when configuring with any relevant
553compiler optimization flags to reduce the size of the binary. For gcc, this
554would mean at minimum the `-Os` option, and others like the following that
555may be relevant in some environments: `-march=X`, `-mthumb`, `-m32`,
556`-mdynamic-no-pic`, `-flto`, `-fdata-sections`, `-ffunction-sections`,
557`-fno-unwind-tables`, `-fno-asynchronous-unwind-tables`,
558`-fno-record-gcc-switches`, `-fsection-anchors`, `-fno-plt`,
559`-Wl,--gc-sections`, `-Wl,-Bsymbolic`, `-Wl,-s`,
560
561For example, this is how to combine a few of these options:
562
563    ./configure CC=gcc CFLAGS='-Os -ffunction-sections' LDFLAGS='-Wl,--gc-sections'...
564
565Note that newer compilers often produce smaller code than older versions
566due to improved optimization.
567
568Be sure to specify as many `--disable-` and `--without-` flags on the
569configure command-line as you can to disable all the libcurl features that you
570know your application is not going to need. Besides specifying the
571`--disable-PROTOCOL` flags for all the types of URLs your application do not
572use, here are some other flags that can reduce the size of the library by
573disabling support for some feature (run `./configure --help` to see them all):
574
575 - `--disable-alt-svc` (HTTP Alt-Svc)
576 - `--disable-ares` (the C-ARES DNS library)
577 - `--disable-cookies` (HTTP cookies)
578 - `--disable-basic-auth` (cryptographic authentication)
579 - `--disable-bearer-auth` (cryptographic authentication)
580 - `--disable-digest-auth` (cryptographic authentication)
581 - `--disable-kerberos-auth` (cryptographic authentication)
582 - `--disable-negotiate-auth` (cryptographic authentication)
583 - `--disable-aws` (cryptographic authentication)
584 - `--disable-dateparse` (date parsing for time conditionals)
585 - `--disable-dnsshuffle` (internal server load spreading)
586 - `--disable-doh` (DNS-over-HTTP)
587 - `--disable-form-api` (POST form API)
588 - `--disable-get-easy-options` (lookup easy options at runtime)
589 - `--disable-headers-api` (API to access headers)
590 - `--disable-hsts` (HTTP Strict Transport Security)
591 - `--disable-http-auth` (all HTTP authentication)
592 - `--disable-ipv6` (IPv6)
593 - `--disable-libcurl-option` (--libcurl C code generation support)
594 - `--disable-manual` (--manual built-in documentation)
595 - `--disable-mime` (MIME API)
596 - `--disable-netrc`  (.netrc file)
597 - `--disable-ntlm` (NTLM authentication)
598 - `--disable-ntlm-wb` (NTLM winbind)
599 - `--disable-progress-meter` (graphical progress meter in library)
600 - `--disable-proxy` (HTTP and SOCKS proxies)
601 - `--disable-pthreads` (multi-threading)
602 - `--disable-socketpair` (socketpair for asynchronous name resolving)
603 - `--disable-threaded-resolver`  (threaded name resolver)
604 - `--disable-tls-srp` (Secure Remote Password authentication for TLS)
605 - `--disable-unix-sockets` (Unix sockets)
606 - `--disable-verbose` (eliminates debugging strings and error code strings)
607 - `--disable-versioned-symbols` (versioned symbols)
608 - `--enable-symbol-hiding` (eliminates unneeded symbols in the shared library)
609 - `--without-brotli` (Brotli on-the-fly decompression)
610 - `--without-libpsl` (Public Suffix List in cookies)
611 - `--without-nghttp2` (HTTP/2 using nghttp2)
612 - `--without-ngtcp2` (HTTP/2 using ngtcp2)
613 - `--without-zstd` (Zstd on-the-fly decompression)
614 - `--without-libidn2` (internationalized domain names)
615 - `--without-librtmp` (RTMP)
616 - `--without-ssl` (SSL/TLS)
617 - `--without-zlib` (on-the-fly decompression)
618
619Be sure also to strip debugging symbols from your binaries after compiling
620using 'strip' or an option like `-s`. If space is really tight, you may be able
621to gain a few bytes by removing some unneeded sections of the shared library
622using the -R option to objcopy (e.g. the .comment section).
623
624Using these techniques it is possible to create a basic HTTP-only libcurl
625shared library for i386 Linux platforms that is only 130 KiB in size
626(as of libcurl version 8.6.0, using gcc 13.2.0).
627
628You may find that statically linking libcurl to your application results in a
629lower total size than dynamically linking.
630
631The curl test harness can detect the use of some, but not all, of the
632`--disable` statements suggested above. Use of these can cause tests relying
633on those features to fail. The test harness can be manually forced to skip the
634relevant tests by specifying certain key words on the `runtests.pl` command
635line. Following is a list of appropriate key words for those configure options
636that are not automatically detected:
637
638 - `--disable-cookies`          !cookies
639 - `--disable-dateparse`        !RETRY-AFTER !`CURLOPT_TIMECONDITION` !`CURLINFO_FILETIME` !`If-Modified-Since` !`curl_getdate` !`-z`
640 - `--disable-libcurl-option`   !`--libcurl`
641 - `--disable-verbose`          !verbose\ logs
642
643# Ports
644
645This is a probably incomplete list of known CPU architectures and operating
646systems that curl has been compiled for. If you know a system curl compiles
647and runs on, that is not listed, please let us know.
648
649## 104 Operating Systems
650
651    AIX, AmigaOS, Android, ArcoOS, Aros, Atari FreeMiNT, BeOS, Blackberry
652    10, Blackberry Tablet OS, Cell OS, CheriBSD, Chrome OS, Cisco IOS,
653    DG/UX, DR DOS, Dragonfly BSD, eCOS, FreeBSD, FreeDOS, FreeRTOS, Fuchsia,
654    Garmin OS, Genode, Haiku, HardenedBSD, HP-UX, Hurd, IBM I, illumos,
655    Integrity, iOS, ipadOS, IRIX, Linux, Lua RTOS, Mac OS 9, macOS, Maemo,
656    Mbed, Meego, Micrium, MINIX, Minoca, Moblin, MorphOS, MPE/iX, MS-DOS,
657    NCR MP-RAS, NetBSD, Netware, NextStep, Nintendo 3DS Nintendo Switch,
658    NonStop OS, NuttX, OpenBSD, OpenStep, Orbis OS, OS/2, OS21, Plan 9,
659    PlayStation Portable, QNX, Qubes OS, ReactOS, Redox, RISC OS, ROS,
660    RTEMS, Sailfish OS, SCO Unix, Serenity, SINIX-Z, SkyOS, software,
661    Solaris, Sortix, SunOS, Syllable OS, Symbian, Tizen, TPF, Tru64, tvOS,
662    ucLinux, Ultrix, UNICOS, UnixWare, VMS, vxWorks, watchOS, Wear OS,
663    WebOS, Wii system Wii U, Windows CE, Windows, Xbox System, Xenix, z/OS,
664    z/TPF, z/VM, z/VSE, Zephyr
665
666## 28 CPU Architectures
667
668    Alpha, ARC, ARM, AVR32, C-SKY, CompactRISC, Elbrus, ETRAX, HP-PA, Itanium,
669    LoongArch, m68k, m88k, MicroBlaze, MIPS, Nios, OpenRISC, POWER, PowerPC,
670    RISC-V, s390, SH4, SPARC, Tilera, VAX, x86, Xtensa, z/arch
671