head 1.20; access; symbols perseant-exfatfs-base-20261102:1.20 netbsd-11-1-RELEASE:1.18 gcc-14-4-0:1.1.1.23 netbsd-10-2-RELEASE:1.14.2.1 netbsd-9-5-RELEASE:1.9 netbsd-11-0-RELEASE:1.18 netbsd-11-0-RC7:1.18 netbsd-11-0-RC6:1.18 netbsd-11-0-RC5:1.18 netbsd-11-0-RC4:1.18 netbsd-11-0-RC3:1.18 netbsd-11-0-RC2:1.18 netbsd-11-0-RC1:1.18 gcc-14-3-0:1.1.1.22 perseant-exfatfs-base-20250801:1.18 netbsd-11:1.18.0.2 netbsd-11-base:1.18 gcc-12-5-0:1.1.1.21 netbsd-10-1-RELEASE:1.14.2.1 perseant-exfatfs-base-20240630:1.17 gcc-12-4-0:1.1.1.20 perseant-exfatfs:1.16.0.2 perseant-exfatfs-base:1.16 netbsd-8-3-RELEASE:1.5.8.1 netbsd-9-4-RELEASE:1.9 netbsd-10-0-RELEASE:1.14.2.1 netbsd-10-0-RC6:1.14.2.1 netbsd-10-0-RC5:1.14.2.1 netbsd-10-0-RC4:1.14.2.1 netbsd-10-0-RC3:1.14.2.1 netbsd-10-0-RC2:1.14.2.1 netbsd-10-0-RC1:1.14.2.1 gcc-12-3-0:1.1.1.19 gcc-10-5-0:1.1.1.18 netbsd-10:1.14.0.2 netbsd-10-base:1.14 netbsd-9-3-RELEASE:1.9 gcc-10-4-0:1.1.1.17 cjep_sun2x-base1:1.13 cjep_sun2x:1.13.0.4 cjep_sun2x-base:1.13 cjep_staticlib_x-base1:1.13 netbsd-9-2-RELEASE:1.9 cjep_staticlib_x:1.13.0.2 cjep_staticlib_x-base:1.13 gcc-10-3-0:1.1.1.16 netbsd-9-1-RELEASE:1.9 gcc-9-3-0:1.1.1.15 gcc-7-5-0:1.1.1.13 phil-wifi-20200421:1.11 phil-wifi-20200411:1.11 is-mlppp:1.10.0.2 is-mlppp-base:1.10 phil-wifi-20200406:1.11 netbsd-8-2-RELEASE:1.5.8.1 gcc-8-4-0:1.1.1.14 netbsd-9-0-RELEASE:1.9 netbsd-9-0-RC2:1.9 netbsd-9-0-RC1:1.9 phil-wifi-20191119:1.10 gcc-8-3-0:1.1.1.11 netbsd-9:1.9.0.2 netbsd-9-base:1.9 phil-wifi-20190609:1.9 netbsd-8-1-RELEASE:1.5.8.1 netbsd-8-1-RC1:1.5.8.1 pgoyette-compat-merge-20190127:1.7.2.2 pgoyette-compat-20190127:1.9 gcc-7-4-0:1.1.1.10 pgoyette-compat-20190118:1.8 pgoyette-compat-1226:1.8 pgoyette-compat-1126:1.8 gcc-6-5-0:1.1.1.9 pgoyette-compat-1020:1.7 pgoyette-compat-0930:1.7 pgoyette-compat-0906:1.7 netbsd-7-2-RELEASE:1.3.2.1 pgoyette-compat-0728:1.7 netbsd-8-0-RELEASE:1.5.8.1 phil-wifi:1.7.0.4 phil-wifi-base:1.7 pgoyette-compat-0625:1.7 netbsd-8-0-RC2:1.5.8.1 pgoyette-compat-0521:1.7 pgoyette-compat-0502:1.7 pgoyette-compat-0422:1.7 netbsd-8-0-RC1:1.5.8.1 pgoyette-compat-0415:1.7 pgoyette-compat-0407:1.7 pgoyette-compat-0330:1.7 pgoyette-compat-0322:1.7 pgoyette-compat-0315:1.7 netbsd-7-1-2-RELEASE:1.3.2.1 pgoyette-compat:1.7.0.2 pgoyette-compat-base:1.7 gcc-6-4-0:1.1.1.8 netbsd-7-1-1-RELEASE:1.3.2.1 gcc-5-5-0:1.1.1.7 matt-nb8-mediatek:1.5.0.12 matt-nb8-mediatek-base:1.5 perseant-stdc-iso10646:1.5.0.10 perseant-stdc-iso10646-base:1.5 netbsd-8:1.5.0.8 netbsd-8-base:1.5 prg-localcount2-base3:1.5 prg-localcount2-base2:1.5 prg-localcount2-base1:1.5 prg-localcount2:1.5.0.6 prg-localcount2-base:1.5 pgoyette-localcount-20170426:1.5 bouyer-socketcan-base1:1.5 pgoyette-localcount-20170320:1.5 netbsd-7-1:1.3.2.1.0.4 netbsd-7-1-RELEASE:1.3.2.1 netbsd-7-1-RC2:1.3.2.1 netbsd-7-nhusb-base-20170116:1.3.2.1 bouyer-socketcan:1.5.0.4 bouyer-socketcan-base:1.5 pgoyette-localcount-20170107:1.5 netbsd-7-1-RC1:1.3.2.1 pgoyette-localcount-20161104:1.5 netbsd-7-0-2-RELEASE:1.3 localcount-20160914:1.5 netbsd-7-nhusb:1.3.2.1.0.2 netbsd-7-nhusb-base:1.3.2.1 pgoyette-localcount-20160806:1.5 pgoyette-localcount-20160726:1.5 pgoyette-localcount:1.5.0.2 pgoyette-localcount-base:1.5 gcc-5-4-0:1.1.1.6 netbsd-7-0-1-RELEASE:1.3 gcc-5-3-0:1.1.1.6 netbsd-7-0:1.3.0.4 netbsd-7-0-RELEASE:1.3 gcc-4-8-5-pre-gcc-old-import:1.4 netbsd-7-0-RC3:1.3 netbsd-7-0-RC2:1.3 post-gcc-4-8-5-merge:1.4 gcc-4-8-5:1.1.1.5 netbsd-7-0-RC1:1.3 gcc-4-8-4:1.1.1.4 netbsd-6-0-6-RELEASE:1.1.1.1 netbsd-6-1-5-RELEASE:1.1.1.1 netbsd-7:1.3.0.2 netbsd-7-base:1.3 gcc-4-8-3:1.1.1.3 yamt-pagecache-base9:1.2 yamt-pagecache-tag8:1.1.1.1.2.1 netbsd-6-1-4-RELEASE:1.1.1.1 netbsd-6-0-5-RELEASE:1.1.1.1 tls-earlyentropy:1.2.0.2 tls-earlyentropy-base:1.3 riastradh-xf86-video-intel-2-7-1-pre-2-21-15:1.2 riastradh-drm2-base3:1.2 imported-to-gcc-old-20140227-0107:1.1.1.2 netbsd-6-1-3-RELEASE:1.1.1.1 netbsd-6-0-4-RELEASE:1.1.1.1 netbsd-6-1-2-RELEASE:1.1.1.1 netbsd-6-0-3-RELEASE:1.1.1.1 netbsd-6-1-1-RELEASE:1.1.1.1 riastradh-drm2-base2:1.1.1.2 riastradh-drm2-base1:1.1.1.2 riastradh-drm2:1.1.1.2.0.2 riastradh-drm2-base:1.1.1.2 netbsd-6-1:1.1.1.1.0.12 netbsd-6-0-2-RELEASE:1.1.1.1 netbsd-6-1-RELEASE:1.1.1.1 netbsd-6-1-RC4:1.1.1.1 netbsd-6-1-RC3:1.1.1.1 agc-symver:1.1.1.2.0.4 agc-symver-base:1.1.1.2 netbsd-6-1-RC2:1.1.1.1 netbsd-6-1-RC1:1.1.1.1 yamt-pagecache-base8:1.1.1.2 netbsd-6-0-1-RELEASE:1.1.1.1 yamt-pagecache-base7:1.1.1.2 matt-nb6-plus-nbase:1.1.1.1 yamt-pagecache-base6:1.1.1.2 netbsd-6-0:1.1.1.1.0.10 netbsd-6-0-RELEASE:1.1.1.1 gcc-4-5-4:1.1.1.2 netbsd-6-0-RC2:1.1.1.1 tls-maxphys:1.1.1.1.0.8 tls-maxphys-base:1.3 matt-nb6-plus:1.1.1.1.0.6 matt-nb6-plus-base:1.1.1.1 netbsd-6-0-RC1:1.1.1.1 yamt-pagecache-base5:1.1.1.1 yamt-pagecache-base4:1.1.1.1 netbsd-6:1.1.1.1.0.4 netbsd-6-base:1.1.1.1 yamt-pagecache-base3:1.1.1.1 yamt-pagecache-base2:1.1.1.1 yamt-pagecache:1.1.1.1.0.2 yamt-pagecache-base:1.1.1.1 gcc-4-5-3:1.1.1.1 FSF:1.1.1; locks; strict; comment @# @; 1.20 date 2026.09.26.20.42.32; author mrg; state Exp; branches; next 1.19; commitid zkJzcIOvQooiNaXG; 1.19 date 2025.09.14.00.07.14; author mrg; state Exp; branches; next 1.18; commitid x9D5QEnvbeMI4CaG; 1.18 date 2025.07.21.03.01.09; author mrg; state Exp; branches; next 1.17; commitid 0iwx35CAgfJ1Oy3G; 1.17 date 2024.06.30.08.38.39; author mrg; state Exp; branches; next 1.16; commitid kExYYE9GeDZb5ZfF; 1.16 date 2023.07.30.05.51.10; author mrg; state Exp; branches 1.16.2.1; next 1.15; commitid Iugici1GtQ2mWMyE; 1.15 date 2023.07.11.00.40.40; author mrg; state Exp; branches; next 1.14; commitid UboG1aHS8nDGQjwE; 1.14 date 2022.07.22.20.22.33; author mrg; state Exp; branches 1.14.2.1; next 1.13; commitid 26I33JZwnjoCLVMD; 1.13 date 2021.04.11.00.02.10; author mrg; state Exp; branches; next 1.12; commitid rXajJcXg3xWG0OOC; 1.12 date 2020.09.05.09.12.22; author mrg; state Exp; branches; next 1.11; commitid dS3LXwk3lAvP4QmC; 1.11 date 2020.03.11.08.29.45; author mrg; state Exp; branches; next 1.10; commitid jRMJlCbDUVAWyXZB; 1.10 date 2019.10.01.10.38.16; author mrg; state Exp; branches; next 1.9; commitid r1DeKUVOMBnJt9FB; 1.9 date 2019.01.19.12.10.03; author mrg; state Exp; branches; next 1.8; commitid k8UsQyKpGt5Abo8B; 1.8 date 2018.11.04.00.38.13; author mrg; state Exp; branches; next 1.7; commitid sRYjqyoImfCCNyYA; 1.7 date 2018.02.02.03.41.03; author mrg; state Exp; branches 1.7.2.1 1.7.4.1; next 1.6; commitid YbHkrPGCnw2dEepA; 1.6 date 2017.11.12.00.36.44; author mrg; state Exp; branches; next 1.5; commitid qvf6fubay3FAgGeA; 1.5 date 2016.01.24.09.43.31; author mrg; state Exp; branches 1.5.8.1; next 1.4; commitid dxhNntGC3MSSqaSy; 1.4 date 2015.06.24.14.51.17; author mrg; state Exp; branches; next 1.3; commitid 1WAL6q85IgrA1Hqy; 1.3 date 2014.05.27.09.18.54; author skrll; state Exp; branches 1.3.2.1; next 1.2; commitid Z8i3oVrmy8KgN9Cx; 1.2 date 2014.03.01.08.58.29; author mrg; state dead; branches 1.2.2.1; next 1.1; commitid PSOLhRBVEIqVuYqx; 1.1 date 2011.06.21.01.23.11; author mrg; state Exp; branches 1.1.1.1; next ; 1.16.2.1 date 2024.07.01.01.00.44; author perseant; state Exp; branches; next 1.16.2.2; commitid NkoYLLCQWWw9v4gF; 1.16.2.2 date 2025.08.02.05.25.24; author perseant; state Exp; branches; next 1.16.2.3; commitid 23j6GFaDws3O875G; 1.16.2.3 date 2026.11.04.22.46.46; author perseant; state Exp; branches; next ; commitid 3QTNojfCEH9lUb2H; 1.14.2.1 date 2023.07.13.09.18.16; author martin; state Exp; branches; next ; commitid nTDZbluVjX9bCCwE; 1.7.2.1 date 2018.11.26.01.50.38; author pgoyette; state Exp; branches; next 1.7.2.2; commitid Zj4q5SspGdKXto1B; 1.7.2.2 date 2019.01.26.21.58.19; author pgoyette; state Exp; branches; next ; commitid JKpcmvSjdT25dl9B; 1.7.4.1 date 2019.06.10.21.53.16; author christos; state Exp; branches; next 1.7.4.2; commitid jtc8rnCzWiEEHGqB; 1.7.4.2 date 2020.04.13.07.57.03; author martin; state Exp; branches; next ; commitid X01YhRUPVUDaec4C; 1.5.8.1 date 2017.11.23.11.01.43; author martin; state Exp; branches; next ; commitid lA6hq5q2Y1dXl9gA; 1.3.2.1 date 2015.10.31.21.35.14; author snj; state Exp; branches; next ; commitid ynIajmFMECdR6jHy; 1.2.2.1 date 2014.08.10.07.10.40; author tls; state Exp; branches; next ; commitid 3hJZAsnr6L0lHMLx; 1.1.1.1 date 2011.06.21.01.23.11; author mrg; state Exp; branches 1.1.1.1.2.1 1.1.1.1.8.1; next 1.1.1.2; 1.1.1.2 date 2012.09.18.06.15.47; author skrll; state Exp; branches; next 1.1.1.3; 1.1.1.3 date 2014.05.27.08.39.34; author skrll; state Exp; branches; next 1.1.1.4; commitid Esid9j2Tay8qt9Cx; 1.1.1.4 date 2015.01.10.00.49.42; author mrg; state Exp; branches; next 1.1.1.5; commitid E07JC7FpnM8mAp5y; 1.1.1.5 date 2015.06.24.14.02.53; author mrg; state Exp; branches; next 1.1.1.6; commitid 64Yqx91eMSn0JGqy; 1.1.1.6 date 2016.01.24.06.05.54; author mrg; state Exp; branches; next 1.1.1.7; commitid uWWfbLp08zOK79Sy; 1.1.1.7 date 2017.11.11.23.50.05; author mrg; state Exp; branches; next 1.1.1.8; commitid KefS4gJN8ajyYFeA; 1.1.1.8 date 2018.02.02.01.59.58; author mrg; state Exp; branches; next 1.1.1.9; commitid XNKaycqpfhzd5epA; 1.1.1.9 date 2018.11.04.00.13.04; author mrg; state Exp; branches; next 1.1.1.10; commitid bulspy67pMB6EyYA; 1.1.1.10 date 2019.01.19.10.14.40; author mrg; state Exp; branches; next 1.1.1.11; commitid VQ8OwWIg5RS9kn8B; 1.1.1.11 date 2019.10.01.09.36.38; author mrg; state Exp; branches; next 1.1.1.12; commitid smvgr2IPAQDr89FB; 1.1.1.12 date 2020.03.11.08.16.37; author mrg; state Exp; branches; next 1.1.1.13; commitid AhKhCnGPUZgytXZB; 1.1.1.13 date 2020.08.11.05.11.08; author mrg; state Exp; branches; next 1.1.1.14; commitid 5dBRDT7i6e65xBjC; 1.1.1.14 date 2020.08.11.05.30.44; author mrg; state Exp; branches; next 1.1.1.15; commitid 7AI4OfpLi4eqEBjC; 1.1.1.15 date 2020.09.05.07.52.58; author mrg; state Exp; branches; next 1.1.1.16; commitid ZRYA7IOuwfMjAPmC; 1.1.1.16 date 2021.04.10.22.09.22; author mrg; state Exp; branches; next 1.1.1.17; commitid eC4g0MRpqTvEkNOC; 1.1.1.17 date 2022.07.22.19.53.18; author mrg; state Exp; branches; next 1.1.1.18; commitid fUYPgdKzIHqhwVMD; 1.1.1.18 date 2023.07.11.00.32.10; author mrg; state Exp; branches; next 1.1.1.19; commitid 3yo4S98RsOFBNjwE; 1.1.1.19 date 2023.07.30.05.20.41; author mrg; state Exp; branches; next 1.1.1.20; commitid tk6nV4mbc9nVEMyE; 1.1.1.20 date 2024.06.30.07.36.33; author mrg; state Exp; branches; next 1.1.1.21; commitid m7BwZsPdfJvuHYfF; 1.1.1.21 date 2025.07.21.02.43.01; author mrg; state Exp; branches; next 1.1.1.22; commitid 9k1gPU4fqf8VHy3G; 1.1.1.22 date 2025.09.13.23.45.04; author mrg; state Exp; branches; next 1.1.1.23; commitid KwhwN4krNWa6XBaG; 1.1.1.23 date 2026.09.26.20.27.25; author mrg; state Exp; branches; next ; commitid Us2gtpl1zAY1IaXG; 1.1.1.1.2.1 date 2012.10.30.18.56.47; author yamt; state Exp; branches; next 1.1.1.1.2.2; 1.1.1.1.2.2 date 2014.05.22.16.34.59; author yamt; state dead; branches; next ; commitid ae3mEUOn0ZasoyBx; 1.1.1.1.8.1 date 2012.11.20.02.58.15; author tls; state Exp; branches; next 1.1.1.1.8.2; 1.1.1.1.8.2 date 2014.08.19.23.53.11; author tls; state Exp; branches; next ; commitid jTnpym9Qu0o4R1Nx; desc @@ 1.20 log @merge GCC 14.4. @ text @
Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.
We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
If you obtained the sources by cloning the repository, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS
file system, the shell’s built-in pwd command will return
temporary pathnames. Using these can lead to various sorts of build
problems. To avoid this issue, set the PWDCMD environment
variable to an automounter-aware pwd command, e.g.,
pawd or ‘amq -w’, during the configuration and build
phases.
First, we highly recommend that GCC be built into a separate directory from the sources which does not reside within the source tree. This is how we generally build GCC; building where objdir is a subdirectory of srcdir should work as well; building where objdir == srcdir is unsupported.
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don’t know how to make distclean” it probably means that the directory is already suitably clean. However, with the recommended method of building in a separate objdir, you should simply use a different objdir for each target.
Second, when configuring a native system, either cc or
gcc must be in your path or you must set CC in
your environment before running configure. Otherwise the configuration
scripts may fail.
To configure GCC:
% mkdir objdir % cd objdir % srcdir/configure [options] [target]
If you will be distributing binary versions of GCC, with modifications to the source code, you should use the options described in this section to make clear that your version contains modifications.
--with-pkgversion=versionSpecify a string that identifies your package. You may wish
to include a build number or build date. This version string will be
included in the output of gcc --version. This suffix does
not replace the default version string, only the ‘GCC’ part.
The default value is ‘GCC’.
--with-bugurl=urlSpecify the URL that users should visit if they wish to report a bug. You are of course welcome to forward bugs reported to you to the FSF, if you determine that they are not bugs in your modifications.
The default value refers to the FSF’s GCC bug tracker.
--with-documentation-root-url=urlSpecify the URL root that contains GCC option documentation. The url
should end with a / character.
The default value is https://gcc.gnu.org/onlinedocs/
on the GCC main development trunk. On release branches, the default
is https://gcc.gnu.org/onlinedocs/gcc-major.minor.0/.
--with-changes-root-url=urlSpecify the URL root that contains information about changes in GCC
releases like gcc-version/changes.html.
The url should end with a / character.
The default value is https://gcc.gnu.org/.
Specify the host, build and target machine configurations. You do this when you run the configure script.
The build machine is the system which you are using, the host machine is the system where you want to run the resulting compiler (normally the build machine), and the target machine is the system for which you want the compiler to generate code.
If you are building a compiler to produce code for the machine it runs on (a native compiler), you normally do not need to specify any operands to configure; it will try to guess the type of machine you are on and use that as the build, host and target machines. So you don’t need to specify a configuration when building a native compiler unless configure cannot figure out what your configuration is or guesses wrong.
In those cases, specify the build machine’s configuration name with the --host option; the host and target will default to be the same as the host machine.
Here is an example:
./configure --host=x86_64-pc-linux-gnu
A configuration name may be canonical or it may be more or less abbreviated (config.sub script produces canonical versions).
A canonical configuration name has three parts, separated by dashes. It looks like this: ‘cpu-company-system’.
Here are the possible CPU types:
aarch64, aarch64_be, alpha, alpha64, amdgcn, arc, arceb, arm, armeb, avr, bfin, bpf, cris, csky, epiphany, fido, fr30, frv, ft32, h8300, hppa, hppa2.0, hppa64, i486, i686, ia64, iq2000, lm32, loongarch64, m32c, m32r, m32rle, m68k, mcore, microblaze, microblazeel, mips, mips64, mips64el, mips64octeon, mips64orion, mips64vr, mipsel, mipsisa32, mipsisa32r2, mipsisa64, mipsisa64r2, mipsisa64r2el, mipsisa64sb1, mipsisa64sr71k, mipstx39, mmix, mn10300, moxie, msp430, nds32be, nds32le, nios2, nvptx, or1k, pdp11, powerpc, powerpc64, powerpc64le, powerpcle, pru, riscv32, riscv32be, riscv64, riscv64be, rl78, rx, s390, s390x, sh, shle, sparc, sparc64, tic6x, v850, v850e, v850e1, vax, visium, x86_64, xstormy16, xtensa
Here is a list of system types:
aixversion, amdhsa, aout, cygwin, darwinversion, eabi, eabialtivec, eabisim, eabisimaltivec, elf, elf32, elfbare, elfoabi, freebsdversion, gnu, hpux, hpuxversion, kfreebsd-gnu, kopensolaris-gnu, linux-androideabi, linux-gnu, linux-gnu_altivec, linux-musl, linux-uclibc, lynxos, mingw32, mingw32crt, mmixware, msdosdjgpp, netbsd, netbsdelfversion, nto-qnx, openbsd, rtems, solarisversion, symbianelf, tpf, uclinux, uclinux_eabi, vms, vxworks, vxworksae, vxworksmils
Use options to override several configure time options for GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not work and should not normally be used.
Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirnameSpecify the toplevel installation directory. This is the recommended way to install the tools into a directory other than the default. The toplevel installation directory defaults to /usr/local.
We highly recommend against dirname being the same or a
subdirectory of objdir or vice versa. If specifying a directory
beneath a user’s home directory tree, some shells will not expand
dirname correctly if it contains the ‘~’ metacharacter; use
$HOME instead.
The following standard autoconf options are supported. Normally you
should not need to use these options.
--exec-prefix=dirnameSpecify the toplevel installation directory for architecture-dependent files. The default is prefix.
--bindir=dirnameSpecify the installation directory for the executables called by users
(such as gcc and g++). The default is
exec-prefix/bin.
--libdir=dirnameSpecify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirnameSpecify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirnameSpecify the installation directory for the shared libgcc library. The default is libdir.
--datarootdir=dirnameSpecify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirnameSpecify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirnameSpecify the installation directory for some architecture-independent data files referenced by GCC. The default is datarootdir.
--docdir=dirnameSpecify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirnameSpecify the installation directory for HTML documentation files. The default is docdir.
--pdfdir=dirnameSpecify the installation directory for PDF documentation files. The default is docdir.
--mandir=dirnameSpecify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts from the full GCC manuals, which are provided in Texinfo format. The manpages are derived by an automatic conversion process from parts of the full manual.)
--with-gxx-include-dir=dirnameSpecify the installation directory for G++ header files. The default depends on other configuration options, and differs between cross and native configurations.
--with-specs=specsSpecify additional command line driver SPECS. This can be useful if you need to turn on a non-standard feature by default without modifying the compiler’s source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. See “Spec Files” in the main manual
--program-prefix=prefixGCC supports some transformations of the names of its programs when installing them. This option prepends prefix to the names of programs to install in bindir (see above). For example, specifying --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names of programs to install in bindir (see above). pattern has to consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, you could use the pattern --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' to achieve this effect.
All three options can be combined and used together, resulting in more complex conversion patterns. As a basic rule, prefix (and suffix) are prepended (appended) before further transformations can happen with a special transformation script pattern.
As currently implemented, this option only takes effect for native builds; cross compiler binaries’ names are not transformed even when a transformation is explicitly asked for by one of these options.
For native builds, some of the installed programs are also installed with the target alias in front of their name, as in ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen before the target alias is prepended to the name—so, specifying --program-prefix=foo- and program-suffix=-3.1, the resulting binary would be installed as /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are transformed yet, which will be fixed in some time.
--with-local-prefix=dirnameSpecify the installation directory for local include files. The default is /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put site-specific files.
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for local header files. This may seem counterintuitive, but actually it is logical.
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put any in that directory—are not part of GCC. They are part of other programs—perhaps many others. (GCC installs its own header files in another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC’s “system include” directories. Although these two directories are not fixed, they need to be searched in the proper order for the correct processing of the include_next directive. The local-prefix include directory is searched before the GCC-prefix include directory. Another characteristic of system include directories is that pedantic warnings are turned off for headers in these directories.
Some autoconf macros add -I directory options to the compiler command line, to ensure that directories containing installed packages’ headers are searched. When directory is one of GCC’s system include directories, GCC will ignore the option so that system directories continue to be processed in the correct order. This may result in a search order different from what was specified but the directory will still be searched.
GCC automatically searches for ordinary libraries using
GCC_EXEC_PREFIX. Thus, when the same installation prefix is
used for both GCC and packages, GCC will automatically search for
both headers and libraries. This provides a configuration that is
easy to use. GCC behaves in a manner similar to that when it is
installed as a system compiler in /usr.
Sites that need to install multiple versions of GCC may not want to
use the above simple configuration. It is possible to use the
--program-prefix, --program-suffix and
--program-transform-name options to install multiple versions
into a single directory, but it may be simpler to use different prefixes
and the --with-local-prefix option to specify the location of the
site-specific files for each version. It will then be necessary for
users to specify explicitly the location of local site libraries
(e.g., with LIBRARY_PATH).
The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix!
The directory you use for --with-local-prefix must not
contain any of the system’s standard header files. If it did contain
them, certain programs would be miscompiled (including GNU Emacs, on
certain targets), because this would override and nullify the header
file corrections made by the fixincludes script.
Indications are that people who use this option use it based on mistaken ideas of what it is for. People use it as if it specified where to install part of GCC. Perhaps they make this assumption because installing GCC creates the directory.
--with-gcc-major-version-onlySpecifies that GCC should use only the major number rather than major.minor.patchlevel in filesystem paths.
--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful if you are creating a compiler that should be isolated from the system as much as possible. It is most commonly used with the --with-sysroot option and will cause GCC to search dirname inside the system root specified by that option.
--enable-shared[=package[,…]]Build shared versions of libraries, if shared libraries are supported on the target platform. Unlike GCC 2.95.x and earlier, shared libraries are enabled by default on all platforms that support shared libraries.
If a list of packages is given as an argument, build shared libraries only for the listed packages. For other packages, only static libraries will be built. Package names currently recognized in the GCC tree are ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libgo’, ‘libobjc’, and ‘libphobos’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host code.
--enable-host-sharedSpecify that the host code should be built into position-independent machine code (with -fPIC), allowing it to be used within shared libraries, but yielding a slightly slower compiler.
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target libraries.
--enable-host-pieSpecify that the host executables should be built into position-independent executables (with -fPIE and -pie), yielding a slightly slower compiler (but faster than --enable-host-shared). Position-independent executables are loaded at random addresses each time they are executed, therefore provide additional protection against Return Oriented Programming (ROP) attacks.
--enable-host-pie may be used with --enable-host-shared, in which case -fPIC is used when compiling, and -pie when linking.
--enable-host-bind-nowSpecify that the host executables should be linked with the option -Wl,-z,now, which means that the dynamic linker will resolve all symbols when the executables are started, and that in turn allows RELRO to mark the GOT read-only, resulting in better security.
--with-gnu-asSpecify that the compiler should assume that the assembler it finds is the GNU assembler. However, this does not modify the rules to find an assembler and will result in confusion if the assembler found is not actually the GNU assembler. (Confusion may also result if the compiler finds the GNU assembler but has not been configured with --with-gnu-as.) If you have more than one assembler installed on your system, you may want to use this option in connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference whether you use the GNU assembler. On any other system, --with-gnu-as has no effect.
--with-as=pathnameSpecify that the compiler should use the assembler pointed to by pathname, rather than the one found by the standard rules to find an assembler, which are:
PATH for a tool whose name is prefixed by the
target system triple.
PATH for a tool whose name is not prefixed by the
target system triple, if the host and target system triple are
the same (in other words, we use a host tool if it can be used for
the target as well).
You may want to use --with-as if no assembler is installed in the directories listed above, or if you have multiple assemblers installed and want to choose one that is not found by the above rules.
--with-gnu-ldSame as --with-gnu-as but for the linker.
--with-ld=pathnameSame as --with-as but for the linker.
--with-dsymutil=pathnameSame as --with-as but for the debug linker (only used on Darwin platforms so far).
--with-tls=dialectSpecify the default TLS dialect, for systems where there is a choice.
For ARM targets, possible values for dialect are gnu or
gnu2, which select between the original GNU dialect and the GNU TLS
descriptor-based dialect.
For RISC-V targets, possible values for dialect are trad or
desc, which select between the traditional GNU dialect and the GNU TLS
descriptor-based dialect.
--enable-multiarchSpecify whether to enable or disable multiarch support. The default is to check for glibc start files in a multiarch location, and enable it if the files are found. The auto detection is enabled for native builds, and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. More documentation about multiarch can be found at https://wiki.debian.org/Multiarch.
--enable-sjlj-exceptionsForce use of the setjmp/longjmp-based scheme for exceptions.
‘configure’ ordinarily picks the correct value based on the platform.
Only use this option if you are sure you need a different setting.
--enable-vtable-verifySpecify whether to enable or disable the vtable verification feature. Enabling this feature causes libstdc++ to be built with its virtual calls in verifiable mode. This means that, when linked with libvtv, every virtual call in libstdc++ will verify the vtable pointer through which the call will be made before actually making the call. If not linked with libvtv, the verifier will call stub functions (in libstdc++ itself) and do nothing. If vtable verification is disabled, then libstdc++ is not built with its virtual calls in verifiable mode at all. However the libvtv library will still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-gcovSpecify that the run-time library used for coverage analysis and associated host tools should not be built.
--disable-multilibSpecify that multiple target libraries to support different target variants, calling conventions, etc. should not be built. The default is to build a predefined set of them.
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
arm-*-*fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*softfloat, m68881, m68000, m68020.
mips*-*-*single-float, biendian, softfloat.
msp430-*-*no-exceptions
powerpc*-*-*, rs6000*-*-*aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, sysv, aix.
--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. list is a comma separated list of values, possibly consisting of a single value. Currently only implemented for aarch64*-*-*, amdgcn*-*-*, arm*-*-*, loongarch*-*-*, riscv*-*-*, sh*-*-* and x86-64-*-linux*. The accepted values and meaning for each target is given below.
aarch64*-*-*list is a comma separated list of ilp32, and lp64
to enable ILP32 and LP64 run-time libraries, respectively. If
list is empty, then there will be no multilibs and only the
default run-time library will be built. If list is
default or –with-multilib-list= is not specified, then the
default set of libraries is selected based on the value of
--target.
amdgcn*-*-*list is a comma separated list of ISA names (allowed values: fiji,
gfx900, gfx906, gfx908, gfx90a, gfx90c,
gfx1030, gfx1036, gfx1100, gfx1103).
It ought not include the name of the default
ISA, specified via --with-arch. If list is empty, then there
will be no multilibs and only the default run-time library will be built. If
list is default or --with-multilib-list= is not
specified, then the default set of libraries is selected.
arm*-*-*list is a comma separated list of aprofile and
rmprofile to build multilibs for A or R and M architecture
profiles respectively. Note that, due to some limitation of the current
multilib framework, using the combined aprofile,rmprofile
multilibs selects in some cases a less optimal multilib than when using
the multilib profile for the architecture targetted. The special value
default is also accepted and is equivalent to omitting the
option, i.e., only the default run-time library will be enabled.
list may instead contain @@name, to use the multilib
configuration Makefile fragment name in gcc/config/arm in
the source tree (it is part of the corresponding sources, after all).
It is recommended, but not required, that files used for this purpose to
be named starting with t-ml-, to make their intended purpose
self-evident, in line with GCC conventions. Such files enable custom,
user-chosen multilib lists to be configured. Whether multiple such
files can be used together depends on the contents of the supplied
files. See gcc/config/arm/t-multilib and its supplementary
gcc/config/arm/t-*profile files for an example of what such
Makefile fragments might look like for this version of GCC. The macros
expected to be defined in these fragments are not stable across GCC
releases, so make sure they define the MULTILIB-related macros
expected by the version of GCC you are building.
See “Target Makefile Fragments” in the internals manual.
The table below gives the combination of ISAs, architectures, FPUs and
floating-point ABIs for which multilibs are built for each predefined
profile. The union of these options is considered when specifying both
aprofile and rmprofile.
| Option | aprofile | rmprofile |
| ISAs | -marm and -mthumb | -mthumb |
| Architectures | default architecture-march=armv7-a-march=armv7ve-march=armv8-a | default architecture-march=armv6s-m-march=armv7-m-march=armv7e-m-march=armv8-m.base-march=armv8-m.main-march=armv7 |
| FPUs | none-mfpu=vfpv3-d16-mfpu=neon-mfpu=vfpv4-d16-mfpu=neon-vfpv4-mfpu=neon-fp-armv8 | none-mfpu=vfpv3-d16-mfpu=fpv4-sp-d16-mfpu=fpv5-sp-d16-mfpu=fpv5-d16 |
| floating-point ABIs | -mfloat-abi=soft-mfloat-abi=softfp-mfloat-abi=hard | -mfloat-abi=soft-mfloat-abi=softfp-mfloat-abi=hard |
loongarch*-*-*list is a comma-separated list, with each of the element starting with
the following ABI identifiers: lp64d[/base] lp64f[/base]
lp64d[/base] (the /base suffix may be omitted)
to enable their respective run-time libraries.
A suffix [/arch][/option/…] may follow immediately
after the ABI identifier to customize the compiler options for building the
given set of libraries. arch denotes the architecture name recognized
by the -march=arch compiler option, which acts as a basic target
ISA configuration that can be adjusted using the subsequent option
suffixes, where each option is a compiler option without a leading dash
(’-’).
If no such suffix is present for a given multilib variant, the configured value of --with-multilib-default is appended as a default suffix. If --with-multilib-default is not given, the default build option -march=abi-default is applied when building the variants without a suffix.
As a special case, fixed may be used in the position of arch,
which means using the architecture configured with
--with-arch=arch, or its default value (e.g. loongarch64
for loongarch64-* targets).
If list is empty or default, or if --with-multilib-list
is not specified, then only the default variant of the libraries are built,
where the default ABI is implied by the configured target triplet.
riscv*-*-*list is a single ABI name. The target architecture must be either
rv32gc or rv64gc. This will build a single multilib for the
specified architecture and ABI pair. If --with-multilib-list is not
given, then a default set of multilibs is selected based on the value of
--target. This is usually a large set of multilibs.
sh*-*-*list is a comma separated list of CPU names. These must be of the
form sh* or m* (in which case they match the compiler option
for that processor). The list should not contain any endian options -
these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra processors. The multilib for the secondary endian remains enabled.
As a special case, if an entry in the list starts with a !
(exclamation point), then it is added to the list of excluded multilibs.
Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’
(once the leading ! has been stripped).
If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is usually the complete set of libraries, but some targets imply a more specialized subset.
Example 1: to configure a compiler for SH4A only, but supporting both endians, with little endian being the default:
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=
Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with only little endian SH4AL:
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4al
x86-64-*-linux*list is a comma separated list of m32, m64 and
mx32 to enable 32-bit, 64-bit and x32 run-time libraries,
respectively. If list is empty, then there will be no multilibs
and only the default run-time library will be enabled.
If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled.
--with-multilib-defaultOn LoongArch targets, set the default build options for enabled multilibs
without build options appended to their corresponding
--with-multilib-list items. The format of this value is
[/arch][/option/…], where arch is an
architecture name recognized by -march=arch compiler option,
and subsequent option suffixes are compiler options minus a leading
dash (’-’).
Multiple options may appear consecutively while arch may only appear in the beginning or be omitted (which means -march=abi-default is applied when building the libraries).
--with-strict-align-libOn LoongArch targets, build all enabled multilibs with -mstrict-align (Not enabled by default).
--with-multilib-generator=configSpecify what multilibs to build. config is a semicolon separated list of values, possibly consisting of a single value. Currently only implemented for riscv*-*-elf*. The accepted values and meanings are given below.
Every config is constructed with four components: architecture string, ABI, reuse rule with architecture string and reuse rule with sub-extension.
Example 1: Add multi-lib suppport for rv32i with ilp32.
rv32i-ilp32--
Example 2: Add multi-lib suppport for rv32i with ilp32 and rv32imafd with ilp32.
rv32i-ilp32--;rv32imafd-ilp32--
Example 3: Add multi-lib suppport for rv32i with ilp32; rv32im with ilp32 and rv32ic with ilp32 will reuse this multi-lib set.
rv32i-ilp32-rv32im-c
Example 4: Add multi-lib suppport for rv64ima with lp64; rv64imaf with lp64, rv64imac with lp64 and rv64imafc with lp64 will reuse this multi-lib set.
rv64ima-lp64--f,c,fc
--with-multilib-generator have an optional configuration argument --cmodel=val for code model, this option will expand with other config options, val is a comma separated list of possible code model, currently we support medlow and medany.
Example 5: Add multi-lib suppport for rv64ima with lp64; rv64ima with lp64 and medlow code model
rv64ima-lp64--;--cmodel=medlow
Example 6: Add multi-lib suppport for rv64ima with lp64; rv64ima with lp64 and medlow code model; rv64ima with lp64 and medany code model
rv64ima-lp64--;--cmodel=medlow,medany
--with-endian=endiansSpecify what endians to use. Currently only implemented for sh*-*-*.
endians may be one of the following:
bigUse big endian exclusively.
littleUse little endian exclusively.
big,littleUse big endian by default. Provide a multilib for little endian.
little,bigUse little endian by default. Provide a multilib for big endian.
--enable-threadsSpecify that the target supports threads. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++. On some systems, this is the default.
In general, the best (and, in many cases, the only known) threading model available will be configured for use. Beware that on some systems, GCC has not been taught what threading models are generally available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threadsSpecify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=libSpecify that lib is the thread support library. This affects the Objective-C compiler and runtime library, and exception handling for other languages like C++. The possibilities for lib are:
aixAIX thread support.
dceDCE thread support.
lynxLynxOS thread support.
mipssdeMIPS SDE thread support.
noThis is an alias for ‘single’.
posixGeneric POSIX/Unix98 thread support.
rtemsRTEMS thread support.
singleDisable thread support, should work for all platforms.
tpfTPF thread support.
vxworksVxWorks thread support.
win32Microsoft Win32 API thread support.
--enable-tlsSpecify that the target supports TLS (Thread Local Storage). Usually configure can correctly determine if TLS is supported. In cases where it guesses incorrectly, TLS can be explicitly enabled or disabled with --enable-tls or --disable-tls. This can happen if the assembler supports TLS but the C library does not, or if the assumptions made by the configure test are incorrect.
--disable-tlsSpecify that the target does not support TLS. This is an alias for --enable-tls=no.
--disable-tm-clone-registryDisable TM clone registry in libgcc. It is enabled in libgcc by default. This option helps to reduce code size for embedded targets which do not use transactional memory.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpuSpecify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. This option is only supported on some targets, including ARC, ARM, i386, M68k, PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for 32-bit and 64-bit modes; these options are only supported for aarch64, i386, x86-64, PowerPC, and SPARC.
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=type--with-simd=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values of the arguments depend on the target.
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. This option is only supported on ARM targets.
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, and will thus generally also control the setting of this option for libraries. This option is only supported on Epiphany targets.
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. This option is only supported on i386 and x86-64 targets.
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using the o32 ABI. The possibilities for mode are:
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64Use the o32 FP64 ABI extension, as with the -mfp64 command-line option.
In the absence of this configuration option the default is to use the o32 FP32 ABI extension.
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using the o32 ABI.
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using the o32 ABI. This is normally used in conjunction with --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encodingOn MIPS targets, set the default encoding convention to use for the special not-a-number (NaN) IEEE 754 floating-point data. The possibilities for encoding are:
legacyUse the legacy encoding, as with the -mnan=legacy command-line option.
2008Use the 754-2008 encoding, as with the -mnan=2008 command-line option.
To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. In the absence of this configuration option the default convention is the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=typeSpecify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. The possibilities for type are:
trapsDivision by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaksDivision by zero checks use the break instruction.
--with-compact-branches=policySpecify how the compiler should generate branch instructions. This option is only supported on the MIPS target. The possibilities for type are:
optimalCause a delay slot branch to be used if one is available in the current ISA and the delay slot is successfully filled. If the delay slot is not filled, a compact branch will be chosen if one is available.
neverEnsures that compact branch instructions will never be generated.
alwaysEnsures that a compact branch instruction will be generated if available. If a compact branch instruction is not available, a delay slot form of the branch will be used instead. This option is supported from MIPS Release 6 onwards. For pre-R6/microMIPS/MIPS16, this option is just same as never/optimal.
--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for Linux-based targets, as the kernel will emulate them if the ISA does not provide them.
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-lxc1-sxc1On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default.
--without-lxc1-sxc1On MIPS targets, make -mno-lxc1-sxc1 the default when no
-mlxc1-sxc1 option is passed. The indexed load/store
instructions are not directly a problem but can lead to unexpected
behaviour when deployed in an application intended for a 32-bit address
space but run on a 64-bit processor. The issue is seen because all
known MIPS 64-bit Linux kernels execute o32 and n32 applications
with 64-bit addressing enabled which affects the overflow behaviour
of the indexed addressing mode. GCC will assume that ordinary
32-bit arithmetic overflow behaviour is the same whether performed
as an addu instruction or as part of the address calculation
in lwxc1 type instructions. This assumption holds true in a
pure 32-bit environment and can hold true in a 64-bit environment if
the address space is accurately set to be 32-bit for o32 and n32.
--with-madd4On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default.
--without-madd4On MIPS targets, make -mno-madd4 the default when no
-mmadd4 option is passed. The madd4 instruction
family can be problematic when targeting a combination of cores that
implement these instructions differently. There are two known cores
that implement these as fused operations instead of unfused (where
unfused is normally expected). Disabling these instructions is the
only way to ensure compatible code is generated; this will incur
a performance penalty.
--with-msaOn MIPS targets, make -mmsa the default when no -mno-msa option is passed.
--without-msaOn MIPS targets, make -mno-msa the default when no -mmsa option is passed. This is the default.
--with-mips-pltOn MIPS targets, make use of copy relocations and PLTs. These features are extensions to the traditional SVR4-based MIPS ABIs and require support from GNU binutils and the runtime C library.
--with-stack-clash-protection-guard-size=sizeOn certain targets this option sets the default stack clash protection guard size as a power of two in bytes. On AArch64 size is required to be either 12 (4KB) or 16 (64KB).
--with-isa-spec=ISA-spec-stringOn RISC-V targets specify the default version of the RISC-V Unprivileged (formerly User-Level) ISA specification to produce code conforming to. The possibilities for ISA-spec-string are:
2.2Produce code conforming to version 2.2.
20190608Produce code conforming to version 20190608.
20191213Produce code conforming to version 20191213.
In the absence of this configuration option the default version is 20191213.
--enable-__cxa_atexitDefine if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. This is essential for fully standards-compliant handling of destructors, but requires __cxa_atexit in libc. This option is currently only available on systems with GNU libc. When enabled, this will cause -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-functionDefine if you want to enable the ifunc attribute. This option is
currently only available on systems with GNU libc on certain targets.
--enable-target-optspaceSpecify that target libraries should be optimized for code space instead of code speed. This is the default for the m32r platform.
--with-cpp-install-dir=dirnameSpecify that the user visible cpp program should be installed
in prefix/dirname/cpp, in addition to bindir.
--enable-comdatEnable COMDAT group support. This is primarily used to override the automatically detected value.
--enable-initfini-arrayForce the use of sections .init_array and .fini_array
(instead of .init and .fini) for constructors and
destructors. Option --disable-initfini-array has the
opposite effect. If neither option is specified, the configure script
will try to guess whether the .init_array and
.fini_array sections are supported and, if they are, use them.
--enable-link-mutexWhen building GCC, use a mutex to avoid linking the compilers for multiple languages at the same time, to avoid thrashing on build systems with limited free memory. The default is not to use such a mutex.
--enable-link-serializationWhen building GCC, use make dependencies to serialize linking the compilers for multiple languages, to avoid thrashing on build systems with limited free memory. The default is not to add such dependencies and thus with parallel make potentially link different compilers concurrently. If the argument is a positive integer, allow that number of concurrent link processes for the large binaries.
--enable-maintainer-modeThe build rules that regenerate the Autoconf and Automake output files as
well as the GCC master message catalog gcc.pot are normally
disabled. This is because it can only be rebuilt if the complete source
tree is present. If you have changed the sources and want to rebuild the
catalog, configuring with --enable-maintainer-mode will enable
this. Note that you need a recent version of the gettext tools
to do so.
--disable-bootstrapFor a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, testing that GCC can compile itself correctly. If you want to disable this process, you can configure with --disable-bootstrap.
--enable-bootstrapIn special cases, you may want to perform a 3-stage build even if the target and host triplets are different. This is possible when the host can run code compiled for the target (e.g. host is i686-linux, target is i486-linux). Starting from GCC 4.2, to do this you have to configure explicitly with --enable-bootstrap.
--enable-generated-files-in-srcdirNeither the .c and .h files that are generated from Bison and flex nor the info manuals and man pages that are built from the .texi files are present in the repository development tree. When building GCC from that development tree, or from one of our snapshots, those generated files are placed in your build directory, which allows for the source to be in a readonly directory.
If you configure with --enable-generated-files-in-srcdir then those generated files will go into the source directory. This is mainly intended for generating release or prerelease tarballs of the GCC sources, since it is not a requirement that the users of source releases to have flex, Bison, or makeinfo.
--enable-version-specific-runtime-libsSpecify that runtime libraries should be installed in the compiler specific subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into libdir unless you overruled it by using --with-gxx-include-dir=dirname. Using this option is particularly useful if you intend to use several versions of GCC in parallel. The default is ‘yes’ for ‘libada’, and ‘no’ for the remaining libraries.
--with-darwin-extra-rpathThis is provided to allow distributions to add a single additional runpath on Darwin / macOS systems. This allows for cases where the installed GCC library directories are then symlinked to a common directory outside of the GCC installation.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned Shared Object
files as members of unversioned Archive Library files named
‘lib.a’) causes numerous headaches for package managers. However,
Import Files as members of Archive Library files allow for
filename-based versioning of shared libraries as seen on Linux/SVR4,
where this is called the "SONAME". But as they prevent static linking,
Import Files may be used with Runtime Linking only, where the
linker does search for ‘libNAME.so’ before ‘libNAME.a’ library
filenames with the ‘-lNAME’ linker flag.
For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX) Shared Archive Library file is created:
Shared Object file as archive member named
‘libNAME.so.V’ (except for ‘libgcc_s’, where the Shared
Object file is named ‘shr.o’ for backwards compatibility), which
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)
Static Archive
Library file is needed
--with-aix-soname=both--with-aix-soname=svr4A (second) Shared Archive Library file is created:
Shared Object file as archive member named
‘shr.o’, which
-G linker flag
F_LOADONLY flag set
dlopen("libNAME.so.V(shr.o)",
RTLD_MEMBER)
Import File as archive member named ‘shr.imp’,
which
Loader Section of subsequent binaries
‘weak’ Keyword
A symbolic link using the ‘libNAME.so’ filename scheme is created:
Shared Archive Library file
ld Command to find ‘lib.so.V(shr.imp)’ via
the ‘-lNAME’ argument (requires Runtime Linking to be enabled)
dlopen("libNAME.so(shr.o)",
RTLD_MEMBER)
As long as static library creation is enabled, upon:
--with-aix-soname=svr4A Static Archive Library is created:
Static Object files as archive members, which
While the aix-soname=‘svr4’ option does not create Shared Object
files as members of unversioned Archive Library files any more, package
managers still are responsible to
transfer Shared Object files
found as member of a previously installed unversioned Archive Library
file into the newly installed Archive Library file with the same
filename.
WARNING: Creating Shared Object files with Runtime Linking
enabled may bloat the TOC, eventually leading to TOC overflow errors,
requiring the use of either the -Wl,-bbigtoc linker flag (seen to
break with the GDB debugger) or some of the TOC-related compiler flags,
see “RS/6000 and PowerPC Options” in the main manual.
--with-aix-soname is currently supported by ‘libgcc_s’ only, so this option is still experimental and not for normal use yet.
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,…Specify that only a particular subset of compilers and
their runtime libraries should be built. For a list of valid values for
langN you can issue the following command in the
gcc directory of your GCC source tree:
grep ^language= */config-lang.in
Currently, you can use any of the following:
all, default, ada, c, c++, d,
fortran, go, jit, lto, m2,
objc, obj-c++.
Building the Ada compiler has special requirements, see below.
If you do not pass this flag, or specify the option default, then the
default languages available in the gcc sub-tree will be configured.
Ada, D, Go, Jit, Objective-C++ and Modula-2 are not default languages.
LTO is not a
default language, but is built by default because --enable-lto is
enabled by default. The other languages are default languages. If
all is specified, then all available languages are built. An
exception is jit language, which requires
--enable-host-shared to be included with all.
--enable-stage1-languages=lang1,lang2,…Specify that a particular subset of compilers and their runtime
libraries should be built with the system C compiler during stage 1 of
the bootstrap process, rather than only in later stages with the
bootstrapped C compiler. The list of valid values is the same as for
--enable-languages, and the option all will select all
of the languages enabled by --enable-languages. This option is
primarily useful for GCC development; for instance, when a development
version of the compiler cannot bootstrap due to compiler bugs, or when
one is debugging front ends other than the C front end. When this
option is used, one can then build the target libraries for the
specified languages with the stage-1 compiler by using make
stage1-bubble all-target, or run the testsuite on the stage-1 compiler
for the specified languages using make stage1-start check-gcc.
--disable-libadaSpecify that the run-time libraries and tools used by GNAT should not be built. This can be useful for debugging, or for compatibility with previous Ada build procedures, when it was required to explicitly do a ‘make -C gcc gnatlib_and_tools’.
--disable-libgm2Specify that the run-time libraries and tools used by Modula-2 should not be built. This can be useful for debugging.
--disable-libsanitizerSpecify that the run-time libraries for the various sanitizers should not be built.
--disable-libsspSpecify that the run-time libraries for stack smashing protection should not be built or linked against. On many targets library support is provided by the C library instead.
--disable-libquadmathSpecify that the GCC quad-precision math library should not be built. On some systems, the library is required to be linkable when building the Fortran front end, unless --disable-libquadmath-support is used.
--disable-libquadmath-supportSpecify that the Fortran front end and libgfortran do not add
support for libquadmath on systems supporting it.
--disable-libgompSpecify that the GNU Offloading and Multi Processing Runtime Library should not be built.
--disable-libvtvSpecify that the run-time libraries used by vtable verification should not be built.
--with-dwarf2Specify that the compiler should use DWARF debugging information as the default; the exact DWARF version that is the default is target-specific.
--with-advance-toolchain=atOn 64-bit PowerPC Linux systems, configure the compiler to use the header files, library files, and the dynamic linker from the Advance Toolchain release at instead of the default versions that are provided by the Linux distribution. In general, this option is intended for the developers of GCC, and it is not intended for general use.
--enable-targets=all--enable-targets=target_listSome GCC targets, e.g. powerpc64-linux, build bi-arch compilers. These are compilers that are able to generate either 64-bit or 32-bit code. Typically, the corresponding 32-bit target, e.g. powerpc-linux for powerpc64-linux, only generates 32-bit code. This option enables the 32-bit target to be a bi-arch compiler, which is useful when you want a bi-arch compiler that defaults to 32-bit, and you are building a bi-arch or multi-arch binutils in a combined tree. On mips-linux, this will build a tri-arch compiler (ABI o32/n32/64), defaulted to o32. Currently, this option only affects sparc-linux, powerpc-linux, x86-linux, mips-linux and s390-linux.
--enable-default-pieTurn on -fPIE and -pie by default.
--enable-securepltThis option enables -msecure-plt by default for powerpc-linux. See “RS/6000 and PowerPC Options” in the main manual
--enable-default-sspTurn on -fstack-protector-strong by default.
--enable-cldThis option enables -mcld by default for 32-bit x86 targets. See “i386 and x86-64 Options” in the main manual
--enable-large-address-awareThe --enable-large-address-aware option arranges for MinGW executables to be linked using the --large-address-aware option, that enables the use of more than 2GB of memory. If GCC is configured with this option, its effects can be reversed by passing the -Wl,--disable-large-address-aware option to the so-configured compiler driver.
--enable-win32-registry--enable-win32-registry=key--disable-win32-registryThe --enable-win32-registry option enables Microsoft Windows-hosted GCC to look up installations paths in the registry using the following key:
HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\key
key defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors who use custom installers are encouraged to provide a different key, perhaps one comprised of vendor name and GCC version number, to avoid conflict with existing installations. This feature is enabled by default, and can be disabled by --disable-win32-registry option. This option has no effect on the other hosts.
--nfpSpecify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=noWhen you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don’t specify it, -Werror is turned on for the main development trunk. However it defaults to off for release branches and final releases. The specific files which get -Werror are controlled by the Makefiles.
--enable-checking--disable-checking--enable-checking=listThis option controls performing internal consistency checks in the compiler. It does not change the generated code, but adds error checking of the requested complexity. This slows down the compiler and may only work properly if you are building the compiler with GCC.
When the option is not specified, the active set of checks depends on context. Namely, bootstrap stage 1 defaults to ‘--enable-checking=yes’, builds from release branches or release archives default to ‘--enable-checking=release’, and otherwise ‘--enable-checking=yes,extra’ is used. When the option is specified without a list, the result is the same as ‘--enable-checking=yes’. Likewise, ‘--disable-checking’ is equivalent to ‘--enable-checking=no’.
The categories of checks available in list are ‘yes’ (most common checks ‘assert,misc,gc,gimple,rtlflag,runtime,tree,types’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). ‘release’ checks are always on and to disable them ‘--disable-checking’ or ‘--enable-checking=no[,<other checks>]’ must be explicitly requested. Disabling assertions makes the compiler and runtime slightly faster but increases the risk of undetected internal errors causing wrong code to be generated.
Individual checks can be enabled with these flags: ‘assert’, ‘df’, ‘extra’, ‘fold’, ‘gc’, ‘gcac’, ‘gimple’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘types’ and ‘valgrind’. ‘extra’ extends ‘misc’ checking with extra checks that might affect code generation and should therefore not differ between stage1 and later stages in bootstrap.
The ‘valgrind’ check requires the external valgrind simulator,
available from https://valgrind.org. The ‘rtl’ checks are
expensive and the ‘df’, ‘gcac’ and ‘valgrind’ checks are very
expensive.
--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=listThis option affects only bootstrap build. If no --enable-checking option is specified the stage1 compiler is built with ‘yes’ checking enabled, otherwise the stage1 checking flags are the same as specified by --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. If your system is too slow or too small to bootstrap a released compiler with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ to disable checking for the stage1 compiler.
--enable-coverage--enable-coverage=levelWith this option, the compiler is built to collect self coverage information, every time it is run. This is for internal development purposes, and only works when the compiler is being built with gcc. The level argument controls whether the compiler is built optimized or not, values are ‘opt’ and ‘noopt’. For coverage analysis you want to disable optimization, for performance analysis you want to enable optimization. When coverage is enabled, the default level is without optimization.
--enable-gather-detailed-mem-statsWhen this option is specified more detailed information on memory allocation is gathered. This information is printed when using -fmem-report.
--enable-valgrind-annotationsMark selected memory related operations in the compiler when run under valgrind to suppress false positives.
--enable-nls--disable-nlsThe --enable-nls option enables Native Language Support (NLS), which lets GCC output diagnostics in languages other than American English. Native Language Support is enabled by default if not doing a canadian cross build. The --disable-nls option disables NLS.
Note that this functionality requires either libintl (provided by GNU gettext) or C standard library that contains support for gettext (such as the GNU C Library). See –with-included-gettext for more information on the conditions required to get gettext support.
--with-libintl-prefix=dir--without-libintl-prefixSearches for libintl in dir/include and dir/lib, or disables manual searching for it, letting the linker handle it.
--with-libintl-type=typeSpecifies the type of library to search for when looking for libintl.
type can be one of auto, static or shared.
--with-included-gettextOnly available if gettext is present in the source tree.
Forces the gettext tree to be configured to build and use a new static libintl, overriding the system libintl. Results in GCC being built against the newly built libintl rather than the system libintl.
The build system makes a somewhat complicated choice when picking where to get gettext routines from. The following table is a summary of the possible options:
| GNU gettext present in sources | libintl installed on the system | gettext present in libc | --with-included-gettext | Effects on localization |
|---|---|---|---|---|
| No | No | No | (ignored) | No localization |
| No | No | Yes | (ignored) | Localized, libc gettext |
| No | Yes | No | (ignored) | Localized, libintl |
| No | Yes | Yes | (ignored) | Localized, libintl |
| Yes | No | No | No | Localized, new, static libintl |
| Yes | No | No | Yes | Localized, new, static libintl |
| Yes | No | Yes | No | Localized, libc gettext |
| Yes | No | Yes | Yes | Localized, new, static libintl |
| Yes | Yes | No | No | Localized, libintl |
| Yes | Yes | No | Yes | Localized, new, static libintl |
| Yes | Yes | Yes | No | Localized, libintl |
| Yes | Yes | Yes | Yes | Localized, new, static libintl |
--with-catgetsIf NLS is enabled, and if the host lacks gettext but has the
inferior catgets interface, the GCC build procedure normally
ignores catgets and instead uses GCC’s copy of the GNU
gettext library. The --with-catgets option causes the
build procedure to use the host’s catgets in this situation.
--with-libiconv-prefix=dirSearch for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsoleteEnable configuration for an obsoleted system. If you attempt to configure GCC for a system (build, host, or target) which has been obsoleted, and you do not specify this flag, configure will halt with an error message.
All support for systems which have been obsoleted in one release of GCC is removed entirely in the next major release, unless someone steps forward to maintain the port.
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-floatEnable (or disable) support for the C decimal floating point extension that is in the IEEE 754-2008 standard. This is enabled by default only on AArch64, PowerPC, i386, and x86_64 GNU/Linux systems. Other systems may also support it, but require the user to specifically enable it. You can optionally control which decimal floating point format is used (either ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on AArch64, i386 and x86_64 systems, and the ‘dpd’ (densely packed decimal) format is default on PowerPC systems.
--enable-fixed-point--disable-fixed-pointEnable (or disable) support for C fixed-point arithmetic. This option is enabled by default for some targets (such as MIPS) which have hardware-support for fixed-point operations. On other targets, you may enable this option manually.
--with-long-double-128Specify if long double type should be 128-bit by default on selected
GNU/Linux architectures. If using --without-long-double-128,
long double will be by default 64-bit, the same as double type.
When neither of these configure options are used, the default will be
128-bit long double when built against GNU C Library 2.4 and later,
64-bit long double otherwise.
--with-long-double-format=ibm--with-long-double-format=ieeeSpecify whether long double uses the IBM extended double format
or the IEEE 128-bit floating point format on PowerPC Linux systems.
This configuration switch will only work on little endian PowerPC
Linux systems and on big endian 64-bit systems where the default cpu
is at least power7 (i.e. --with-cpu=power7,
--with-cpu=power8, or --with-cpu=power9 is used).
If you use the --with-long-double-64 configuration option, the --with-long-double-format=ibm and --with-long-double-format=ieee options are ignored.
The default long double format is to use IBM extended double.
Until all of the libraries are converted to use IEEE 128-bit floating
point, it is not recommended to use
--with-long-double-format=ieee.
--enable-fdpicOn SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathnameIf you want to build GCC but do not have the GMP library, the MPFR
library and/or the MPC library installed in a standard location and
do not have their sources present in the GCC source tree then you
can explicitly specify the directory where they are installed
(‘--with-gmp=gmpinstalldir’,
‘--with-mpfr=mpfrinstalldir’,
‘--with-mpc=mpcinstalldir’). The
--with-gmp=gmpinstalldir option is shorthand for
--with-gmp-lib=gmpinstalldir/lib and
--with-gmp-include=gmpinstalldir/include. Likewise the
--with-mpfr=mpfrinstalldir option is shorthand for
--with-mpfr-lib=mpfrinstalldir/lib and
--with-mpfr-include=mpfrinstalldir/include, also the
--with-mpc=mpcinstalldir option is shorthand for
--with-mpc-lib=mpcinstalldir/lib and
--with-mpc-include=mpcinstalldir/include. If these
shorthand assumptions are not correct, you can use the explicit
include and lib options directly. You might also need to ensure the
shared libraries can be found by the dynamic linker when building and
using GCC, for example by setting the runtime shared library path
variable (LD_LIBRARY_PATH on GNU/Linux and Solaris systems).
These flags are applicable to the host platform only. When building a cross compiler, they will not be used to configure target libraries.
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathnameIf you do not have the isl library installed in a standard location and you want to build GCC, you can explicitly specify the directory where it is installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this shorthand assumption is not correct, you can use the explicit include and lib options directly.
These flags are applicable to the host platform only. When building a cross compiler, they will not be used to configure target libraries.
--with-stage1-ldflags=flagsThis option may be used to set linker flags to be used when linking stage 1 of GCC. These are also used when linking GCC if configured with --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if supported.
--with-stage1-libs=libsThis option may be used to set libraries to be used when linking stage 1 of GCC. These are also used when linking GCC if configured with --disable-bootstrap.
--with-boot-ldflags=flagsThis option may be used to set linker flags to be used when linking stage 2 and later when bootstrapping GCC. If –with-boot-libs is not is set to a value, then the default is ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libsThis option may be used to set libraries to be used when linking stage 2 and later when bootstrapping GCC.
--with-debug-prefix-map=mapConvert source directory names using -fdebug-prefix-map when building runtime libraries. ‘map’ is a space-separated list of maps of the form ‘old=new’.
--enable-linker-build-idTells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable option), if the linker supports it. If you specify --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choiceTells GCC to pass --hash-style=choice option to the linker for all final links. choice can be one of ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-objectTells GCC to use the gnu_unique_object relocation for C++ template static data members and inline function local statics. Enabled by default for a toolchain with an assembler that accepts it and GLIBC 2.11 or above, otherwise disabled.
--with-diagnostics-color=choiceTells GCC to use choice as the default for -fdiagnostics-color=
option (if not used explicitly on the command line). choice
can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’
where ‘auto’ is the default. ‘auto-if-env’ makes
-fdiagnostics-color=auto the default if GCC_COLORS
is present and non-empty in the environment of the compiler, and
-fdiagnostics-color=never otherwise.
--with-diagnostics-urls=choiceTells GCC to use choice as the default for -fdiagnostics-urls=
option (if not used explicitly on the command line). choice
can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’
where ‘auto’ is the default. ‘auto-if-env’ makes
-fdiagnostics-urls=auto the default if GCC_URLS
or TERM_URLS is present and non-empty in the environment of the
compiler, and -fdiagnostics-urls=never otherwise.
--enable-lto--disable-ltoEnable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGSBy default, linker plugins (such as the LTO plugin) are built for the host system architecture. For the case that the linker has a different (but run-time compatible) architecture, these flags can be specified to build plugins that are compatible to the linker. For example, if you are building GCC for a 64-bit x86_64 (‘x86_64-pc-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is executable on the former system), you can configure GCC as follows for getting compatible linker plugins:
% srcdir/configure \
--host=x86_64-pc-linux-gnu \
--enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \
--enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'
--with-plugin-ld=pathnameEnable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. This linker should have plugin support such as gold starting with version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headersEnable system header path canonicalization for libcpp. This can produce shorter header file paths in diagnostics and dependency output files, but these changed header paths may conflict with some compilation environments. Enabled by default, and may be disabled using --disable-canonical-system-headers.
--with-glibc-version=major.minorTell GCC that when the GNU C Library (glibc) is used on the target it will be version major.minor or later. Normally this can be detected from the C library’s header files, but this option may be needed when bootstrapping a cross toolchain without the header files available for building the initial bootstrap compiler.
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. However, such configurations may not work well as not all the relevant configuration in GCC is on a per-multilib basis.
--enable-as-accelerator-for=targetBuild as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],…,targetN[=pathN]Enable offloading to targets target1, …, targetN. Offload compilers are expected to be already installed. Default search path for them is exec-prefix, but it can be changed by specifying paths path1, …, pathN.
% srcdir/configure \
--enable-offload-targets=amdgcn-amdhsa,nvptx-none
--enable-offload-defaultedTell GCC that configured but not installed offload compilers and libgomp plugins are silently ignored. Useful for distribution compilers where those are in separate optional packages and where the presence or absence of those optional packages should determine the actual supported offloading target set rather than the GCC configure-time selection.
--enable-cet--disable-cetEnable building target run-time libraries with control-flow
instrumentation, see -fcf-protection option. When
--enable-cet is specified target libraries are configured
to add -fcf-protection and, if needed, other target
specific options to a set of building options.
--enable-cet=auto is default. CET is enabled on Linux/x86 if
target binutils supports Intel CET instructions and disabled
otherwise. In this case, the target libraries are configured to get
additional -fcf-protection option.
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’Generate RISC-V attribute by default, in order to record extra build information in object.
The option is disabled by default. It is enabled on RISC-V/ELF (bare-metal) target if target binutils supported.
--enable-s390-excess-float-precision--disable-s390-excess-float-precisionOn s390(x) targets, enable treatment of float expressions with double precision
when in standards-compliant mode (e.g., when --std=c99 or
-fexcess-precision=standard are given).
For a native build and cross compiles that have target headers, the option’s default is derived from glibc’s behavior. When glibc clamps float_t to double, GCC follows and enables the option. For other cross compiles, the default is disabled.
--with-zstd=pathname--with-zstd-include=pathname--with-zstd-lib=pathnameIf you do not have the zstd library installed in a standard
location and you want to build GCC, you can explicitly specify the
directory where it is installed (‘--with-zstd=zstdinstalldir’).
The --with-zstd=zstdinstalldir option is shorthand for
--with-zstd-lib=zstdinstalldir/lib and
--with-zstd-include=zstdinstalldir/include. If this
shorthand assumption is not correct, you can use the explicit
include and lib options directly.
These flags are applicable to the host platform only. When building a cross compiler, they will not be used to configure target libraries.
The following options only apply to building cross compilers.
--with-toolexeclibdir=dirSpecify the installation directory for libraries built with a cross compiler. The default is ${gcc_tooldir}/lib.
--with-sysroot--with-sysroot=dirTells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. Target system headers, libraries and run-time object files will be searched for in there. More specifically, this acts as if --sysroot=dir was added to the default options of the built compiler. The specified directory is not copied into the install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to the GCC binaries if the installation tree is moved.
This option affects the system root for the compiler used to build
target libraries (which runs on the build system) and the compiler newly
installed with make install; it does not affect the compiler which is
used to build GCC itself.
If you specify the --with-native-system-header-dir=dirname option then the compiler will search that directory within dirname for native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dirTells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in which you are installing GCC and your target libraries.
This option affects the system root for the compiler used to build target libraries (which runs on the build system); it does not affect the compiler which is used to build GCC itself.
If you specify the --with-native-system-header-dir=dirname option then the compiler will search that directory within dirname for native system headers rather than the default /usr/include.
--with-headers--with-headers=dirDeprecated in favor of --with-sysroot.
Specifies that target headers are available when building a cross compiler.
The dir argument specifies a directory which has the target include
files. These include files will be copied into the gcc install
directory. This option with the dir argument is required when
building a cross compiler, if prefix/target/sys-include
doesn’t pre-exist. If prefix/target/sys-include does
pre-exist, the dir argument may be omitted. fixincludes
will be run on these files to make them compatible with GCC.
--without-headersTells GCC not use any target headers from a libc when building a cross compiler. When crossing to GNU/Linux, you need the headers so GCC can build the exception handling for libgcc.
--with-libs--with-libs="dir1 dir2 … dirN"Deprecated in favor of --with-sysroot. Specifies a list of directories which contain the target runtime libraries. These libraries will be copied into the gcc install directory. If the directory list is omitted, this option has no effect.
--with-newlibSpecifies that ‘newlib’ is
being used as the target C library. This causes __eprintf to be
omitted from libgcc.a on the assumption that it will be provided by
‘newlib’.
--with-avrlibcOnly supported for the AVR target. Specifies that ‘AVR-Libc’ is
being used as the target C library. This causes float support
functions like __addsf3 to be omitted from libgcc.a on
the assumption that it will be provided by libm.a. For more
technical details, cf. PR54461.
It is not supported for
RTEMS configurations, which currently use newlib. The option is
supported since version 4.7.2 and is the default in 4.8.0 and newer.
--with-double={32|64|32,64|64,32}--with-long-double={32|64|32,64|64,32|double}Only supported for the AVR target since version 10. Specify the default layout available for the C/C++ ‘double’ and ‘long double’ type, respectively. The following rules apply:
Not all combinations of --with-double= and --with-long-double= are valid. For example, the combination --with-double=32,64 --with-long-double=32 will be rejected because the first option specifies the availability of multilibs for ‘double’, whereas the second option implies that ‘long double’ — and hence also ‘double’ — is always 32 bits wide.
--with-double-comparison={tristate|bool|libf7}Only supported for the AVR target since version 10.
Specify what result format is returned by library functions that
compare 64-bit floating point values (DFmode).
The GCC default is ‘tristate’. If the floating point
implementation returns a boolean instead, set it to ‘bool’.
--with-libf7={libgcc|math|math-symbols|no}Only supported for the AVR target since version 10.
Specify to which degree code from LibF7 is included in libgcc.
LibF7 is an ad-hoc, AVR-specific, 64-bit floating point emulation
written in C and (inline) assembly. ‘libgcc’ adds support
for functions that one would usually expect in libgcc like double addition,
double comparisons and double conversions. ‘math’ also adds routines
that one would expect in libm.a, but with __ (two underscores)
prepended to the symbol names as specified by math.h.
‘math-symbols’ also defines weak aliases for the functions
declared in math.h. However, --with-libf7 won’t
install no math.h header file whatsoever, this file must come
from elsewhere. This option sets --with-double-comparison
to ‘bool’.
--with-nds32-lib=librarySpecifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. This option is only supported for the NDS32 target.
--with-build-time-tools=dirSpecifies where to find the set of target tools (assembler, linker, etc.) that will be used while building GCC itself. This option can be useful if the directory layouts are different between the system you are building GCC on, and the system where you will deploy it.
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a different path, and build a toolchain that expects to find the native tools in /usr/bin.
When you use this option, you should ensure that dir includes
ar, as, ld, nm,
ranlib and strip if necessary, and possibly
objdump. Otherwise, GCC may use an inconsistent set of
tools.
configure test results ¶Sometimes, it might be necessary to override the result of some
configure test, for example in order to ease porting to a new
system or work around a bug in a test. The toplevel configure
script provides three variables for this:
build_configargs ¶The contents of this variable is passed to all build configure
scripts.
host_configargs ¶The contents of this variable is passed to all host configure
scripts.
target_configargs ¶The contents of this variable is passed to all target configure
scripts.
In order to avoid shell and make quoting issues for complex
overrides, you can pass a setting for CONFIG_SITE and set
variables in the site file.
The following options apply to the build of the Objective-C runtime library.
--enable-objc-gcSpecify that an additional variant of the GNU Objective-C runtime library is built, using an external build of the Boehm-Demers-Weiser garbage collector (https://www.hboehm.info/gc/). This library needs to be available for each multilib variant, unless configured with --enable-objc-gc=‘auto’ in which case the build of the additional runtime library is skipped when not available and the build continues.
--with-target-bdw-gc=list--with-target-bdw-gc-include=list--with-target-bdw-gc-lib=listSpecify search directories for the garbage collector header files and libraries. list is a comma separated list of key value pairs of the form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’).
The options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together for each multilib variant and they take precedence over --with-target-bdw-gc. If --with-target-bdw-gc-include is missing values for a multilib, then the value for the default multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). If none of these options are specified, the library is assumed in default locations.
The following options apply to the build of the D runtime library.
--enable-libphobos-checking--disable-libphobos-checking--enable-libphobos-checking=listThis option controls whether run-time checks and contracts are compiled into the D runtime library. When the option is not specified, the library is built with ‘release’ checking. When the option is specified without a list, the result is the same as ‘--enable-libphobos-checking=yes’. Likewise, ‘--disable-libphobos-checking’ is equivalent to ‘--enable-libphobos-checking=no’.
The categories of checks available in list are ‘yes’ (compiles libphobos with -fno-release), ‘no’ (compiles libphobos with -frelease), ‘all’ (same as ‘yes’), ‘none’ or ‘release’ (same as ‘no’).
Individual checks available in list are ‘assert’ (compiles libphobos with an extra option -fassert).
--with-libphobos-druntime-only--with-libphobos-druntime-only=choiceSpecify whether to build only the core D runtime library (druntime), or both the core and standard library (phobos) into libphobos. This is useful for targets that have full support in druntime, but no or incomplete support in phobos. choice can be one of ‘auto’, ‘yes’, and ‘no’ where ‘auto’ is the default.
When the option is not specified, the default choice ‘auto’ means that it is inferred whether the target has support for the phobos standard library. When the option is specified without a choice, the result is the same as ‘--with-libphobos-druntime-only=yes’.
--with-target-system-zlibUse installed ‘zlib’ rather than that included with GCC. This needs to be available for each multilib variant, unless configured with --with-target-system-zlib=‘auto’ in which case the GCC included ‘zlib’ is only used when the system installed library is not available.
Return to the GCC Installation page
@ 1.19 log @merge GCC 14.3.0. @ text @d1 1 a1 1 d3 4 a6 1 d32 2 d36 1 a36 5 a.summary-letter {text-decoration: none} blockquote.indentedblock {margin-right: 0em} blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} blockquote.smallquotation {font-size: smaller} div.display {margin-left: 3.2em} d38 3 a40 17 div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} kbd {font-style: oblique} pre.display {font-family: inherit} pre.format {font-family: inherit} pre.menu-comment {font-family: serif} pre.menu-preformatted {font-family: serif} pre.smalldisplay {font-family: inherit; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: inherit; font-size: smaller} pre.smalllisp {font-size: smaller} span.nolinebreak {white-space: nowrap} span.roman {font-family: initial; font-weight: normal} span.sansserif {font-family: sans-serif; font-weight: normal} ul.no-bullet {list-style: none} a47 1We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory. d80 3 a82 3
If you obtained the sources by cloning the repository, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc d85 2 a86 2
If either srcdir or objdir is located on an automounted NFS
file system, the shell’s built-in pwd command will return
d88 3
a90 3
problems. To avoid this issue, set the PWDCMD environment
variable to an automounter-aware pwd command, e.g.,
pawd or ‘amq -w’, during the configuration and build
d93 2
a94 2
First, we highly recommend that GCC be built into a separate directory from the sources which does not reside d96 2 a97 2 where objdir is a subdirectory of srcdir should work as well; building where objdir == srcdir is unsupported. d100 3 a102 3 different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist d105 2 a106 2 recommended method of building in a separate objdir, you should simply use a different objdir for each target. d108 2 a109 2
Second, when configuring a native system, either cc or
gcc must be in your path or you must set CC in
d116 4
a119 4
% mkdir objdir % cd objdir % srcdir/configure [options] [target] d122 1 a122 2Distributor options
d128 2 a129 2
--with-pkgversion=versiongcc --version. This suffix does
not replace the default version string, only the ‘GCC’ part.
d135 1
a135 1
The default value is ‘GCC’. d138 1 a138 1
--with-bugurl=url--with-documentation-root-url=urlSpecify the URL root that contains GCC option documentation. The url
should end with a / character.
d150 1
a150 1
The default value is https://gcc.gnu.org/onlinedocs/
d152 1
a152 1
is https://gcc.gnu.org/onlinedocs/gcc-major.minor.0/.
d155 1
a155 1
--with-changes-root-url=urlgcc-version/changes.html.
The url should end with a / character.
d160 1
a160 1
The default value is https://gcc.gnu.org/. d165 1 a165 2
The build machine is the system which you are using, the host machine is the system where you want to run the resulting compiler (normally the build machine), and the target machine is d177 1 a177 1 to configure; it will try to guess the type of machine you are on d180 1 a180 1 configure cannot figure out what your configuration is or guesses d183 2 a184 2
In those cases, specify the build machine’s configuration name with the --host option; the host and target will default to be d189 2 a190 2
./configure --host=x86_64-pc-linux-gnu d194 1 a194 1 abbreviated (config.sub script produces canonical versions). d197 1 a197 1 It looks like this: ‘cpu-company-system’. d201 1 a201 1d216 2 a217 2aixversion, amdhsa, aout, cygwin, darwinversion, d219 1 a219 1 elfbare, elfoabi, freebsdversion, gnu, hpux, hpuxversion, d222 2 a223 2 mmixware, msdosdjgpp, netbsd, netbsdelfversion, nto-qnx, openbsd, rtems, solarisversion, symbianelf, tpf, uclinux, uclinux_eabi, vms, d227 1 a227 2
Options specification
d229 2 a230 2Use options to override several configure time options for GCC. A list of supported options follows; ‘configure d234 3 a236 3
Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option. d238 2 a239 2
- d243 1 a243 1 /usr/local. d245 2 a246 2
--prefix=dirnameWe highly recommend against dirname being the same or a subdirectory of objdir or vice versa. If specifying a directory d248 2 a249 2 dirname correctly if it contains the ‘~’ metacharacter; use
$HOMEinstead. d251 1 a251 1The following standard
autoconfoptions are supported. Normally you d253 2 a254 2
- d256 1 a256 1 files. The default is prefix. d259 1 a259 1
--exec-prefix=dirname- d261 2 a262 2 (such as
--bindir=dirnamegccandg++). The default is exec-prefix/bin. d265 1 a265 1- d267 1 a267 1 internal data files of GCC. The default is exec-prefix/lib. d270 1 a270 1
--libdir=dirname- d272 1 a272 1 The default is exec-prefix/libexec. d275 1 a275 1
--libexecdir=dirname- d277 1 a277 1 default is libdir. d280 1 a280 1
--with-slibdir=dirname- d282 1 a282 1 data files referenced by GCC. The default is prefix/share. d285 1 a285 1
--datarootdir=dirname- d287 1 a287 1 The default is datarootdir/info. d290 1 a290 1
--infodir=dirname- d292 1 a292 1 data files referenced by GCC. The default is datarootdir. d295 1 a295 1
--datadir=dirname- d297 1 a297 1 than Info) for GCC. The default is datarootdir/doc. d300 1 a300 1
--docdir=dirname- d302 1 a302 1 The default is docdir. d305 1 a305 1
--htmldir=dirname- d307 1 a307 1 The default is docdir. d310 1 a310 1
--pdfdir=dirname- d312 1 a312 1 datarootdir/man. (Note that the manual pages are only extracts d318 1 a318 1
--mandir=dirname- d325 1 a325 1
--with-gxx-include-dir=dirname- d329 1 a329 1 --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. d336 1 a336 1
--with-specs=specs- d338 21 a358 21 installing them. This option prepends prefix to the names of programs to install in bindir (see above). For example, specifying --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-prefix=prefix--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names of programs to install in bindir (see above). pattern has to consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d360 1 a360 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d364 3 a366 3 complex conversion patterns. As a basic rule, prefix (and suffix) are prepended (appended) before further transformations can happen with a special transformation script pattern. d374 1 a374 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d376 1 a376 1 --program-prefix=foo- and program-suffix=-3.1, the d378 1 a378 1 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1. d384 1 a384 1
- d387 3 a389 3 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include. d391 2 a392 2
--with-local-prefix=dirnameYou should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d395 3 a397 3
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d401 2 a402 2
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d405 1 a405 1 another directory which is based on the --prefix value.) d415 1 a415 1
Some autoconf macros add -I directory options to the d417 1 a417 1 packages’ headers are searched. When directory is one of GCC’s d424 1 a424 1
GCC_EXEC_PREFIX. Thus, when the same installation prefix is d428 1 a428 1 installed as a system compiler in /usr. d432 2 a433 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d435 1 a435 1 and the --with-local-prefix option to specify the location of the d438 1 a438 1 (e.g., withLIBRARY_PATH). d440 3 a442 3The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include. d444 2 a445 2
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not d449 1 a449 1 file corrections made by the
fixincludesscript. d457 1 a457 1- d459 1 a459 1 major.minor.patchlevel in filesystem paths. d462 3 a464 3
--with-gcc-major-version-only--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d467 2 a468 2 --with-sysroot option and will cause GCC to search dirname inside the system root specified by that option. d471 1 a471 1
- d479 8 a486 8 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libgo’, ‘libobjc’, and ‘libphobos’. Note ‘libiberty’ does not support shared libraries at all.
--enable-shared[=package[,…]]Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does. d488 1 a488 1
Contrast with --enable-host-shared, which affects host d492 3 a494 3
--enable-host-sharedSpecify that the host code should be built into position-independent machine code (with -fPIC), allowing it to be used within shared d499 1 a499 1
Contrast with --enable-shared, which affects target d503 3 a505 3
--enable-host-pieSpecify that the host executables should be built into position-independent executables (with -fPIE and -pie), d507 1 a507 1 --enable-host-shared). Position-independent executables are loaded d511 2 a512 2
--enable-host-pie may be used with --enable-host-shared, in which case -fPIC is used when compiling, and -pie when d516 3 a518 3
--enable-host-bind-nowSpecify that the host executables should be linked with the option -Wl,-z,now, which means that the dynamic linker will resolve all d523 1 a523 1
- d529 1 a529 1 configured with --with-gnu-as.) If you have more than one d531 2 a532 2 connection with --with-as=pathname or --with-build-time-tools=pathname. d536 1 a536 1 --with-gnu-as has no effect. d538 4 a541 4
--with-gnu-as
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘*-*-solaris2.11’ d545 1 a545 1
- d547 1 a547 1 pathname, rather than the one found by the standard rules to find d549 9 a557 9
--with-as=pathname
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; exec-prefix defaults to prefix, which defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.11’, and version denotes the GCC version, such as 3.0. d559 1 a559 1
- If the target system is the same that you are building on, check d562 1 a562 1
- Check in the
PATHfor a tool whose name is prefixed by the d565 1 a565 1- Check in the
PATHfor a tool whose name is not prefixed by the d571 1 a571 1You may want to use --with-as if no assembler d577 2 a578 2
--with-gnu-ldSame as --with-gnu-as d582 2 a583 2
--with-ld=pathnameSame as --with-as d587 2 a588 2
--with-dsymutil=pathnameSame as --with-as d592 4 a595 4
--with-tls=dialectSpecify the default TLS dialect, for systems were there is a choice. For ARM targets, possible values for dialect are
gnuorgnu2, which select between the original GNU dialect and the GNU TLS d597 2 a598 2 For RISC-V targets, possible values for dialect aretradordesc, which select between the traditional GNU dialect and the GNU TLS d602 1 a602 1- d606 2 a607 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d609 1 a609 1 https://wiki.debian.org/Multiarch. d612 3 a614 3
--enable-multiarch--enable-sjlj-exceptionsForce use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d618 1 a618 1- d627 2 a628 2 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default. d631 1 a631 1
--enable-vtable-verify- d636 1 a636 1
--disable-gcov- d643 3 a645 3 (e.g., --disable-softfloat):
--disable-multilib
- d649 1 a649 1
arm-*-*- d653 1 a653 1
m68*-*-*- d657 1 a657 1
mips*-*-*- d661 1 a661 1
msp430-*-*- d669 3 a671 3
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. list is a comma separated list of d677 3 a679 3
aarch64*-*-*list is a comma separated list of
ilp32, andlp64d681 3 a683 3 list is empty, then there will be no multilibs and only the default run-time library will be built. If list isdefaultor –with-multilib-list= is not specified, then the d685 1 a685 1 --target. d688 4 a691 4amdgcn*-*-*list is a comma separated list of ISA names (allowed values:
fiji,gfx900,gfx906,gfx908,gfx90a,gfx90c,gfx1030,gfx1036,gfx1100,gfx1103). d693 1 a693 1 ISA, specified via --with-arch. If list is empty, then there d695 1 a695 1 list isdefaultor --with-multilib-list= is not d699 3 a701 3arm*-*-*list is a comma separated list of
aprofileandrmprofileto build multilibs for A or R and M architecture d703 1 a703 1 multilib framework, using the combinedaprofile,rmprofiled706 1 a706 1defaultis also accepted and is equivalent to omitting the d709 2 a710 2list may instead contain
@@name, to use the multilib configuration Makefile fragment name in gcc/config/arm in d713 1 a713 1 be named starting with t-ml-, to make their intended purpose d717 2 a718 2 files. See gcc/config/arm/t-multilib and its supplementary gcc/config/arm/t-*profile files for an example of what such d721 1 a721 1 releases, so make sure they define theMULTILIB-related macros d728 1 a728 1aprofileandrmprofile. d730 3 a732 3
Option aprofile rmprofile d734 9 a742 9 ISAs -marmand-mthumb-mthumb-march=armv7-a
-march=armv7ve
-march=armv8-adefault architecture d744 15 a758 14
-march=armv6s-m
-march=armv7-m
-march=armv7e-m
-march=armv8-m.base
-march=armv8-m.main
-march=armv7-mfpu=vfpv3-d16
-mfpu=neon
-mfpu=vfpv4-d16
-mfpu=neon-vfpv4
-mfpu=neon-fp-armv8none
-mfpu=vfpv3-d16
-mfpu=fpv4-sp-d16
-mfpu=fpv5-sp-d16
-mfpu=fpv5-d16d762 4 a765 4 floating-point ABIs -mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hard-mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hardloongarch*-*-*list is a comma-separated list, with each of the element starting with the following ABI identifiers:
lp64d[/base]lp64f[/base]lp64d[/base](the/basesuffix may be omitted) d768 1 a768 1A suffix
[/arch][/option/…]may follow immediately d770 4 a773 4 given set of libraries. arch denotes the architecture name recognized by the -march=arch compiler option, which acts as a basic target ISA configuration that can be adjusted using the subsequent option suffixes, where each option is a compiler option without a leading dash d777 3 a779 3 configured value of --with-multilib-default is appended as a default suffix. If --with-multilib-default is not given, the default build option -march=abi-default is applied when building the variants d782 1 a782 1As a special case,
fixedmay be used in the position of arch, d784 2 a785 2 --with-arch=arch, or its default value (e.g.loongarch64forloongarch64-*targets). d787 1 a787 1If list is empty or
default, or if --with-multilib-list d792 4 a795 4riscv*-*-*list is a single ABI name. The target architecture must be either
rv32gcorrv64gc. This will build a single multilib for the specified architecture and ABI pair. If--with-multilib-listis not d797 1 a797 1 --target. This is usually a large set of multilibs. d800 3 a802 3sh*-*-*list is a comma separated list of CPU names. These must be of the form
sh*orm*(in which case they match the compiler option d804 1 a804 1 these are handled by --with-endian. d806 1 a806 1If list is empty, then there will be no multilibs for extra d809 1 a809 1
As a special case, if an entry in the list starts with a
!d811 2 a812 2 Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ (once the leading!has been stripped). d814 2 a815 2If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d821 2 a822 2
--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d827 2 a828 2--with-cpu=sh4a --with-endian=little,big \ d833 4 a836 4x86-64-*-linux*list is a comma separated list of
m32,m64andmx32to enable 32-bit, 64-bit and x32 run-time libraries, respectively. If list is empty, then there will be no multilibs d839 1 a839 1If --with-multilib-list is not given, then only 32-bit and d845 1 a845 1
- d848 4 a851 4 --with-multilib-list items. The format of this value is
--with-multilib-default[/arch][/option/…], where arch is an architecture name recognized by -march=arch compiler option, and subsequent option suffixes are compiler options minus a leading d854 2 a855 2Multiple options may appear consecutively while arch may only appear in the beginning or be omitted (which means -march=abi-default d859 2 a860 2
--with-strict-align-libOn LoongArch targets, build all enabled multilibs with -mstrict-align d864 2 a865 2
--with-multilib-generator=configSpecify what multilibs to build. config is a semicolon separated list of d874 2 a875 2
rv32i-ilp32-- d879 2 a880 2rv32i-ilp32--;rv32imafd-ilp32-- d885 2 a886 2rv32i-ilp32-rv32im-c d891 2 a892 2rv64ima-lp64--f,c,fc d895 3 a897 3--with-multilib-generator have an optional configuration argument --cmodel=val for code model, this option will expand with other config options, val is a comma separated list of possible code model, d902 2 a903 2
rv64ima-lp64--;--cmodel=medlow d908 2 a909 2rv64ima-lp64--;--cmodel=medlow,medany d913 1 a913 1- d917 3 a919 3
--with-endian=endiansendians may be one of the following:
- d922 1 a922 1
big- d925 1 a925 1
little- d928 1 a928 1
big,little- d934 1 a934 1
little,big- d943 2 a944 2 available for the system. In this case, --enable-threads is an alias for --enable-threads=single. d947 1 a947 1
--enable-threads- d949 1 a949 1 This is an alias for --enable-threads=single. d952 1 a952 1
--disable-threads- d954 1 a954 1 lib is the thread support library. This affects the Objective-C d956 1 a956 1 like C++. The possibilities for lib are: d958 2 a959 2
--enable-threads=lib
- d962 1 a962 1
aix- d965 1 a965 1
dce- d968 1 a968 1
lynx- d971 2 a972 2
mipssdenoThis is an alias for ‘single’. d974 1 a974 1
- d977 1 a977 1
posix- d980 1 a980 1
rtems- d983 1 a983 1
single- d986 1 a986 1
tpf- d989 1 a989 1
vxworks- d995 1 a995 1
win32- d999 1 a999 1 --enable-tls or --disable-tls. This can happen if d1004 1 a1004 1
--enable-tls- d1006 1 a1006 1 This is an alias for --enable-tls=no. d1009 1 a1009 1
--disable-tls- d1015 3 a1017 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d1019 1 a1019 1 cpu will be used as the default value of the -mcpu= switch. d1021 2 a1022 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d1027 15 a1041 15
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=type--with-simd=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d1045 2 a1046 2
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. d1050 2 a1051 2
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, d1056 4 a1059 4
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d1063 6 a1068 6
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using the o32 ABI. The possibilities for mode are:
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line d1071 2 a1072 2
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line d1075 2 a1076 2
64Use the o32 FP64 ABI extension, as with the -mfp64 command-line d1084 2 a1085 2
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using d1089 2 a1090 2
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using d1092 1 a1092 1 --with-fp-32=64 in order to target the o32 FP64A ABI extension. d1095 1 a1095 1
- d1098 4 a1101 4 possibilities for encoding are:
--with-nan=encoding
legacyUse the legacy encoding, as with the -mnan=legacy command-line d1104 2 a1105 2
2008Use the 754-2008 encoding, as with the -mnan=2008 command-line d1110 1 a1110 1 installed that supports the -mnan= command-line option too. d1112 2 a1113 2 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used. d1116 1 a1116 1
- d1119 3 a1121 3 The possibilities for type are:
--with-divide=type
- d1125 1 a1125 1
traps- d1131 1 a1131 1
breaks- d1134 3 a1136 3 The possibilities for type are:
--with-compact-branches=policy
- d1141 1 a1141 1
optimal- d1144 1 a1144 1
never- d1155 3 a1157 3
always--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d1162 3 a1164 3
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed. d1167 3 a1169 3
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed. d1172 3 a1174 3
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default. d1177 3 a1179 3
--with-lxc1-sxc1On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default. d1182 3 a1184 3
--without-lxc1-sxc1On MIPS targets, make -mno-lxc1-sxc1 the default when no -mlxc1-sxc1 option is passed. The indexed load/store d1192 2 a1193 2 as an
adduinstruction or as part of the address calculation inlwxc1type instructions. This assumption holds true in a d1198 3 a1200 3--with-madd4On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default. d1203 3 a1205 3
--without-madd4On MIPS targets, make -mno-madd4 the default when no -mmadd4 option is passed. The
madd4instruction d1214 3 a1216 3--with-msaOn MIPS targets, make -mmsa the default when no -mno-msa option is passed. d1219 3 a1221 3
--without-msaOn MIPS targets, make -mno-msa the default when no -mmsa option is passed. This is the default. d1224 1 a1224 1
- d1231 1 a1231 1
--with-mips-plt- d1233 1 a1233 1 size as a power of two in bytes. On AArch64 size is required to be either d1237 1 a1237 1
--with-stack-clash-protection-guard-size=size- d1240 3 a1242 3 The possibilities for ISA-spec-string are:
--with-isa-spec=ISA-spec-string
- d1245 1 a1245 1
2.2- d1248 1 a1248 1
20190608- d1255 1 a1255 1
20191213- d1261 1 a1261 1 -fuse-cxa-atexit to be passed by default. d1264 2 a1265 2
--enable-__cxa_atexit--enable-gnu-indirect-functionDefine if you want to enable the
ifuncattribute. This option is d1269 1 a1269 1- d1275 3 a1277 3
--enable-target-optspace--with-cpp-install-dir=dirnameSpecify that the user visible
cppprogram should be installed in prefix/dirname/cpp, in addition to bindir. d1280 1 a1280 1- d1285 4 a1288 4
--enable-comdat--enable-initfini-arrayForce the use of sections
.init_arrayand.fini_array(instead of.initand.fini) for constructors and destructors. Option --disable-initfini-array has the d1290 2 a1291 2 will try to guess whether the.init_arrayand.fini_arraysections are supported and, if they are, use them. d1294 1 a1294 1- d1300 1 a1300 1
--enable-link-mutex- d1309 1 a1309 1
--enable-link-serialization- d1311 1 a1311 1 well as the GCC master message catalog gcc.pot are normally d1314 2 a1315 2 catalog, configuring with --enable-maintainer-mode will enable this. Note that you need a recent version of the
--enable-maintainer-modegettexttools d1319 1 a1319 1- d1321 1 a1321 1 a 3-stage bootstrap of the compiler when ‘make’ is invoked, d1323 1 a1323 1 this process, you can configure with --disable-bootstrap. d1326 1 a1326 1
--disable-bootstrap- d1332 1 a1332 1 with --enable-bootstrap. d1335 1 a1335 1
--enable-bootstrap- d1343 1 a1343 1
--enable-generated-files-in-srcdirIf you configure with --enable-generated-files-in-srcdir then those d1350 1 a1350 1
- d1353 4 a1356 4 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into libdir unless you overruled it by using --with-gxx-include-dir=dirname. Using this option is d1358 1 a1358 1 parallel. The default is ‘yes’ for ‘libada’, and ‘no’ for d1362 1 a1362 1
--enable-version-specific-runtime-libs- d1369 6 a1374 6
--with-darwin-extra-rpath--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned
Shared Objectfiles as members of unversionedArchive Libraryfiles named ‘lib.a’) causes numerous headaches for package managers. However,Import Filesas members ofArchive Libraryfiles allow for filename-based versioning of shared libraries as seen on Linux/SVR4, d1376 3 a1378 3Import Filesmay be used withRuntime Linkingonly, where the linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag. d1380 2 a1381 2For detailed information please refer to the AIX ld d1385 15 a1399 15
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- - is used for runtime loading from inside the ‘libNAME.a’ file
- - is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- - is used for shared linking
- - is used for static linking, so no separate
Static Archive d1404 12 a1415 12--with-aix-soname=both--with-aix-soname=svr4A (second)
Shared Archive Libraryfile is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- - is created with the
-G linker flag- - has the
F_LOADONLYflag set- - is used for runtime loading from inside the ‘libNAME.so.V’ file
- - is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d1418 1 a1418 1- with the
Import Fileas archive member named ‘shr.imp’, d1420 7 a1426 7
- - refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded in the
Loader Sectionof subsequent binaries- - indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- - lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- - is necessary for shared linking against ‘lib.so.V(shr.o)’ d1429 7 a1435 7
A symbolic link using the ‘libNAME.so’ filename scheme is created:
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d1442 8 a1449 8
--with-aix-soname=svr4A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- - are used for static linking d1455 2 a1456 2
While the aix-soname=‘svr4’ option does not create
Shared Objectfiles as members of unversionedArchive Libraryfiles any more, package d1458 3 a1460 3 transferShared Objectfiles found as member of a previously installed unversionedArchive Libraryfile into the newly installedArchive Libraryfile with the same d1463 4 a1466 4WARNING: Creating
Shared Objectfiles withRuntime Linkingenabled may bloat the TOC, eventually leading toTOC overflowerrors, requiring the use of either the -Wl,-bbigtoc linker flag (seen to break with theGDBdebugger) or some of the TOC-related compiler flags, d1469 1 a1469 1--with-aix-soname is currently supported by ‘libgcc_s’ only, so d1472 1 a1472 1
Default is the traditional behavior --with-aix-soname=‘aix’. d1475 1 a1475 1
- d1478 4 a1481 4 langN you can issue the following command in the gcc directory of your GCC source tree:
--enable-languages=lang1,lang2,…
grep ^language= */config-lang.in d1484 3 a1486 3all,default,ada,c,c++,d,fortran,go,jit,lto,m2,objc,obj-c++. d1488 2 a1489 2 If you do not pass this flag, or specify the optiondefault, then the default languages available in the gcc sub-tree will be configured. d1492 1 a1492 1 default language, but is built by default because --enable-lto is d1494 3 a1496 3allis specified, then all available languages are built. An exception isjitlanguage, which requires --enable-host-shared to be included withall. d1499 1 a1499 1- d1504 2 a1505 2 --enable-languages, and the option
--enable-stage1-languages=lang1,lang2,…allwill select all of the languages enabled by --enable-languages. This option is d1510 1 a1510 1 specified languages with the stage-1 compiler by usingmake d1512 1 a1512 1 for the specified languages usingmake stage1-start check-gcc. d1515 1 a1515 1- d1519 1 a1519 1 do a ‘make -C gcc gnatlib_and_tools’. d1522 1 a1522 1
--disable-libada- d1527 1 a1527 1
--disable-libgm2- d1532 1 a1532 1
--disable-libsanitizer- d1538 1 a1538 1
--disable-libssp- d1541 1 a1541 1 the Fortran front end, unless --disable-libquadmath-support d1545 3 a1547 3
--disable-libquadmath--disable-libquadmath-supportSpecify that the Fortran front end and
libgfortrando not add support forlibquadmathon systems supporting it. d1550 1 a1550 1- d1555 1 a1555 1
--disable-libgomp- d1560 1 a1560 1
--disable-libvtv- d1566 1 a1566 1
--with-dwarf2- d1569 1 a1569 1 Toolchain release at instead of the default versions that are d1575 2 a1576 2
--with-advance-toolchain=at--enable-targets=all- d1590 2 a1591 2
--enable-targets=target_list--enable-default-pieTurn on -fPIE and -pie by default. d1594 2 a1595 2
--enable-securepltThis option enables -msecure-plt by default for powerpc-linux. d1599 2 a1600 2
--enable-default-sspTurn on -fstack-protector-strong by default. d1603 2 a1604 2
--enable-cldThis option enables -mcld by default for 32-bit x86 targets. d1608 3 a1610 3
--enable-large-address-awareThe --enable-large-address-aware option arranges for MinGW executables to be linked using the --large-address-aware d1613 1 a1613 1 -Wl,--disable-large-address-aware option to the so-configured d1617 4 a1620 4
--enable-win32-registry--enable-win32-registry=key--disable-win32-registryThe --enable-win32-registry option enables Microsoft Windows-hosted GCC d1623 2 a1624 2
HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1627 2 a1628 2key defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1632 1 a1632 1 by default, and can be disabled by --disable-win32-registry d1636 1 a1636 1
- d1638 2 a1639 2 option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect. d1642 4 a1645 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1647 2 a1648 2 compiler are built with -Werror in bootstrap stage2 and later. If you don’t specify it, -Werror is turned on for the main d1650 1 a1650 1 final releases. The specific files which get -Werror are d1654 3 a1656 3
--enable-werror=no--enable-checking--disable-checking- d1663 1 a1663 1 Namely, bootstrap stage 1 defaults to ‘--enable-checking=yes’, builds d1665 12 a1676 12 ‘--enable-checking=release’, and otherwise ‘--enable-checking=yes,extra’ is used. When the option is specified without a list, the result is the same as ‘--enable-checking=yes’. Likewise, ‘--disable-checking’ is equivalent to ‘--enable-checking=no’.
--enable-checking=listThe categories of checks available in list are ‘yes’ (most common checks ‘assert,misc,gc,gimple,rtlflag,runtime,tree,types’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). ‘release’ checks are always on and to disable them ‘--disable-checking’ or ‘--enable-checking=no[,<other checks>]’ d1681 4 a1684 4
Individual checks can be enabled with these flags: ‘assert’, ‘df’, ‘extra’, ‘fold’, ‘gc’, ‘gcac’, ‘gimple’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘types’ and ‘valgrind’. ‘extra’ extends ‘misc’ d1688 3 a1690 3
The ‘valgrind’ check requires the external
valgrindsimulator, available from https://valgrind.org. The ‘rtl’ checks are expensive and the ‘df’, ‘gcac’ and ‘valgrind’ checks are very d1694 5 a1698 5--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=listThis option affects only bootstrap build. If no --enable-checking option is specified the stage1 compiler is built with ‘yes’ checking d1700 3 a1702 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1704 1 a1704 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1708 2 a1709 2
--enable-coverage- d1713 2 a1714 2 level argument controls whether the compiler is built optimized or not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1720 1 a1720 1
--enable-coverage=level- d1723 1 a1723 1 -fmem-report. d1726 1 a1726 1
--enable-gather-detailed-mem-stats- d1731 3 a1733 3
--enable-valgrind-annotations--enable-nls--disable-nlsThe --enable-nls option enables Native Language Support (NLS), d1736 1 a1736 1 canadian cross build. The --disable-nls option disables NLS. d1741 1 a1741 1 See –with-included-gettext for more d1745 4 a1748 4
--with-libintl-prefix=dir--without-libintl-prefixSearches for libintl in dir/include and dir/lib, or disables manual searching for it, letting the d1752 1 a1752 1
- d1754 1 a1754 1 type can be one of
--with-libintl-type=typeauto,staticorshared. d1756 3 a1758 3--with-included-gettextOnly available if gettext is present in the source tree. d1768 3 a1770 3
GNU gettext present in sources libintl installed on the system gettextpresent in libc--with-included-gettextEffects on localization d1782 1 d1786 6 a1791 6 No No No (ignored) No localization --with-catgetsIf NLS is enabled, and if the host lacks
gettextbut has the inferiorcatgetsinterface, the GCC build procedure normally ignorescatgetsand instead uses GCC’s copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host’scatgetsin this situation. d1794 3 a1796 3--with-libiconv-prefix=dirSearch for libiconv header files in dir/include and libiconv library files in dir/lib. d1799 1 a1799 1
- d1810 6 a1815 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1821 1 a1821 1 format is used (either ‘bid’ or ‘dpd’). The ‘bid’ d1823 1 a1823 1 systems, and the ‘dpd’ (densely packed decimal) format is default d1827 2 a1828 2
--disable-decimal-float--enable-fixed-point- d1835 4 a1838 4
--disable-fixed-point--with-long-double-128Specify if
long doubletype should be 128-bit by default on selected GNU/Linux architectures. If using--without-long-double-128,long doublewill be by default 64-bit, the same asdoubletype. d1840 2 a1841 2 128-bitlong doublewhen built against GNU C Library 2.4 and later, 64-bitlong doubleotherwise. d1844 3 a1846 3--with-long-double-format=ibm--with-long-double-format=ieeeSpecify whether
long doubleuses the IBM extended double format d1850 2 a1851 2 is at least power7 (i.e. --with-cpu=power7, --with-cpu=power8, or --with-cpu=power9 is used). d1853 3 a1855 3If you use the --with-long-double-64 configuration option, the --with-long-double-format=ibm and --with-long-double-format=ieee options are ignored. d1857 1 a1857 1
The default
long doubleformat is to use IBM extended double. d1860 1 a1860 1 --with-long-double-format=ieee. d1863 1 a1863 1- d1867 9 a1875 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1880 12 a1891 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1896 1 a1896 1 variable (
--with-mpc-lib=pathnameLD_LIBRARY_PATHon GNU/Linux and Solaris systems). d1902 3 a1904 3--with-isl=pathname--with-isl-include=pathname- d1907 4 a1910 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1918 1 a1918 1
--with-isl-lib=pathname- d1921 2 a1922 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1926 1 a1926 1
--with-stage1-ldflags=flags- d1929 1 a1929 1 --disable-bootstrap. d1932 1 a1932 1
--with-stage1-libs=libs- d1936 1 a1936 1 ‘-static-libstdc++ -static-libgcc’. d1939 1 a1939 1
--with-boot-ldflags=flags- d1944 4 a1947 4
--with-boot-libs=libs--with-debug-prefix-map=mapConvert source directory names using -fdebug-prefix-map when building runtime libraries. ‘map’ is a space-separated list of maps of the form ‘old=new’. d1950 3 a1952 3
--enable-linker-build-idTells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1954 3 a1956 3 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off. d1959 4 a1962 4
--with-linker-hash-style=choiceTells GCC to pass --hash-style=choice option to the linker for all final links. choice can be one of ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default. d1965 2 a1966 2
--enable-gnu-unique-object- d1973 6 a1978 6
--disable-gnu-unique-object--with-diagnostics-color=choiceTells GCC to use choice as the default for -fdiagnostics-color= option (if not used explicitly on the command line). choice can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ makes -fdiagnostics-color=auto the default if
GCC_COLORSd1980 1 a1980 1 -fdiagnostics-color=never otherwise. d1983 8 a1990 8--with-diagnostics-urls=choiceTells GCC to use choice as the default for -fdiagnostics-urls= option (if not used explicitly on the command line). choice can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ makes -fdiagnostics-urls=auto the default if
GCC_URLSorTERM_URLSis present and non-empty in the environment of the compiler, and -fdiagnostics-urls=never otherwise. d1993 2 a1994 2--enable-lto- d1996 1 a1996 1 default, and may be disabled using --disable-lto. d1999 2 a2000 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d2006 2 a2007 2 (‘x86_64-pc-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d2011 2 a2012 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d2019 1 a2019 1- d2021 1 a2021 1 link time when -fuse-linker-plugin is enabled. d2024 1 a2024 1 See -fuse-linker-plugin for details. d2027 3 a2029 3
--with-plugin-ld=pathname--enable-canonical-system-headers--disable-canonical-system-headersEnable system header path canonicalization for libcpp. This can d2033 1 a2033 1 --disable-canonical-system-headers. d2036 1 a2036 1
- d2038 1 a2038 1 will be version major.minor or later. Normally this can d2049 2 a2050 2
--with-glibc-version=major.minor--enable-as-accelerator-for=targetBuild as offload target compiler. Specify offload host triple by target. d2053 2 a2054 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]Enable offloading to targets target1, …, targetN. d2056 2 a2057 2 path for them is exec-prefix, but it can be changed by specifying paths path1, …, pathN. d2059 2 a2060 2
% srcdir/configure \ d2065 1 a2065 1- d2074 2 a2075 2
--enable-offload-defaulted--enable-cet- d2077 3 a2079 3 instrumentation, see -fcf-protection option. When
--disable-cet--enable-cetis specified target libraries are configured to add -fcf-protection and, if needed, other target d2082 2 a2083 2
--enable-cet=autois default. CET is enabled on Linux/x86 if target binutils supportsIntel CETinstructions and disabled d2085 1 a2085 1 additional -fcf-protection option. d2088 1 a2088 1- d2096 2 a2097 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’--enable-s390-excess-float-precision- d2099 2 a2100 2 when in standards-compliant mode (e.g., when
--disable-s390-excess-float-precision--std=c99or-fexcess-precision=standardare given). d2108 4 a2111 4--with-zstd=pathname--with-zstd-include=pathname--with-zstd-lib=pathnameIf you do not have the
zstdlibrary installed in a standard d2113 4 a2116 4 directory where it is installed (‘--with-zstd=zstdinstalldir’). The --with-zstd=zstdinstalldir option is shorthand for --with-zstd-lib=zstdinstalldir/lib and --with-zstd-include=zstdinstalldir/include. If this d2125 1 a2125 2Cross-Compiler-Specific Options
d2128 2 a2129 2
- d2131 1 a2131 1 The default is ${gcc_tooldir}/lib. d2134 3 a2136 3
--with-toolexeclibdir=dir--with-sysroot--with-sysroot=dirTells GCC to consider dir as the root of a tree that contains d2140 1 a2140 1 --sysroot=dir was added to the default options of the built d2142 5 a2146 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d2151 1 a2151 1 installed with
make install; it does not affect the compiler which is d2154 3 a2156 3If you specify the --with-native-system-header-dir=dirname option then the compiler will search that directory within dirname for native system headers rather than the default /usr/include. d2159 8 a2166 8
--with-build-sysroot--with-build-sysroot=dirTells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d2173 3 a2175 3
If you specify the --with-native-system-header-dir=dirname option then the compiler will search that directory within dirname for native system headers rather than the default /usr/include. d2178 3 a2180 3
--with-headers--with-headers=dirDeprecated in favor of --with-sysroot. d2182 6 a2187 6 The dir argument specifies a directory which has the target include files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn’t pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted.
fixincludesd2191 1 a2191 1- d2197 3 a2199 3
--without-headers--with-libs--with-libs="dir1 dir2 … dirN"Deprecated in favor of --with-sysroot. d2201 1 a2201 1 libraries. These libraries will be copied into the gcc install d2206 5 a2210 5
--with-newlibSpecifies that ‘newlib’ is being used as the target C library. This causes
__eprintfto be omitted from libgcc.a on the assumption that it will be provided by ‘newlib’. d2214 2 a2215 2--with-avrlibcOnly supported for the AVR target. Specifies that ‘AVR-Libc’ is d2217 3 a2219 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d2225 2 a2226 2--with-double={32|64|32,64|64,32}- d2228 8 a2235 8 Specify the default layout available for the C/C++ ‘double’ and ‘long double’ type, respectively. The following rules apply:
--with-long-double={32|64|32,64|64,32|double}
- The first value after the ‘=’ specifies the default layout (in bits) of the type and also the default for the -mdouble= resp. -mlong-double= compiler option.
- If more than one value is specified, respective multilib variants are available, and -mdouble= resp. -mlong-double= acts d2237 4 a2240 4
- If --with-long-double=double is specified, ‘double’ and ‘long double’ will have the same layout.
- The defaults are --with-long-double=64,32 and --with-double=32,64. The default ‘double’ layout imposed by d2242 1 a2242 1 ‘double’ as a 32-bit type, which does not comply to the language standard. d2244 3 a2246 3
Not all combinations of --with-double= and --with-long-double= are valid. For example, the combination --with-double=32,64 --with-long-double=32 will be d2248 2 a2249 2 multilibs for ‘double’, whereas the second option implies that ‘long double’ — and hence also ‘double’ — is always d2253 1 a2253 1
- d2256 3 a2258 3 compare 64-bit floating point values (
--with-double-comparison={tristate|bool|libf7}DFmode). The GCC default is ‘tristate’. If the floating point implementation returns a boolean instead, set it to ‘bool’. d2261 1 a2261 1- d2265 1 a2265 1 written in C and (inline) assembly. ‘libgcc’ adds support d2267 8 a2274 8 double comparisons and double conversions. ‘math’ also adds routines that one would expect in libm.a, but with
--with-libf7={libgcc|math|math-symbols|no}__(two underscores) prepended to the symbol names as specified by math.h. ‘math-symbols’ also defines weak aliases for the functions declared in math.h. However,--with-libf7won’t install no math.h header file whatsoever, this file must come from elsewhere. This option sets --with-double-comparison to ‘bool’. d2277 3 a2279 3--with-nds32-lib=librarySpecifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d2283 1 a2283 1
- d2289 2 a2290 2
--with-build-time-tools=dirFor example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d2292 1 a2292 1 native tools in /usr/bin. d2294 4 a2297 4
When you use this option, you should ensure that dir includes
ar,as,ld,nm,ranlibandstripif necessary, and possiblyobjdump. Otherwise, GCC may use an inconsistent set of d2302 1 a2302 2Overriding
d2305 2 a2306 2configuretest resultsconfiguretest, for example in order to ease porting to a new system or work around a bug in a test. The toplevelconfigured2309 3 a2311 6
build_configargsThe contents of this variable is passed to all build
configurea2313 1 d2315 2 a2316 2host_configargsThe contents of this variable is passed to all host
configurea2318 1 d2320 2 a2321 2target_configargsThe contents of this variable is passed to all target
configured2327 2 a2328 2In order to avoid shell and
makequoting issues for complex overrides, you can pass a setting forCONFIG_SITEand set d2331 1 a2331 2Objective-C-Specific Options
d2335 2 a2336 2
- d2339 1 a2339 1 collector (https://www.hboehm.info/gc/). This library needs to be d2341 1 a2341 1 --enable-objc-gc=‘auto’ in which case the build of the d2346 3 a2348 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2350 4 a2353 4 libraries. list is a comma separated list of key value pairs of the form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’). d2355 2 a2356 2
--with-target-bdw-gc-lib=listThe options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together d2358 1 a2358 1 --with-target-bdw-gc. If --with-target-bdw-gc-include d2360 2 a2361 2 multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). d2367 1 a2367 2
D-Specific Options
d2371 4 a2374 4
--enable-libphobos-checking--disable-libphobos-checking- d2377 9 a2385 9 with ‘release’ checking. When the option is specified without a list, the result is the same as ‘--enable-libphobos-checking=yes’. Likewise, ‘--disable-libphobos-checking’ is equivalent to ‘--enable-libphobos-checking=no’.
--enable-libphobos-checking=listThe categories of checks available in list are ‘yes’ (compiles libphobos with -fno-release), ‘no’ (compiles libphobos with -frelease), ‘all’ (same as ‘yes’), ‘none’ or ‘release’ (same as ‘no’). d2387 2 a2388 2
Individual checks available in list are ‘assert’ (compiles libphobos with an extra option -fassert). d2391 2 a2392 2
--with-libphobos-druntime-only- d2396 2 a2397 2 in phobos. choice can be one of ‘auto’, ‘yes’, and ‘no’ where ‘auto’ is the default. d2399 1 a2399 1
--with-libphobos-druntime-only=choiceWhen the option is not specified, the default choice ‘auto’ means that it d2401 2 a2402 2 When the option is specified without a choice, the result is the same as ‘--with-libphobos-druntime-only=yes’. d2405 2 a2406 2
--with-target-system-zlibUse installed ‘zlib’ rather than that included with GCC. This needs d2408 2 a2409 2 --with-target-system-zlib=‘auto’ in which case the GCC included ‘zlib’ is only used when the system installed library is not available. d2415 1 a2415 1
Return to the GCC Installation page @ 1.18 log @merge GCC 12.5.0. XXX istream.cc may need more work. @ text @d3 1 a3 1
d22 3 a31 2 a33 1 a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} d36 2 d40 4 d49 4 a55 1 span:hover a.copiable-anchor {visibility: visible} d84 2 a85 2 d131 2 a132 2% mkdir objdir d137 2 a138 1Distributor options
d145 1 a145 1- d154 1 a154 1
--with-pkgversion=version- d162 1 a162 1
--with-bugurl=url- d169 1 a169 1
--with-documentation-root-url=url- d179 2 a180 1
--with-changes-root-url=urlHost, Build and Target specification
d204 2 a205 2./configure --host=x86_64-pc-linux-gnu d242 2 a243 1Options specification
d255 1 a255 1- d270 1 a270 1
--prefix=dirname- d275 1 a275 1
--exec-prefix=dirname- d281 1 a281 1
--bindir=dirname- d286 1 a286 1
--libdir=dirname- d291 1 a291 1
--libexecdir=dirname- d296 1 a296 1
--with-slibdir=dirname- d301 1 a301 1
--datarootdir=dirname- d306 1 a306 1
--infodir=dirname- d311 1 a311 1
--datadir=dirname- d316 1 a316 1
--docdir=dirname- d321 1 a321 1
--htmldir=dirname- d326 1 a326 1
--pdfdir=dirname- d334 1 a334 1
--mandir=dirname- d341 1 a341 1
--with-gxx-include-dir=dirname- d352 1 a352 1
--with-specs=specs- d360 1 a360 1
--program-prefix=prefix- d367 1 a367 1
--program-suffix=suffix- d400 1 a400 1
--program-transform-name=pattern- d473 1 a473 1
--with-local-prefix=dirname- d478 1 a478 1
--with-gcc-major-version-only- d487 1 a487 1
--with-native-system-header-dir=dirname- d508 1 a508 1
--enable-shared[=package[,…]]- d519 1 a519 1
--enable-host-shared- d542 1 a542 1
--with-gnu-as- d575 1 a575 1
--with-as=pathname- d580 1 a580 1
--with-gnu-ld- d585 1 a585 1
--with-ld=pathname- d590 1 a590 1
--with-dsymutil=pathname- d597 1 a597 1
--with-tls=dialect- d607 1 a607 1
--enable-multiarch- d613 1 a613 1
--enable-sjlj-exceptions- d626 1 a626 1
--enable-vtable-verify- d631 1 a631 1
--disable-gcov- d640 1 a640 1
--disable-multilib- d644 1 a644 1
arm-*-*- d648 1 a648 1
m68*-*-*- d652 1 a652 1
mips*-*-*- d656 1 a656 1
msp430-*-*- d664 2 a665 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d673 1 a673 1
--without-multilib-list- d683 1 a683 1
aarch64*-*-*- d745 1 a745 1
arm*-*-*- d754 1 a754 1
loongarch*-*-*- d762 1 a762 1
riscv*-*-*- d783 2 a784 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d789 2 a790 2--with-cpu=sh4a --with-endian=little,big \ d795 1 a795 1- d807 1 a807 1
x86-64-*-linux*- d817 2 a818 2
--with-multilib-generator=configrv32i-ilp32-- d822 2 a823 2rv32i-ilp32--;rv32imafd-ilp32-- d828 2 a829 2rv32i-ilp32-rv32im-c d834 2 a835 2rv64ima-lp64--f,c,fc d845 2 a846 2rv64ima-lp64--;--cmodel=medlow d851 2 a852 2rv64ima-lp64--;--cmodel=medlow,medany d856 1 a856 1- d862 1 a862 1
--with-endian=endians- d865 1 a865 1
big- d868 1 a868 1
little- d871 1 a871 1
big,little- d877 1 a877 1
little,big- d890 1 a890 1
--enable-threads- d895 1 a895 1
--disable-threads- d902 1 a902 1
--enable-threads=lib- d905 1 a905 1
aix- d908 1 a908 1
dce- d911 1 a911 1
lynx- d914 1 a914 1
mipssde- d917 1 a917 1
no- d920 1 a920 1
posix- d923 1 a923 1
rtems- d926 1 a926 1
single- d929 1 a929 1
tpf- d932 1 a932 1
vxworks- d938 1 a938 1
win32- d947 1 a947 1
--enable-tls- d952 1 a952 1
--disable-tls- d958 3 a960 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d970 10 a979 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d987 1 a987 1
--with-float=type- d992 1 a992 1
--with-mode=mode- d998 1 a998 1
--with-stack-offset=num- d1005 1 a1005 1
--with-fpmath=isa- d1009 1 a1009 1
--with-fp-32=mode- d1013 1 a1013 1
32- d1017 1 a1017 1
xx- d1026 1 a1026 1
64- d1031 1 a1031 1
--with-odd-spreg-32- d1037 1 a1037 1
--without-odd-spreg-32- d1042 1 a1042 1
--with-nan=encoding- d1046 1 a1046 1
legacy- d1058 1 a1058 1
2008- d1063 1 a1063 1
--with-divide=type- d1067 1 a1067 1
traps- d1074 1 a1074 1
breaks- d1081 1 a1081 1
--with-llsc- d1086 1 a1086 1
--without-llsc- d1091 1 a1091 1
--with-synci- d1096 1 a1096 1
--without-synci- d1101 1 a1101 1
--with-lxc1-sxc1- d1117 1 a1117 1
--without-lxc1-sxc1- d1122 1 a1122 1
--with-madd4- d1133 1 a1133 1
--without-madd4- d1140 1 a1140 1
--with-mips-plt- d1146 1 a1146 1
--with-stack-clash-protection-guard-size=size- d1151 1 a1151 1
--with-isa-spec=ISA-spec-string- d1154 1 a1154 1
2.2- d1157 1 a1157 1
20190608- d1164 1 a1164 1
20191213- d1173 1 a1173 1
--enable-__cxa_atexit- d1178 1 a1178 1
--enable-gnu-indirect-function- d1184 1 a1184 1
--enable-target-optspace- d1189 1 a1189 1
--with-cpp-install-dir=dirname- d1194 1 a1194 1
--enable-comdat- d1203 1 a1203 1
--enable-initfini-array- d1209 1 a1209 1
--enable-link-mutex- d1218 1 a1218 1
--enable-link-serialization- d1228 1 a1228 1
--enable-maintainer-mode- d1235 1 a1235 1
--disable-bootstrap- d1244 1 a1244 1
--enable-bootstrap- d1259 1 a1259 1
--enable-generated-files-in-srcdir- d1271 1 a1271 1
--enable-version-specific-runtime-libs- d1282 1 a1282 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1288 2 a1289 2
--with-aix-soname=aix- d1306 2 a1307 2
--with-aix-soname=both--with-aix-soname=both- d1345 1 a1345 1
--with-aix-soname=svr4- d1377 1 a1377 1
--with-aix-soname=svr4- d1382 2 a1383 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1399 1 a1399 1- d1415 1 a1415 1
--enable-stage1-languages=lang1,lang2,…- d1422 1 a1422 1
--disable-libada- d1427 1 a1427 1
--disable-libsanitizer- d1433 1 a1433 1
--disable-libssp- d1440 1 a1440 1
--disable-libquadmath- d1445 1 a1445 1
--disable-libquadmath-support- d1450 1 a1450 1
--disable-libgomp- d1455 1 a1455 1
--disable-libvtv- d1460 1 a1460 1
--with-dwarf2- d1469 2 a1470 2
--with-advance-toolchain=at--enable-targets=all- d1484 1 a1484 1
--enable-targets=target_list- d1488 1 a1488 1
--enable-default-pie- d1493 1 a1493 1
--enable-secureplt- d1497 1 a1497 1
--enable-default-ssp- d1502 1 a1502 1
--enable-cld- d1511 3 a1513 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1517 2 a1518 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1530 1 a1530 1- d1536 4 a1539 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1548 3 a1550 3
--enable-werror=no--enable-checking--disable-checking- d1588 3 a1590 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1602 2 a1603 2
--enable-stage1-checking=list--enable-coverage- d1614 1 a1614 1
--enable-coverage=level- d1620 1 a1620 1
--enable-gather-detailed-mem-stats- d1625 2 a1626 2
--enable-valgrind-annotations--enable-nls- d1633 1 a1633 1
--disable-nls- d1638 1 a1638 1
--with-included-gettext- d1646 1 a1646 1
--with-catgets- d1651 1 a1651 1
--with-libiconv-prefix=dir- d1662 6 a1667 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1678 2 a1679 2
--disable-decimal-float--enable-fixed-point- d1686 1 a1686 1
--disable-fixed-point- d1695 2 a1696 2
--with-long-double-128--with-long-double-format=ibm- d1714 1 a1714 1
--with-long-double-format=ieee- d1718 9 a1726 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1753 3 a1755 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1769 1 a1769 1
--with-isl-lib=pathname- d1777 1 a1777 1
--with-stage1-ldflags=flags- d1783 1 a1783 1
--with-stage1-libs=libs- d1790 1 a1790 1
--with-boot-ldflags=flags- d1795 1 a1795 1
--with-boot-libs=libs- d1801 1 a1801 1
--with-debug-prefix-map=map- d1810 1 a1810 1
--enable-linker-build-id- d1816 2 a1817 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1824 1 a1824 1
--disable-gnu-unique-object- d1834 1 a1834 1
--with-diagnostics-color=choice- d1844 2 a1845 2
--with-diagnostics-urls=choice--enable-lto- d1850 2 a1851 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1862 2 a1863 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1870 1 a1870 1- d1878 2 a1879 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1887 1 a1887 1
--disable-canonical-system-headers- d1900 1 a1900 1
--with-glibc-version=major.minor- d1904 1 a1904 1
--enable-as-accelerator-for=target- d1910 2 a1911 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1916 1 a1916 1- d1925 3 a1927 3
--enable-offload-defaulted--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1938 2 a1939 2
--with-hsa-runtime-lib=pathname--enable-cet- d1952 1 a1952 1
--disable-cet- d1960 2 a1961 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’--enable-s390-excess-float-precision- d1972 3 a1974 3
--disable-s390-excess-float-precision--with-zstd=pathname--with-zstd-include=pathname- d1989 2 a1990 1
--with-zstd-lib=pathnameCross-Compiler-Specific Options
d1994 1 a1994 1- d1999 2 a2000 2
--with-toolexeclibdir=dir--with-sysroot- d2024 2 a2025 2
--with-sysroot=dir--with-build-sysroot- d2043 2 a2044 2
--with-build-sysroot=dir--with-headers- d2056 1 a2056 1
--with-headers=dir- d2062 2 a2063 2
--without-headers--with-libs- d2071 1 a2071 1
--with-libs="dir1 dir2 … dirN"- d2079 1 a2079 1
--with-newlib- d2090 2 a2091 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d2118 1 a2118 1
--with-long-double={32|64|32,64|64,32|double}- d2126 1 a2126 1
--with-double-comparison={tristate|bool|libf7}- d2142 1 a2142 1
--with-libf7={libgcc|math|math-symbols|no}- d2148 1 a2148 1
--with-nds32-lib=library- d2167 2 a2168 1
--with-build-time-tools=dirOverriding
d2176 3 a2178 2configuretest resultsbuild_configargs¶The contents of this variable is passed to all build
configured2182 3 a2184 2host_configargs¶The contents of this variable is passed to all host
configured2188 3 a2190 2target_configargs¶The contents of this variable is passed to all target
configured2200 2 a2201 1Objective-C-Specific Options
d2206 1 a2206 1- d2216 3 a2218 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2237 2 a2238 1
--with-target-bdw-gc-lib=listD-Specific Options
d2243 3 a2245 3--enable-libphobos-checking--disable-libphobos-checking- d2262 2 a2263 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2276 1 a2276 1
--with-libphobos-druntime-only=choice- @ 1.16 log @initial merge of GCC 12.3.0. this doesn't include any of the changes to the .c -> .cc files renamed, and reverts our local changes to the vax port and libsanitizer subdir. vax GCC was rewritten and our local fixes no longer are relevant, and the new libsanitizer is more updated than our old one, and merging via gcc10->gcc12 is not really possible. unfortunately, our local changes to libsanitizer that aren't related to the general update of those sources (ie, the netbsd code) will need to be re-checked and perhaps re-ported. @ text @d3 3 a24 3 d32 2 d36 1 a38 2 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} blockquote.smallquotation {font-size: smaller} a40 4 div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} a45 4 pre.smalldisplay {font-family: inherit; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: inherit; font-size: smaller} pre.smalllisp {font-size: smaller} d49 1 d78 2 a79 2 d125 2 a126 2
--with-target-system-zlib% mkdir objdir d131 1 a131 2Distributor options
d138 1 a138 1- d147 1 a147 1
--with-pkgversion=version- d155 1 a155 1
--with-bugurl=url- d162 1 a162 1
--with-documentation-root-url=url- d172 1 a172 2
--with-changes-root-url=urlHost, Build and Target specification
d196 2 a197 2./configure --host=x86_64-pc-linux-gnu d234 1 a234 2Options specification
d246 1 a246 1- d261 1 a261 1
--prefix=dirname- d266 1 a266 1
--exec-prefix=dirname- d272 1 a272 1
--bindir=dirname- d277 1 a277 1
--libdir=dirname- d282 1 a282 1
--libexecdir=dirname- d287 1 a287 1
--with-slibdir=dirname- d292 1 a292 1
--datarootdir=dirname- d297 1 a297 1
--infodir=dirname- d302 1 a302 1
--datadir=dirname- d307 1 a307 1
--docdir=dirname- d312 1 a312 1
--htmldir=dirname- d317 1 a317 1
--pdfdir=dirname- d325 1 a325 1
--mandir=dirname- d332 1 a332 1
--with-gxx-include-dir=dirname- d343 1 a343 1
--with-specs=specs- d351 1 a351 1
--program-prefix=prefix- d358 1 a358 1
--program-suffix=suffix- d391 1 a391 1
--program-transform-name=pattern- d464 1 a464 1
--with-local-prefix=dirname- d469 1 a469 1
--with-gcc-major-version-only- d478 1 a478 1
--with-native-system-header-dir=dirname- d499 1 a499 1
--enable-shared[=package[,…]]- d510 1 a510 1
--enable-host-shared- d533 1 a533 1
--with-gnu-as- d566 1 a566 1
--with-as=pathname- d571 1 a571 1
--with-gnu-ld- d576 1 a576 1
--with-ld=pathname- d581 1 a581 1
--with-dsymutil=pathname- d588 1 a588 1
--with-tls=dialect- d598 1 a598 1
--enable-multiarch- d604 1 a604 1
--enable-sjlj-exceptions- d617 1 a617 1
--enable-vtable-verify- d622 1 a622 1
--disable-gcov- d631 1 a631 1
--disable-multilib- d635 1 a635 1
arm-*-*- d639 1 a639 1
m68*-*-*- d643 1 a643 1
mips*-*-*- d647 1 a647 1
msp430-*-*- d655 2 a656 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d664 1 a664 1
--without-multilib-list- d674 1 a674 1
aarch64*-*-*- d736 1 a736 1
arm*-*-*- d745 1 a745 1
loongarch*-*-*- d753 1 a753 1
riscv*-*-*- d774 2 a775 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d780 2 a781 2--with-cpu=sh4a --with-endian=little,big \ d786 1 a786 1- d798 1 a798 1
x86-64-*-linux*- d808 2 a809 2
--with-multilib-generator=configrv32i-ilp32-- d813 2 a814 2rv32i-ilp32--;rv32imafd-ilp32-- d819 2 a820 2rv32i-ilp32-rv32im-c d825 2 a826 2rv64ima-lp64--f,c,fc d836 2 a837 2rv64ima-lp64--;--cmodel=medlow d842 2 a843 2rv64ima-lp64--;--cmodel=medlow,medany d847 1 a847 1- d853 1 a853 1
--with-endian=endians- d856 1 a856 1
big- d859 1 a859 1
little- d862 1 a862 1
big,little- d868 1 a868 1
little,big- d881 1 a881 1
--enable-threads- d886 1 a886 1
--disable-threads- d893 1 a893 1
--enable-threads=lib- d896 1 a896 1
aix- d899 1 a899 1
dce- d902 1 a902 1
lynx- d905 1 a905 1
mipssde- d908 1 a908 1
no- d911 1 a911 1
posix- d914 1 a914 1
rtems- d917 1 a917 1
single- d920 1 a920 1
tpf- d923 1 a923 1
vxworks- d929 1 a929 1
win32- d938 1 a938 1
--enable-tls- d943 1 a943 1
--disable-tls- d949 3 a951 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d961 10 a970 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d978 1 a978 1
--with-float=type- d983 1 a983 1
--with-mode=mode- d989 1 a989 1
--with-stack-offset=num- d996 1 a996 1
--with-fpmath=isa- d1000 1 a1000 1
--with-fp-32=mode- d1004 1 a1004 1
32- d1008 1 a1008 1
xx- d1017 1 a1017 1
64- d1022 1 a1022 1
--with-odd-spreg-32- d1028 1 a1028 1
--without-odd-spreg-32- d1033 1 a1033 1
--with-nan=encoding- d1037 1 a1037 1
legacy- d1049 1 a1049 1
2008- d1054 1 a1054 1
--with-divide=type- d1058 1 a1058 1
traps- d1065 1 a1065 1
breaks- d1072 1 a1072 1
--with-llsc- d1077 1 a1077 1
--without-llsc- d1082 1 a1082 1
--with-synci- d1087 1 a1087 1
--without-synci- d1092 1 a1092 1
--with-lxc1-sxc1- d1108 1 a1108 1
--without-lxc1-sxc1- d1113 1 a1113 1
--with-madd4- d1124 1 a1124 1
--without-madd4- d1131 1 a1131 1
--with-mips-plt- d1137 1 a1137 1
--with-stack-clash-protection-guard-size=size- d1142 1 a1142 1
--with-isa-spec=ISA-spec-string- d1145 1 a1145 1
2.2- d1148 1 a1148 1
20190608- d1155 1 a1155 1
20191213- d1164 1 a1164 1
--enable-__cxa_atexit- d1169 1 a1169 1
--enable-gnu-indirect-function- d1175 1 a1175 1
--enable-target-optspace- d1180 1 a1180 1
--with-cpp-install-dir=dirname- d1185 1 a1185 1
--enable-comdat- d1194 1 a1194 1
--enable-initfini-array- d1200 1 a1200 1
--enable-link-mutex- d1209 1 a1209 1
--enable-link-serialization- d1219 1 a1219 1
--enable-maintainer-mode- d1226 1 a1226 1
--disable-bootstrap- d1235 1 a1235 1
--enable-bootstrap- d1250 1 a1250 1
--enable-generated-files-in-srcdir- d1262 1 a1262 1
--enable-version-specific-runtime-libs- d1273 1 a1273 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1279 2 a1280 2
--with-aix-soname=aix- d1297 2 a1298 2
--with-aix-soname=both--with-aix-soname=both- d1336 1 a1336 1
--with-aix-soname=svr4- d1368 1 a1368 1
--with-aix-soname=svr4- d1373 2 a1374 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1390 1 a1390 1- d1406 1 a1406 1
--enable-stage1-languages=lang1,lang2,…- d1413 1 a1413 1
--disable-libada- d1418 1 a1418 1
--disable-libsanitizer- d1424 1 a1424 1
--disable-libssp- d1431 1 a1431 1
--disable-libquadmath- d1436 1 a1436 1
--disable-libquadmath-support- d1441 1 a1441 1
--disable-libgomp- d1446 1 a1446 1
--disable-libvtv- d1451 1 a1451 1
--with-dwarf2- d1460 2 a1461 2
--with-advance-toolchain=at--enable-targets=all- d1475 1 a1475 1
--enable-targets=target_list- d1479 1 a1479 1
--enable-default-pie- d1484 1 a1484 1
--enable-secureplt- d1488 1 a1488 1
--enable-default-ssp- d1493 1 a1493 1
--enable-cld- d1502 3 a1504 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1508 2 a1509 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1521 1 a1521 1- d1527 4 a1530 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1539 3 a1541 3
--enable-werror=no--enable-checking--disable-checking- d1579 3 a1581 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1593 2 a1594 2
--enable-stage1-checking=list--enable-coverage- d1605 1 a1605 1
--enable-coverage=level- d1611 1 a1611 1
--enable-gather-detailed-mem-stats- d1616 2 a1617 2
--enable-valgrind-annotations--enable-nls- d1624 1 a1624 1
--disable-nls- d1629 1 a1629 1
--with-included-gettext- d1637 1 a1637 1
--with-catgets- d1642 1 a1642 1
--with-libiconv-prefix=dir- d1653 6 a1658 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1669 2 a1670 2
--disable-decimal-float--enable-fixed-point- d1677 1 a1677 1
--disable-fixed-point- d1686 2 a1687 2
--with-long-double-128--with-long-double-format=ibm- d1705 1 a1705 1
--with-long-double-format=ieee- d1709 9 a1717 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1744 3 a1746 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1760 1 a1760 1
--with-isl-lib=pathname- d1768 1 a1768 1
--with-stage1-ldflags=flags- d1774 1 a1774 1
--with-stage1-libs=libs- d1781 1 a1781 1
--with-boot-ldflags=flags- d1786 1 a1786 1
--with-boot-libs=libs- d1792 1 a1792 1
--with-debug-prefix-map=map- d1801 1 a1801 1
--enable-linker-build-id- d1807 2 a1808 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1815 1 a1815 1
--disable-gnu-unique-object- d1825 1 a1825 1
--with-diagnostics-color=choice- d1835 2 a1836 2
--with-diagnostics-urls=choice--enable-lto- d1841 2 a1842 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1853 2 a1854 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1861 1 a1861 1- d1869 2 a1870 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1878 1 a1878 1
--disable-canonical-system-headers- d1891 1 a1891 1
--with-glibc-version=major.minor- d1895 1 a1895 1
--enable-as-accelerator-for=target- d1901 2 a1902 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1907 1 a1907 1- d1916 3 a1918 3
--enable-offload-defaulted--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1929 2 a1930 2
--with-hsa-runtime-lib=pathname--enable-cet- d1943 1 a1943 1
--disable-cet- d1951 2 a1952 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’--enable-s390-excess-float-precision- d1963 3 a1965 3
--disable-s390-excess-float-precision--with-zstd=pathname--with-zstd-include=pathname- d1980 1 a1980 2
--with-zstd-lib=pathnameCross-Compiler-Specific Options
d1984 1 a1984 1- d1989 2 a1990 2
--with-toolexeclibdir=dir--with-sysroot- d2014 2 a2015 2
--with-sysroot=dir--with-build-sysroot- d2033 2 a2034 2
--with-build-sysroot=dir--with-headers- d2046 1 a2046 1
--with-headers=dir- d2052 2 a2053 2
--without-headers--with-libs- d2061 1 a2061 1
--with-libs="dir1 dir2 … dirN"- d2069 1 a2069 1
--with-newlib- d2080 2 a2081 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d2108 1 a2108 1
--with-long-double={32|64|32,64|64,32|double}- d2116 1 a2116 1
--with-double-comparison={tristate|bool|libf7}- d2132 1 a2132 1
--with-libf7={libgcc|math|math-symbols|no}- d2138 1 a2138 1
--with-nds32-lib=library- d2157 1 a2157 2
--with-build-time-tools=dirOverriding
d2165 2 a2166 3configuretest resultsbuild_configargsThe contents of this variable is passed to all build
configured2170 2 a2171 3host_configargsThe contents of this variable is passed to all host
configured2175 2 a2176 3target_configargsThe contents of this variable is passed to all target
configured2186 1 a2186 2Objective-C-Specific Options
d2191 1 a2191 1- d2201 3 a2203 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2222 1 a2222 2
--with-target-bdw-gc-lib=listD-Specific Options
d2227 3 a2229 3--enable-libphobos-checking--disable-libphobos-checking- d2246 2 a2247 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2260 1 a2260 1
--with-libphobos-druntime-only=choice- @ 1.16.2.1 log @Sync with HEAD. @ text @a2 3 d22 3 a31 2 a33 1 a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} d36 2 d40 4 d49 4 a55 1 span:hover a.copiable-anchor {visibility: visible} d84 2 a85 2 d131 2 a132 2
--with-target-system-zlib% mkdir objdir d137 2 a138 1Distributor options
d145 1 a145 1- d154 1 a154 1
--with-pkgversion=version- d162 1 a162 1
--with-bugurl=url- d169 1 a169 1
--with-documentation-root-url=url- d179 2 a180 1
--with-changes-root-url=urlHost, Build and Target specification
d204 2 a205 2./configure --host=x86_64-pc-linux-gnu d242 2 a243 1Options specification
d255 1 a255 1- d270 1 a270 1
--prefix=dirname- d275 1 a275 1
--exec-prefix=dirname- d281 1 a281 1
--bindir=dirname- d286 1 a286 1
--libdir=dirname- d291 1 a291 1
--libexecdir=dirname- d296 1 a296 1
--with-slibdir=dirname- d301 1 a301 1
--datarootdir=dirname- d306 1 a306 1
--infodir=dirname- d311 1 a311 1
--datadir=dirname- d316 1 a316 1
--docdir=dirname- d321 1 a321 1
--htmldir=dirname- d326 1 a326 1
--pdfdir=dirname- d334 1 a334 1
--mandir=dirname- d341 1 a341 1
--with-gxx-include-dir=dirname- d352 1 a352 1
--with-specs=specs- d360 1 a360 1
--program-prefix=prefix- d367 1 a367 1
--program-suffix=suffix- d400 1 a400 1
--program-transform-name=pattern- d473 1 a473 1
--with-local-prefix=dirname- d478 1 a478 1
--with-gcc-major-version-only- d487 1 a487 1
--with-native-system-header-dir=dirname- d508 1 a508 1
--enable-shared[=package[,…]]- d519 1 a519 1
--enable-host-shared- d542 1 a542 1
--with-gnu-as- d575 1 a575 1
--with-as=pathname- d580 1 a580 1
--with-gnu-ld- d585 1 a585 1
--with-ld=pathname- d590 1 a590 1
--with-dsymutil=pathname- d597 1 a597 1
--with-tls=dialect- d607 1 a607 1
--enable-multiarch- d613 1 a613 1
--enable-sjlj-exceptions- d626 1 a626 1
--enable-vtable-verify- d631 1 a631 1
--disable-gcov- d640 1 a640 1
--disable-multilib- d644 1 a644 1
arm-*-*- d648 1 a648 1
m68*-*-*- d652 1 a652 1
mips*-*-*- d656 1 a656 1
msp430-*-*- d664 2 a665 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d673 1 a673 1
--without-multilib-list- d683 1 a683 1
aarch64*-*-*- d745 1 a745 1
arm*-*-*- d754 1 a754 1
loongarch*-*-*- d762 1 a762 1
riscv*-*-*- d783 2 a784 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d789 2 a790 2--with-cpu=sh4a --with-endian=little,big \ d795 1 a795 1- d807 1 a807 1
x86-64-*-linux*- d817 2 a818 2
--with-multilib-generator=configrv32i-ilp32-- d822 2 a823 2rv32i-ilp32--;rv32imafd-ilp32-- d828 2 a829 2rv32i-ilp32-rv32im-c d834 2 a835 2rv64ima-lp64--f,c,fc d845 2 a846 2rv64ima-lp64--;--cmodel=medlow d851 2 a852 2rv64ima-lp64--;--cmodel=medlow,medany d856 1 a856 1- d862 1 a862 1
--with-endian=endians- d865 1 a865 1
big- d868 1 a868 1
little- d871 1 a871 1
big,little- d877 1 a877 1
little,big- d890 1 a890 1
--enable-threads- d895 1 a895 1
--disable-threads- d902 1 a902 1
--enable-threads=lib- d905 1 a905 1
aix- d908 1 a908 1
dce- d911 1 a911 1
lynx- d914 1 a914 1
mipssde- d917 1 a917 1
no- d920 1 a920 1
posix- d923 1 a923 1
rtems- d926 1 a926 1
single- d929 1 a929 1
tpf- d932 1 a932 1
vxworks- d938 1 a938 1
win32- d947 1 a947 1
--enable-tls- d952 1 a952 1
--disable-tls- d958 3 a960 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d970 10 a979 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d987 1 a987 1
--with-float=type- d992 1 a992 1
--with-mode=mode- d998 1 a998 1
--with-stack-offset=num- d1005 1 a1005 1
--with-fpmath=isa- d1009 1 a1009 1
--with-fp-32=mode- d1013 1 a1013 1
32- d1017 1 a1017 1
xx- d1026 1 a1026 1
64- d1031 1 a1031 1
--with-odd-spreg-32- d1037 1 a1037 1
--without-odd-spreg-32- d1042 1 a1042 1
--with-nan=encoding- d1046 1 a1046 1
legacy- d1058 1 a1058 1
2008- d1063 1 a1063 1
--with-divide=type- d1067 1 a1067 1
traps- d1074 1 a1074 1
breaks- d1081 1 a1081 1
--with-llsc- d1086 1 a1086 1
--without-llsc- d1091 1 a1091 1
--with-synci- d1096 1 a1096 1
--without-synci- d1101 1 a1101 1
--with-lxc1-sxc1- d1117 1 a1117 1
--without-lxc1-sxc1- d1122 1 a1122 1
--with-madd4- d1133 1 a1133 1
--without-madd4- d1140 1 a1140 1
--with-mips-plt- d1146 1 a1146 1
--with-stack-clash-protection-guard-size=size- d1151 1 a1151 1
--with-isa-spec=ISA-spec-string- d1154 1 a1154 1
2.2- d1157 1 a1157 1
20190608- d1164 1 a1164 1
20191213- d1173 1 a1173 1
--enable-__cxa_atexit- d1178 1 a1178 1
--enable-gnu-indirect-function- d1184 1 a1184 1
--enable-target-optspace- d1189 1 a1189 1
--with-cpp-install-dir=dirname- d1194 1 a1194 1
--enable-comdat- d1203 1 a1203 1
--enable-initfini-array- d1209 1 a1209 1
--enable-link-mutex- d1218 1 a1218 1
--enable-link-serialization- d1228 1 a1228 1
--enable-maintainer-mode- d1235 1 a1235 1
--disable-bootstrap- d1244 1 a1244 1
--enable-bootstrap- d1259 1 a1259 1
--enable-generated-files-in-srcdir- d1271 1 a1271 1
--enable-version-specific-runtime-libs- d1282 1 a1282 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1288 2 a1289 2
--with-aix-soname=aix- d1306 2 a1307 2
--with-aix-soname=both--with-aix-soname=both- d1345 1 a1345 1
--with-aix-soname=svr4- d1377 1 a1377 1
--with-aix-soname=svr4- d1382 2 a1383 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1399 1 a1399 1- d1415 1 a1415 1
--enable-stage1-languages=lang1,lang2,…- d1422 1 a1422 1
--disable-libada- d1427 1 a1427 1
--disable-libsanitizer- d1433 1 a1433 1
--disable-libssp- d1440 1 a1440 1
--disable-libquadmath- d1445 1 a1445 1
--disable-libquadmath-support- d1450 1 a1450 1
--disable-libgomp- d1455 1 a1455 1
--disable-libvtv- d1460 1 a1460 1
--with-dwarf2- d1469 2 a1470 2
--with-advance-toolchain=at--enable-targets=all- d1484 1 a1484 1
--enable-targets=target_list- d1488 1 a1488 1
--enable-default-pie- d1493 1 a1493 1
--enable-secureplt- d1497 1 a1497 1
--enable-default-ssp- d1502 1 a1502 1
--enable-cld- d1511 3 a1513 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1517 2 a1518 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1530 1 a1530 1- d1536 4 a1539 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1548 3 a1550 3
--enable-werror=no--enable-checking--disable-checking- d1588 3 a1590 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1602 2 a1603 2
--enable-stage1-checking=list--enable-coverage- d1614 1 a1614 1
--enable-coverage=level- d1620 1 a1620 1
--enable-gather-detailed-mem-stats- d1625 2 a1626 2
--enable-valgrind-annotations--enable-nls- d1633 1 a1633 1
--disable-nls- d1638 1 a1638 1
--with-included-gettext- d1646 1 a1646 1
--with-catgets- d1651 1 a1651 1
--with-libiconv-prefix=dir- d1662 6 a1667 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1678 2 a1679 2
--disable-decimal-float--enable-fixed-point- d1686 1 a1686 1
--disable-fixed-point- d1695 2 a1696 2
--with-long-double-128--with-long-double-format=ibm- d1714 1 a1714 1
--with-long-double-format=ieee- d1718 9 a1726 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1753 3 a1755 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1769 1 a1769 1
--with-isl-lib=pathname- d1777 1 a1777 1
--with-stage1-ldflags=flags- d1783 1 a1783 1
--with-stage1-libs=libs- d1790 1 a1790 1
--with-boot-ldflags=flags- d1795 1 a1795 1
--with-boot-libs=libs- d1801 1 a1801 1
--with-debug-prefix-map=map- d1810 1 a1810 1
--enable-linker-build-id- d1816 2 a1817 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1824 1 a1824 1
--disable-gnu-unique-object- d1834 1 a1834 1
--with-diagnostics-color=choice- d1844 2 a1845 2
--with-diagnostics-urls=choice--enable-lto- d1850 2 a1851 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1862 2 a1863 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1870 1 a1870 1- d1878 2 a1879 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1887 1 a1887 1
--disable-canonical-system-headers- d1900 1 a1900 1
--with-glibc-version=major.minor- d1904 1 a1904 1
--enable-as-accelerator-for=target- d1910 2 a1911 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1916 1 a1916 1- d1925 3 a1927 3
--enable-offload-defaulted--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1938 2 a1939 2
--with-hsa-runtime-lib=pathname--enable-cet- d1952 1 a1952 1
--disable-cet- d1960 2 a1961 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’--enable-s390-excess-float-precision- d1972 3 a1974 3
--disable-s390-excess-float-precision--with-zstd=pathname--with-zstd-include=pathname- d1989 2 a1990 1
--with-zstd-lib=pathnameCross-Compiler-Specific Options
d1994 1 a1994 1- d1999 2 a2000 2
--with-toolexeclibdir=dir--with-sysroot- d2024 2 a2025 2
--with-sysroot=dir--with-build-sysroot- d2043 2 a2044 2
--with-build-sysroot=dir--with-headers- d2056 1 a2056 1
--with-headers=dir- d2062 2 a2063 2
--without-headers--with-libs- d2071 1 a2071 1
--with-libs="dir1 dir2 … dirN"- d2079 1 a2079 1
--with-newlib- d2090 2 a2091 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d2118 1 a2118 1
--with-long-double={32|64|32,64|64,32|double}- d2126 1 a2126 1
--with-double-comparison={tristate|bool|libf7}- d2142 1 a2142 1
--with-libf7={libgcc|math|math-symbols|no}- d2148 1 a2148 1
--with-nds32-lib=library- d2167 2 a2168 1
--with-build-time-tools=dirOverriding
d2176 3 a2178 2configuretest resultsbuild_configargs¶The contents of this variable is passed to all build
configured2182 3 a2184 2host_configargs¶The contents of this variable is passed to all host
configured2188 3 a2190 2target_configargs¶The contents of this variable is passed to all target
configured2200 2 a2201 1Objective-C-Specific Options
d2206 1 a2206 1- d2216 3 a2218 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2237 2 a2238 1
--with-target-bdw-gc-lib=listD-Specific Options
d2243 3 a2245 3--enable-libphobos-checking--disable-libphobos-checking- d2262 2 a2263 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2276 1 a2276 1
--with-libphobos-druntime-only=choice- @ 1.16.2.2 log @Sync with HEAD @ text @d3 3 a24 3 d32 2 d36 1 a38 2 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} blockquote.smallquotation {font-size: smaller} a40 4 div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} a45 4 pre.smalldisplay {font-family: inherit; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: inherit; font-size: smaller} pre.smalllisp {font-size: smaller} d49 1 d78 2 a79 2 d125 2 a126 2
--with-target-system-zlib% mkdir objdir d131 1 a131 2Distributor options
d138 1 a138 1- d147 1 a147 1
--with-pkgversion=version- d155 1 a155 1
--with-bugurl=url- d162 1 a162 1
--with-documentation-root-url=url- d172 1 a172 2
--with-changes-root-url=urlHost, Build and Target specification
d196 2 a197 2./configure --host=x86_64-pc-linux-gnu d234 1 a234 2Options specification
d246 1 a246 1- d261 1 a261 1
--prefix=dirname- d266 1 a266 1
--exec-prefix=dirname- d272 1 a272 1
--bindir=dirname- d277 1 a277 1
--libdir=dirname- d282 1 a282 1
--libexecdir=dirname- d287 1 a287 1
--with-slibdir=dirname- d292 1 a292 1
--datarootdir=dirname- d297 1 a297 1
--infodir=dirname- d302 1 a302 1
--datadir=dirname- d307 1 a307 1
--docdir=dirname- d312 1 a312 1
--htmldir=dirname- d317 1 a317 1
--pdfdir=dirname- d325 1 a325 1
--mandir=dirname- d332 1 a332 1
--with-gxx-include-dir=dirname- d343 1 a343 1
--with-specs=specs- d351 1 a351 1
--program-prefix=prefix- d358 1 a358 1
--program-suffix=suffix- d391 1 a391 1
--program-transform-name=pattern- d464 1 a464 1
--with-local-prefix=dirname- d469 1 a469 1
--with-gcc-major-version-only- d478 1 a478 1
--with-native-system-header-dir=dirname- d499 1 a499 1
--enable-shared[=package[,…]]- d510 1 a510 1
--enable-host-shared- d533 1 a533 1
--with-gnu-as- d566 1 a566 1
--with-as=pathname- d571 1 a571 1
--with-gnu-ld- d576 1 a576 1
--with-ld=pathname- d581 1 a581 1
--with-dsymutil=pathname- d588 1 a588 1
--with-tls=dialect- d598 1 a598 1
--enable-multiarch- d604 1 a604 1
--enable-sjlj-exceptions- d617 1 a617 1
--enable-vtable-verify- d622 1 a622 1
--disable-gcov- d631 1 a631 1
--disable-multilib- d635 1 a635 1
arm-*-*- d639 1 a639 1
m68*-*-*- d643 1 a643 1
mips*-*-*- d647 1 a647 1
msp430-*-*- d655 2 a656 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d664 1 a664 1
--without-multilib-list- d674 1 a674 1
aarch64*-*-*- d736 1 a736 1
arm*-*-*- d745 1 a745 1
loongarch*-*-*- d753 1 a753 1
riscv*-*-*- d774 2 a775 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d780 2 a781 2--with-cpu=sh4a --with-endian=little,big \ d786 1 a786 1- d798 1 a798 1
x86-64-*-linux*- d808 2 a809 2
--with-multilib-generator=configrv32i-ilp32-- d813 2 a814 2rv32i-ilp32--;rv32imafd-ilp32-- d819 2 a820 2rv32i-ilp32-rv32im-c d825 2 a826 2rv64ima-lp64--f,c,fc d836 2 a837 2rv64ima-lp64--;--cmodel=medlow d842 2 a843 2rv64ima-lp64--;--cmodel=medlow,medany d847 1 a847 1- d853 1 a853 1
--with-endian=endians- d856 1 a856 1
big- d859 1 a859 1
little- d862 1 a862 1
big,little- d868 1 a868 1
little,big- d881 1 a881 1
--enable-threads- d886 1 a886 1
--disable-threads- d893 1 a893 1
--enable-threads=lib- d896 1 a896 1
aix- d899 1 a899 1
dce- d902 1 a902 1
lynx- d905 1 a905 1
mipssde- d908 1 a908 1
no- d911 1 a911 1
posix- d914 1 a914 1
rtems- d917 1 a917 1
single- d920 1 a920 1
tpf- d923 1 a923 1
vxworks- d929 1 a929 1
win32- d938 1 a938 1
--enable-tls- d943 1 a943 1
--disable-tls- d949 3 a951 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d961 10 a970 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d978 1 a978 1
--with-float=type- d983 1 a983 1
--with-mode=mode- d989 1 a989 1
--with-stack-offset=num- d996 1 a996 1
--with-fpmath=isa- d1000 1 a1000 1
--with-fp-32=mode- d1004 1 a1004 1
32- d1008 1 a1008 1
xx- d1017 1 a1017 1
64- d1022 1 a1022 1
--with-odd-spreg-32- d1028 1 a1028 1
--without-odd-spreg-32- d1033 1 a1033 1
--with-nan=encoding- d1037 1 a1037 1
legacy- d1049 1 a1049 1
2008- d1054 1 a1054 1
--with-divide=type- d1058 1 a1058 1
traps- d1065 1 a1065 1
breaks- d1072 1 a1072 1
--with-llsc- d1077 1 a1077 1
--without-llsc- d1082 1 a1082 1
--with-synci- d1087 1 a1087 1
--without-synci- d1092 1 a1092 1
--with-lxc1-sxc1- d1108 1 a1108 1
--without-lxc1-sxc1- d1113 1 a1113 1
--with-madd4- d1124 1 a1124 1
--without-madd4- d1131 1 a1131 1
--with-mips-plt- d1137 1 a1137 1
--with-stack-clash-protection-guard-size=size- d1142 1 a1142 1
--with-isa-spec=ISA-spec-string- d1145 1 a1145 1
2.2- d1148 1 a1148 1
20190608- d1155 1 a1155 1
20191213- d1164 1 a1164 1
--enable-__cxa_atexit- d1169 1 a1169 1
--enable-gnu-indirect-function- d1175 1 a1175 1
--enable-target-optspace- d1180 1 a1180 1
--with-cpp-install-dir=dirname- d1185 1 a1185 1
--enable-comdat- d1194 1 a1194 1
--enable-initfini-array- d1200 1 a1200 1
--enable-link-mutex- d1209 1 a1209 1
--enable-link-serialization- d1219 1 a1219 1
--enable-maintainer-mode- d1226 1 a1226 1
--disable-bootstrap- d1235 1 a1235 1
--enable-bootstrap- d1250 1 a1250 1
--enable-generated-files-in-srcdir- d1262 1 a1262 1
--enable-version-specific-runtime-libs- d1273 1 a1273 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1279 2 a1280 2
--with-aix-soname=aix- d1297 2 a1298 2
--with-aix-soname=both--with-aix-soname=both- d1336 1 a1336 1
--with-aix-soname=svr4- d1368 1 a1368 1
--with-aix-soname=svr4- d1373 2 a1374 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1390 1 a1390 1- d1406 1 a1406 1
--enable-stage1-languages=lang1,lang2,…- d1413 1 a1413 1
--disable-libada- d1418 1 a1418 1
--disable-libsanitizer- d1424 1 a1424 1
--disable-libssp- d1431 1 a1431 1
--disable-libquadmath- d1436 1 a1436 1
--disable-libquadmath-support- d1441 1 a1441 1
--disable-libgomp- d1446 1 a1446 1
--disable-libvtv- d1451 1 a1451 1
--with-dwarf2- d1460 2 a1461 2
--with-advance-toolchain=at--enable-targets=all- d1475 1 a1475 1
--enable-targets=target_list- d1479 1 a1479 1
--enable-default-pie- d1484 1 a1484 1
--enable-secureplt- d1488 1 a1488 1
--enable-default-ssp- d1493 1 a1493 1
--enable-cld- d1502 3 a1504 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1508 2 a1509 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1521 1 a1521 1- d1527 4 a1530 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1539 3 a1541 3
--enable-werror=no--enable-checking--disable-checking- d1579 3 a1581 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1593 2 a1594 2
--enable-stage1-checking=list--enable-coverage- d1605 1 a1605 1
--enable-coverage=level- d1611 1 a1611 1
--enable-gather-detailed-mem-stats- d1616 2 a1617 2
--enable-valgrind-annotations--enable-nls- d1624 1 a1624 1
--disable-nls- d1629 1 a1629 1
--with-included-gettext- d1637 1 a1637 1
--with-catgets- d1642 1 a1642 1
--with-libiconv-prefix=dir- d1653 6 a1658 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1669 2 a1670 2
--disable-decimal-float--enable-fixed-point- d1677 1 a1677 1
--disable-fixed-point- d1686 2 a1687 2
--with-long-double-128--with-long-double-format=ibm- d1705 1 a1705 1
--with-long-double-format=ieee- d1709 9 a1717 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1744 3 a1746 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1760 1 a1760 1
--with-isl-lib=pathname- d1768 1 a1768 1
--with-stage1-ldflags=flags- d1774 1 a1774 1
--with-stage1-libs=libs- d1781 1 a1781 1
--with-boot-ldflags=flags- d1786 1 a1786 1
--with-boot-libs=libs- d1792 1 a1792 1
--with-debug-prefix-map=map- d1801 1 a1801 1
--enable-linker-build-id- d1807 2 a1808 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1815 1 a1815 1
--disable-gnu-unique-object- d1825 1 a1825 1
--with-diagnostics-color=choice- d1835 2 a1836 2
--with-diagnostics-urls=choice--enable-lto- d1841 2 a1842 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1853 2 a1854 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1861 1 a1861 1- d1869 2 a1870 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1878 1 a1878 1
--disable-canonical-system-headers- d1891 1 a1891 1
--with-glibc-version=major.minor- d1895 1 a1895 1
--enable-as-accelerator-for=target- d1901 2 a1902 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1907 1 a1907 1- d1916 3 a1918 3
--enable-offload-defaulted--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1929 2 a1930 2
--with-hsa-runtime-lib=pathname--enable-cet- d1943 1 a1943 1
--disable-cet- d1951 2 a1952 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’--enable-s390-excess-float-precision- d1963 3 a1965 3
--disable-s390-excess-float-precision--with-zstd=pathname--with-zstd-include=pathname- d1980 1 a1980 2
--with-zstd-lib=pathnameCross-Compiler-Specific Options
d1984 1 a1984 1- d1989 2 a1990 2
--with-toolexeclibdir=dir--with-sysroot- d2014 2 a2015 2
--with-sysroot=dir--with-build-sysroot- d2033 2 a2034 2
--with-build-sysroot=dir--with-headers- d2046 1 a2046 1
--with-headers=dir- d2052 2 a2053 2
--without-headers--with-libs- d2061 1 a2061 1
--with-libs="dir1 dir2 … dirN"- d2069 1 a2069 1
--with-newlib- d2080 2 a2081 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d2108 1 a2108 1
--with-long-double={32|64|32,64|64,32|double}- d2116 1 a2116 1
--with-double-comparison={tristate|bool|libf7}- d2132 1 a2132 1
--with-libf7={libgcc|math|math-symbols|no}- d2138 1 a2138 1
--with-nds32-lib=library- d2157 1 a2157 2
--with-build-time-tools=dirOverriding
d2165 2 a2166 3configuretest resultsbuild_configargsThe contents of this variable is passed to all build
configured2170 2 a2171 3host_configargsThe contents of this variable is passed to all host
configured2175 2 a2176 3target_configargsThe contents of this variable is passed to all target
configured2186 1 a2186 2Objective-C-Specific Options
d2191 1 a2191 1- d2201 3 a2203 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2222 1 a2222 2
--with-target-bdw-gc-lib=listD-Specific Options
d2227 3 a2229 3--enable-libphobos-checking--disable-libphobos-checking- d2246 2 a2247 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2260 1 a2260 1
--with-libphobos-druntime-only=choice- @ 1.16.2.3 log @Sync with HEAD @ text @d1 1 a1 1 d3 1 a3 4 d22 3 a31 2 a33 1 a.copiable-anchor {visibility: hidden; text-decoration: none; line-height: 0em} d36 2 d40 4 d49 4 a55 1 span:hover a.copiable-anchor {visibility: visible} d84 2 a85 2 d131 2 a132 2
--with-target-system-zlib% mkdir objdir d137 2 a138 1Distributor options
d145 1 a145 1- d154 1 a154 1
--with-pkgversion=version- d162 1 a162 1
--with-bugurl=url- d169 1 a169 1
--with-documentation-root-url=url- d179 2 a180 1
--with-changes-root-url=urlTarget specification
d195 2 a196 1Options specification
d208 1 a208 1- d223 1 a223 1
--prefix=dirname- d228 1 a228 1
--exec-prefix=dirname- d234 1 a234 1
--bindir=dirname- d239 1 a239 1
--libdir=dirname- d244 1 a244 1
--libexecdir=dirname- d249 1 a249 1
--with-slibdir=dirname- d254 1 a254 1
--datarootdir=dirname- d259 1 a259 1
--infodir=dirname- d264 1 a264 1
--datadir=dirname- d269 1 a269 1
--docdir=dirname- d274 1 a274 1
--htmldir=dirname- d279 1 a279 1
--pdfdir=dirname- d287 1 a287 1
--mandir=dirname- d294 1 a294 1
--with-gxx-include-dir=dirname- d305 1 a305 1
--with-specs=specs- d313 1 a313 1
--program-prefix=prefix- d320 1 a320 1
--program-suffix=suffix- d353 1 a353 1
--program-transform-name=pattern- d426 1 a426 1
--with-local-prefix=dirname- d431 1 a431 1
--with-gcc-major-version-only- d440 1 a440 1
--with-native-system-header-dir=dirname- d461 1 a461 1
--enable-shared[=package[,…]]- d472 1 a472 1
--enable-host-shared- d495 1 a495 1
--with-gnu-as- d528 1 a528 1
--with-as=pathname- d533 1 a533 1
--with-gnu-ld- d538 1 a538 1
--with-ld=pathname- d543 1 a543 1
--with-dsymutil=pathname- d549 1 a549 1
--with-stabs- d556 1 a556 1
--with-tls=dialect- d566 1 a566 1
--enable-multiarch- d572 1 a572 1
--enable-sjlj-exceptions- d585 1 a585 1
--enable-vtable-verify- d590 1 a590 1
--disable-gcov- d599 1 a599 1
--disable-multilib- d603 1 a603 1
arm-*-*- d607 1 a607 1
m68*-*-*- d611 1 a611 1
mips*-*-*- d615 1 a615 1
msp430-*-*- d623 2 a624 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d631 1 a631 1
--without-multilib-list- d641 1 a641 1
aarch64*-*-*- d703 1 a703 1
arm*-*-*- d711 1 a711 1
riscv*-*-*- d732 2 a733 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d738 2 a739 2--with-cpu=sh4a --with-endian=little,big \ d744 1 a744 1- d756 1 a756 1
x86-64-*-linux*- d762 1 a762 1
--with-endian=endians- d765 1 a765 1
big- d768 1 a768 1
little- d771 1 a771 1
big,little- d777 1 a777 1
little,big- d790 1 a790 1
--enable-threads- d795 1 a795 1
--disable-threads- d802 1 a802 1
--enable-threads=lib- d805 1 a805 1
aix- d808 1 a808 1
dce- d811 1 a811 1
lynx- d814 1 a814 1
mipssde- d817 1 a817 1
no- d820 1 a820 1
posix- d823 1 a823 1
rtems- d826 1 a826 1
single- d829 1 a829 1
tpf- d832 1 a832 1
vxworks- d838 1 a838 1
win32- d847 1 a847 1
--enable-tls- d852 1 a852 1
--disable-tls- d858 3 a860 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d870 10 a879 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d887 1 a887 1
--with-float=type- d892 1 a892 1
--with-mode=mode- d898 1 a898 1
--with-stack-offset=num- d905 1 a905 1
--with-fpmath=isa- d909 1 a909 1
--with-fp-32=mode- d913 1 a913 1
32- d917 1 a917 1
xx- d926 1 a926 1
64- d931 1 a931 1
--with-odd-spreg-32- d937 1 a937 1
--without-odd-spreg-32- d942 1 a942 1
--with-nan=encoding- d946 1 a946 1
legacy- d958 1 a958 1
2008- d963 1 a963 1
--with-divide=type- d967 1 a967 1
traps- d974 1 a974 1
breaks- d981 1 a981 1
--with-llsc- d986 1 a986 1
--without-llsc- d991 1 a991 1
--with-synci- d996 1 a996 1
--without-synci- d1001 1 a1001 1
--with-lxc1-sxc1- d1017 1 a1017 1
--without-lxc1-sxc1- d1022 1 a1022 1
--with-madd4- d1033 1 a1033 1
--without-madd4- d1040 1 a1040 1
--with-mips-plt- d1046 1 a1046 1
--with-stack-clash-protection-guard-size=size- d1055 1 a1055 1
--enable-__cxa_atexit- d1060 1 a1060 1
--enable-gnu-indirect-function- d1066 1 a1066 1
--enable-target-optspace- d1071 1 a1071 1
--with-cpp-install-dir=dirname- d1076 1 a1076 1
--enable-comdat- d1085 1 a1085 1
--enable-initfini-array- d1091 1 a1091 1
--enable-link-mutex- d1101 1 a1101 1
--enable-maintainer-mode- d1108 1 a1108 1
--disable-bootstrap- d1117 1 a1117 1
--enable-bootstrap- d1132 1 a1132 1
--enable-generated-files-in-srcdir- d1144 1 a1144 1
--enable-version-specific-runtime-libs- d1155 1 a1155 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1161 2 a1162 2
--with-aix-soname=aix- d1179 2 a1180 2
--with-aix-soname=both--with-aix-soname=both- d1218 1 a1218 1
--with-aix-soname=svr4- d1250 1 a1250 1
--with-aix-soname=svr4- d1255 2 a1256 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1272 1 a1272 1- d1288 1 a1288 1
--enable-stage1-languages=lang1,lang2,…- d1295 1 a1295 1
--disable-libada- d1300 1 a1300 1
--disable-libsanitizer- d1306 1 a1306 1
--disable-libssp- d1313 1 a1313 1
--disable-libquadmath- d1318 1 a1318 1
--disable-libquadmath-support- d1323 1 a1323 1
--disable-libgomp- d1328 1 a1328 1
--disable-libvtv- d1333 1 a1333 1
--with-dwarf2- d1342 2 a1343 2
--with-advance-toolchain=at--enable-targets=all- d1357 1 a1357 1
--enable-targets=target_list- d1361 1 a1361 1
--enable-default-pie- d1366 1 a1366 1
--enable-secureplt- d1370 1 a1370 1
--enable-default-ssp- d1375 1 a1375 1
--enable-cld- d1384 3 a1386 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1390 2 a1391 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1403 1 a1403 1- d1409 4 a1412 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1421 3 a1423 3
--enable-werror=no--enable-checking--disable-checking- d1461 3 a1463 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1475 2 a1476 2
--enable-stage1-checking=list--enable-coverage- d1487 1 a1487 1
--enable-coverage=level- d1493 1 a1493 1
--enable-gather-detailed-mem-stats- d1498 2 a1499 2
--enable-valgrind-annotations--enable-nls- d1506 1 a1506 1
--disable-nls- d1511 1 a1511 1
--with-included-gettext- d1519 1 a1519 1
--with-catgets- d1524 1 a1524 1
--with-libiconv-prefix=dir- d1535 6 a1540 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1551 2 a1552 2
--disable-decimal-float--enable-fixed-point- d1559 1 a1559 1
--disable-fixed-point- d1568 2 a1569 2
--with-long-double-128--with-long-double-format=ibm- d1598 1 a1598 1
--with-long-double-format=ieee- d1602 9 a1610 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1637 3 a1639 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1653 1 a1653 1
--with-isl-lib=pathname- d1661 1 a1661 1
--with-stage1-ldflags=flags- d1667 1 a1667 1
--with-stage1-libs=libs- d1674 1 a1674 1
--with-boot-ldflags=flags- d1679 1 a1679 1
--with-boot-libs=libs- d1685 1 a1685 1
--with-debug-prefix-map=map- d1694 1 a1694 1
--enable-linker-build-id- d1700 2 a1701 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1708 1 a1708 1
--disable-gnu-unique-object- d1718 1 a1718 1
--with-diagnostics-color=choice- d1728 2 a1729 2
--with-diagnostics-urls=choice--enable-lto- d1734 2 a1735 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1746 2 a1747 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1754 1 a1754 1- d1762 2 a1763 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1771 1 a1771 1
--disable-canonical-system-headers- d1784 1 a1784 1
--with-glibc-version=major.minor- d1788 1 a1788 1
--enable-as-accelerator-for=target- d1794 2 a1795 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1804 3 a1806 3--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1817 2 a1818 2
--with-hsa-runtime-lib=pathname--enable-cet- d1832 1 a1832 1
--disable-cet- d1841 2 a1842 1
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’Cross-Compiler-Specific Options
d1846 1 a1846 1- d1851 2 a1852 2
--with-toolexeclibdir=dir--with-sysroot- d1876 2 a1877 2
--with-sysroot=dir--with-build-sysroot- d1895 2 a1896 2
--with-build-sysroot=dir--with-headers- d1908 1 a1908 1
--with-headers=dir- d1914 2 a1915 2
--without-headers--with-libs- d1923 1 a1923 1
--with-libs="dir1 dir2 … dirN"- d1931 1 a1931 1
--with-newlib- d1942 2 a1943 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d1970 1 a1970 1
--with-long-double={32|64|32,64|64,32|double}- d1978 1 a1978 1
--with-double-comparison={tristate|bool|libf7}- d1994 1 a1994 1
--with-libf7={libgcc|math|math-symbols|no}- d2000 1 a2000 1
--with-nds32-lib=library- d2019 2 a2020 1
--with-build-time-tools=dirOverriding
d2028 3 a2030 2configuretest resultsbuild_configargs¶The contents of this variable is passed to all build
configured2034 3 a2036 2host_configargs¶The contents of this variable is passed to all host
configured2040 3 a2042 2target_configargs¶The contents of this variable is passed to all target
configured2052 2 a2053 1Objective-C-Specific Options
d2058 1 a2058 1- d2068 3 a2070 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2089 2 a2090 1
--with-target-bdw-gc-lib=listD-Specific Options
d2095 3 a2097 3--enable-libphobos-checking--disable-libphobos-checking- d2114 2 a2115 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2128 1 a2128 1
--with-libphobos-druntime-only=choice- @ 1.14.2.1 log @Sync to head external/gpl3/gcc/dist, pulling up the following revisions (requested by mrg in ticket #231): external/gpl3/gcc/dist/fixincludes/tests/base/objc/runtime.h up to 1.1.1.1 external/gpl3/gcc/dist/gcc/opts-jobserver.h up to 1.1.1.1 external/gpl3/gcc/dist/libgcc/config/t-darwin-min-1 up to 1.1.1.1 external/gpl3/gcc/dist/libgcc/config/t-darwin-min-5 up to 1.1.1.1 external/gpl3/gcc/dist/libgcc/config/t-darwin-min-8 up to 1.1.1.1 external/gpl3/gcc/dist/ChangeLog up to 1.1.1.21 external/gpl3/gcc/dist/LAST_UPDATED up to 1.18 external/gpl3/gcc/dist/MD5SUMS up to 1.18 external/gpl3/gcc/dist/NEWS up to 1.16 external/gpl3/gcc/dist/INSTALL/binaries.html up to 1.13 external/gpl3/gcc/dist/INSTALL/build.html up to 1.15 external/gpl3/gcc/dist/INSTALL/configure.html up to 1.15 external/gpl3/gcc/dist/INSTALL/download.html up to 1.14 external/gpl3/gcc/dist/INSTALL/finalinstall.html up to 1.13 external/gpl3/gcc/dist/INSTALL/gfdl.html up to 1.13 external/gpl3/gcc/dist/INSTALL/index.html up to 1.13 external/gpl3/gcc/dist/INSTALL/old.html up to 1.13 external/gpl3/gcc/dist/INSTALL/prerequisites.html up to 1.15 external/gpl3/gcc/dist/INSTALL/specific.html up to 1.14 external/gpl3/gcc/dist/INSTALL/test.html up to 1.13 external/gpl3/gcc/dist/config/ChangeLog up to 1.1.1.21 external/gpl3/gcc/dist/contrib/ChangeLog up to 1.1.1.21 external/gpl3/gcc/dist/contrib/header-tools/ChangeLog up to 1.1.1.11 external/gpl3/gcc/dist/contrib/reghunt/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/contrib/regression/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/fixincludes/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/fixincludes/fixincl.x up to 1.1.1.16 external/gpl3/gcc/dist/fixincludes/inclhack.def up to 1.1.1.15 external/gpl3/gcc/dist/fixincludes/tests/base/stdio.h up to 1.1.1.6 external/gpl3/gcc/dist/gcc/BASE-VER up to 1.1.1.19 external/gpl3/gcc/dist/gcc/ChangeLog up to 1.24 external/gpl3/gcc/dist/gcc/DATESTAMP up to 1.1.1.22 external/gpl3/gcc/dist/gcc/asan.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/bb-reorder.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/builtins.c up to 1.20 external/gpl3/gcc/dist/gcc/cfgbuild.c up to 1.1.1.11 external/gpl3/gcc/dist/gcc/cgraphclones.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/cgraphunit.c up to 1.1.1.14 external/gpl3/gcc/dist/gcc/config.gcc up to 1.72 external/gpl3/gcc/dist/gcc/cse.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/expr.c up to 1.19 external/gpl3/gcc/dist/gcc/function.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/function.h up to 1.1.1.12 external/gpl3/gcc/dist/gcc/gcc.c up to 1.25 external/gpl3/gcc/dist/gcc/generic-match-head.c up to 1.1.1.9 external/gpl3/gcc/dist/gcc/gimple-ssa-store-merging.c up to 1.1.1.9 external/gpl3/gcc/dist/gcc/ifcvt.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/ira-color.c up to 1.10 external/gpl3/gcc/dist/gcc/loop-invariant.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/lto-streamer-in.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/lto-wrapper.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/match.pd up to 1.1.1.13 external/gpl3/gcc/dist/gcc/omp-expand.c up to 1.1.1.8 external/gpl3/gcc/dist/gcc/omp-low.c up to 1.1.1.19 external/gpl3/gcc/dist/gcc/optabs.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/optc-save-gen.awk up to 1.1.1.10 external/gpl3/gcc/dist/gcc/opts-common.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/predict.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/ree.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/reg-stack.c up to 1.1.1.11 external/gpl3/gcc/dist/gcc/regrename.c up to 1.1.1.11 external/gpl3/gcc/dist/gcc/sanopt.c up to 1.1.1.10 external/gpl3/gcc/dist/gcc/selftest-diagnostic.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/symbol-summary.h up to 1.1.1.9 external/gpl3/gcc/dist/gcc/tree-inline.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/tree-loop-distribution.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/tree-nested.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/tree-sra.c up to 1.1.1.17 external/gpl3/gcc/dist/gcc/tree-ssa-ccp.c up to 1.16 external/gpl3/gcc/dist/gcc/tree-ssa-dom.c up to 1.1.1.16 external/gpl3/gcc/dist/gcc/tree-ssa-loop-ivopts.c up to 1.1.1.14 external/gpl3/gcc/dist/gcc/tree-ssa-reassoc.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/tree-ssa-sccvn.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/tree-ssa-strlen.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/tree-ssa.c up to 1.1.1.13 external/gpl3/gcc/dist/gcc/tree.c up to 1.5 external/gpl3/gcc/dist/gcc/tree.h up to 1.5 external/gpl3/gcc/dist/gcc/varasm.c up to 1.14 external/gpl3/gcc/dist/gcc/wide-int.cc up to 1.1.1.10 external/gpl3/gcc/dist/gcc/wide-int.h up to 1.1.1.10 external/gpl3/gcc/dist/gcc/analyzer/ChangeLog up to 1.1.1.3 external/gpl3/gcc/dist/gcc/brig/ChangeLog up to 1.1.1.9 external/gpl3/gcc/dist/gcc/c/ChangeLog up to 1.1.1.19 external/gpl3/gcc/dist/gcc/c/c-parser.c up to 1.1.1.16 external/gpl3/gcc/dist/gcc/c/c-typeck.c up to 1.1.1.17 external/gpl3/gcc/dist/gcc/c-family/ChangeLog up to 1.1.1.18 external/gpl3/gcc/dist/gcc/c-family/c-common.c up to 1.1.1.17 external/gpl3/gcc/dist/gcc/c-family/c-ubsan.c up to 1.1.1.10 external/gpl3/gcc/dist/gcc/c-family/c-warn.c up to 1.1.1.8 external/gpl3/gcc/dist/gcc/common/config/i386/i386-cpuinfo.h up to 1.1.1.2 external/gpl3/gcc/dist/gcc/config/darwin.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/config/darwin.h up to 1.1.1.14 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-c.c up to 1.1.1.9 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-cores.def up to 1.1.1.12 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-cost-tables.h up to 1.1.1.9 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-fusion-pairs.def up to 1.1.1.8 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-netbsd.h up to 1.7 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-protos.h up to 1.1.1.13 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-simd.md up to 1.1.1.13 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-sve-builtins.cc up to 1.1.1.3 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-sve.md up to 1.1.1.5 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-tune.md up to 1.1.1.12 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64-tuning-flags.def up to 1.1.1.8 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.c up to 1.1.1.19 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.h up to 1.4 external/gpl3/gcc/dist/gcc/config/aarch64/aarch64.md up to 1.1.1.17 external/gpl3/gcc/dist/gcc/config/aarch64/driver-aarch64.c up to 1.14 external/gpl3/gcc/dist/gcc/config/aarch64/iterators.md up to 1.1.1.14 external/gpl3/gcc/dist/gcc/config/i386/i386-builtin.def up to 1.1.1.8 external/gpl3/gcc/dist/gcc/config/i386/i386-expand.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/config/i386/i386-features.c up to 1.1.1.2 external/gpl3/gcc/dist/gcc/config/i386/i386-options.c up to 1.1.1.2 external/gpl3/gcc/dist/gcc/config/i386/smmintrin.h up to 1.1.1.11 external/gpl3/gcc/dist/gcc/config/i386/t-i386 up to 1.1.1.11 external/gpl3/gcc/dist/gcc/config/nvptx/nvptx.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/config/nvptx/nvptx.h up to 1.1.1.9 external/gpl3/gcc/dist/gcc/config/nvptx/nvptx.md up to 1.1.1.9 external/gpl3/gcc/dist/gcc/config/pa/pa.md up to 1.1.1.17 external/gpl3/gcc/dist/gcc/config/riscv/t-rtems up to 1.1.1.2 external/gpl3/gcc/dist/gcc/config/rs6000/altivec.md up to 1.1.1.19 external/gpl3/gcc/dist/gcc/config/rs6000/mma.md up to 1.1.1.3 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-builtin.def up to 1.1.1.19 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-call.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-logue.c up to 1.4 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-p8swap.c up to 1.1.1.6 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000-protos.h up to 1.1.1.15 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.c up to 1.32 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.h up to 1.1.1.17 external/gpl3/gcc/dist/gcc/config/rs6000/rs6000.md up to 1.1.1.20 external/gpl3/gcc/dist/gcc/config/rs6000/rtems.h up to 1.1.1.11 external/gpl3/gcc/dist/gcc/config/rs6000/t-rtems up to 1.1.1.11 external/gpl3/gcc/dist/gcc/config/rs6000/vector.md up to 1.1.1.15 external/gpl3/gcc/dist/gcc/config/rs6000/vsx.md up to 1.1.1.20 external/gpl3/gcc/dist/gcc/config/s390/s390.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/config/sparc/sparc.c up to 1.1.1.19 external/gpl3/gcc/dist/gcc/cp/ChangeLog up to 1.1.1.22 external/gpl3/gcc/dist/gcc/cp/constexpr.c up to 1.1.1.14 external/gpl3/gcc/dist/gcc/cp/cp-gimplify.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/cp/cp-tree.h up to 1.1.1.15 external/gpl3/gcc/dist/gcc/cp/cvt.c up to 1.1.1.15 external/gpl3/gcc/dist/gcc/cp/decl.c up to 1.10 external/gpl3/gcc/dist/gcc/cp/decl2.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/cp/expr.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/cp/friend.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/cp/lambda.c up to 1.1.1.12 external/gpl3/gcc/dist/gcc/cp/parser.c up to 1.1.1.21 external/gpl3/gcc/dist/gcc/cp/pt.c up to 1.1.1.19 external/gpl3/gcc/dist/gcc/cp/semantics.c up to 1.1.1.20 external/gpl3/gcc/dist/gcc/cp/tree.c up to 1.1.1.18 external/gpl3/gcc/dist/gcc/cp/typeck.c up to 1.1.1.19 external/gpl3/gcc/dist/gcc/d/ChangeLog up to 1.1.1.4 external/gpl3/gcc/dist/gcc/d/d-convert.cc up to 1.1.1.4 external/gpl3/gcc/dist/gcc/d/decl.cc up to 1.1.1.4 external/gpl3/gcc/dist/gcc/d/expr.cc up to 1.1.1.4 external/gpl3/gcc/dist/gcc/d/gdc.texi up to 1.1.1.3 external/gpl3/gcc/dist/gcc/d/imports.cc up to 1.1.1.3 external/gpl3/gcc/dist/gcc/d/toir.cc up to 1.1.1.3 external/gpl3/gcc/dist/gcc/d/dmd/dinterpret.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/d/dmd/expressionsem.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/doc/cpp.1 up to 1.17 external/gpl3/gcc/dist/gcc/doc/cpp.info up to 1.16 external/gpl3/gcc/dist/gcc/doc/cppinternals.info up to 1.18 external/gpl3/gcc/dist/gcc/doc/cppopts.texi up to 1.10 external/gpl3/gcc/dist/gcc/doc/extend.texi up to 1.10 external/gpl3/gcc/dist/gcc/doc/fsf-funding.7 up to 1.15 external/gpl3/gcc/dist/gcc/doc/g++.1 up to 1.18 external/gpl3/gcc/dist/gcc/doc/gcc.1 up to 1.18 external/gpl3/gcc/dist/gcc/doc/gcc.info up to 1.16 external/gpl3/gcc/dist/gcc/doc/gccinstall.info up to 1.18 external/gpl3/gcc/dist/gcc/doc/gccint.info up to 1.17 external/gpl3/gcc/dist/gcc/doc/gcov-dump.1 up to 1.1.1.12 external/gpl3/gcc/dist/gcc/doc/gcov-tool.1 up to 1.11 external/gpl3/gcc/dist/gcc/doc/gcov.1 up to 1.17 external/gpl3/gcc/dist/gcc/doc/gfdl.7 up to 1.15 external/gpl3/gcc/dist/gcc/doc/gfortran.1 up to 1.14 external/gpl3/gcc/dist/gcc/doc/gpl.7 up to 1.15 external/gpl3/gcc/dist/gcc/doc/invoke.texi up to 1.23 external/gpl3/gcc/dist/gcc/doc/lto-dump.1 up to 1.1.1.3 external/gpl3/gcc/dist/gcc/fortran/ChangeLog up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/array.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/check.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/decl.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/dependency.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/fortran/expr.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/f95-lang.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/fortran/gfortran.info up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/interface.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/iresolve.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/fortran/match.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/parse.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/primary.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/resolve.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/simplify.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/symbol.c up to 1.1.1.3 external/gpl3/gcc/dist/gcc/fortran/trans-decl.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/trans-expr.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/trans-intrinsic.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/trans-types.c up to 1.1.1.4 external/gpl3/gcc/dist/gcc/fortran/trans.h up to 1.1.1.3 external/gpl3/gcc/dist/gcc/jit/ChangeLog up to 1.1.1.14 external/gpl3/gcc/dist/gcc/lto/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/gcc/objc/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/gcc/objcp/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/include/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/intl/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libbacktrace/ChangeLog up to 1.1.1.19 external/gpl3/gcc/dist/libcc1/ChangeLog up to 1.1.1.14 external/gpl3/gcc/dist/libcpp/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libcpp/directives.c up to 1.1.1.13 external/gpl3/gcc/dist/libdecnumber/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libgcc/ChangeLog up to 1.1.1.22 external/gpl3/gcc/dist/libgcc/config.host up to 1.33 external/gpl3/gcc/dist/libgcc/config/darwin10-unwind-find-enc-func.c up to 1.1.1.2 external/gpl3/gcc/dist/libgcc/config/t-darwin up to 1.1.1.6 external/gpl3/gcc/dist/libgcc/config/t-slibgcc-darwin up to 1.1.1.4 external/gpl3/gcc/dist/libgcc/config/avr/libf7/ChangeLog up to 1.1.1.3 external/gpl3/gcc/dist/libgcc/config/avr/libf7/libf7-asm.sx up to 1.1.1.2 external/gpl3/gcc/dist/libgcc/config/i386/cpuinfo.c up to 1.1.1.11 external/gpl3/gcc/dist/libgcc/config/libbid/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libgcc/config/riscv/div.S up to 1.1.1.7 external/gpl3/gcc/dist/libgcc/config/riscv/riscv-asm.h up to 1.1.1.4 external/gpl3/gcc/dist/libgfortran/ChangeLog up to 1.1.1.4 external/gpl3/gcc/dist/libgomp/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libgomp/libgomp.info up to 1.15 external/gpl3/gcc/dist/libgomp/libgomp.texi up to 1.1.1.11 external/gpl3/gcc/dist/libgomp/target.c up to 1.1.1.9 external/gpl3/gcc/dist/libgomp/task.c up to 1.1.1.12 external/gpl3/gcc/dist/libhsail-rt/ChangeLog up to 1.1.1.9 external/gpl3/gcc/dist/libiberty/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libiberty/strstr.c up to 1.1.1.2 external/gpl3/gcc/dist/libobjc/ChangeLog up to 1.1.1.21 external/gpl3/gcc/dist/libphobos/ChangeLog up to 1.1.1.4 external/gpl3/gcc/dist/libphobos/src/std/path.d up to 1.1.1.2 external/gpl3/gcc/dist/libquadmath/ChangeLog up to 1.1.1.4 external/gpl3/gcc/dist/libquadmath/libquadmath.info up to 1.1.1.4 external/gpl3/gcc/dist/libquadmath/strtod/strtod_l.c up to 1.1.1.2 external/gpl3/gcc/dist/libsanitizer/ChangeLog up to 1.4 external/gpl3/gcc/dist/libsanitizer/configure.tgt up to 1.10 external/gpl3/gcc/dist/libssp/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/libstdc++-v3/ChangeLog up to 1.1.1.22 external/gpl3/gcc/dist/libstdc++-v3/config/os/gnu-linux/os_defines.h up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/doc/doxygen/user.cfg.in up to 1.1.1.7 external/gpl3/gcc/dist/libstdc++-v3/doc/html/bk02.html up to 1.1.1.4 external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/api.html up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/ext_demangling.html up to 1.1.1.7 external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/extensions.html up to 1.1.1.6 external/gpl3/gcc/dist/libstdc++-v3/doc/html/manual/index.html up to 1.1.1.14 external/gpl3/gcc/dist/libstdc++-v3/doc/xml/authors.xml up to 1.1.1.4 external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/evolution.xml up to 1.1.1.10 external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/extensions.xml up to 1.1.1.13 external/gpl3/gcc/dist/libstdc++-v3/doc/xml/manual/spine.xml up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/include/Makefile.am up to 1.1.1.16 external/gpl3/gcc/dist/libstdc++-v3/include/Makefile.in up to 1.1.1.16 external/gpl3/gcc/dist/libstdc++-v3/include/bits/fs_path.h up to 1.1.1.6 external/gpl3/gcc/dist/libstdc++-v3/include/bits/gslice_array.h up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/bits/indirect_array.h up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/bits/list.tcc up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/bits/mask_array.h up to 1.1.1.13 external/gpl3/gcc/dist/libstdc++-v3/include/bits/range_access.h up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex.h up to 1.1.1.13 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex.tcc up to 1.1.1.10 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_automaton.h up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_compiler.h up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_compiler.tcc up to 1.1.1.10 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_error.h up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_executor.tcc up to 1.1.1.10 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_scanner.h up to 1.1.1.11 external/gpl3/gcc/dist/libstdc++-v3/include/bits/regex_scanner.tcc up to 1.1.1.10 external/gpl3/gcc/dist/libstdc++-v3/include/bits/shared_ptr_base.h up to 1.1.1.16 external/gpl3/gcc/dist/libstdc++-v3/include/bits/slice_array.h up to 1.1.1.13 external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_iterator.h up to 1.1.1.14 external/gpl3/gcc/dist/libstdc++-v3/include/bits/stl_uninitialized.h up to 1.1.1.13 external/gpl3/gcc/dist/libstdc++-v3/include/experimental/numeric up to 1.1.1.8 external/gpl3/gcc/dist/libstdc++-v3/include/experimental/optional up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/std/any up to 1.1.1.9 external/gpl3/gcc/dist/libstdc++-v3/include/std/memory up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/std/numeric up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/include/std/ranges up to 1.1.1.3 external/gpl3/gcc/dist/libstdc++-v3/include/std/span up to 1.1.1.3 external/gpl3/gcc/dist/libstdc++-v3/include/std/valarray up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/python/libstdcxx/v6/xmethods.py up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/src/c++11/thread.cc up to 1.1.1.12 external/gpl3/gcc/dist/libstdc++-v3/src/c++17/fs_path.cc up to 1.1.1.4 external/gpl3/gcc/dist/lto-plugin/ChangeLog up to 1.1.1.20 external/gpl3/gcc/dist/maintainer-scripts/ChangeLog up to 1.1.1.21 Import gcc 10.5. @ text @d3 3 a24 3 d32 2 d36 1 a38 2 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} blockquote.smallquotation {font-size: smaller} a40 4 div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} a45 4 pre.smalldisplay {font-family: inherit; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: inherit; font-size: smaller} pre.smalllisp {font-size: smaller} d49 1 d78 2 a79 2 d125 2 a126 2
--with-target-system-zlib% mkdir objdir d131 1 a131 2Distributor options
d138 1 a138 1- d147 1 a147 1
--with-pkgversion=version- d155 1 a155 1
--with-bugurl=url- d162 1 a162 1
--with-documentation-root-url=url- d172 1 a172 2
--with-changes-root-url=urlTarget specification
d187 1 a187 2Options specification
d199 1 a199 1- d214 1 a214 1
--prefix=dirname- d219 1 a219 1
--exec-prefix=dirname- d225 1 a225 1
--bindir=dirname- d230 1 a230 1
--libdir=dirname- d235 1 a235 1
--libexecdir=dirname- d240 1 a240 1
--with-slibdir=dirname- d245 1 a245 1
--datarootdir=dirname- d250 1 a250 1
--infodir=dirname- d255 1 a255 1
--datadir=dirname- d260 1 a260 1
--docdir=dirname- d265 1 a265 1
--htmldir=dirname- d270 1 a270 1
--pdfdir=dirname- d278 1 a278 1
--mandir=dirname- d285 1 a285 1
--with-gxx-include-dir=dirname- d296 1 a296 1
--with-specs=specs- d304 1 a304 1
--program-prefix=prefix- d311 1 a311 1
--program-suffix=suffix- d344 1 a344 1
--program-transform-name=pattern- d417 1 a417 1
--with-local-prefix=dirname- d422 1 a422 1
--with-gcc-major-version-only- d431 1 a431 1
--with-native-system-header-dir=dirname- d452 1 a452 1
--enable-shared[=package[,…]]- d463 1 a463 1
--enable-host-shared- d486 1 a486 1
--with-gnu-as- d519 1 a519 1
--with-as=pathname- d524 1 a524 1
--with-gnu-ld- d529 1 a529 1
--with-ld=pathname- d534 1 a534 1
--with-dsymutil=pathname- d540 1 a540 1
--with-stabs- d547 1 a547 1
--with-tls=dialect- d557 1 a557 1
--enable-multiarch- d563 1 a563 1
--enable-sjlj-exceptions- d576 1 a576 1
--enable-vtable-verify- d581 1 a581 1
--disable-gcov- d590 1 a590 1
--disable-multilib- d594 1 a594 1
arm-*-*- d598 1 a598 1
m68*-*-*- d602 1 a602 1
mips*-*-*- d606 1 a606 1
msp430-*-*- d614 2 a615 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d622 1 a622 1
--without-multilib-list- d632 1 a632 1
aarch64*-*-*- d694 1 a694 1
arm*-*-*- d702 1 a702 1
riscv*-*-*- d723 2 a724 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d729 2 a730 2--with-cpu=sh4a --with-endian=little,big \ d735 1 a735 1- d747 1 a747 1
x86-64-*-linux*- d753 1 a753 1
--with-endian=endians- d756 1 a756 1
big- d759 1 a759 1
little- d762 1 a762 1
big,little- d768 1 a768 1
little,big- d781 1 a781 1
--enable-threads- d786 1 a786 1
--disable-threads- d793 1 a793 1
--enable-threads=lib- d796 1 a796 1
aix- d799 1 a799 1
dce- d802 1 a802 1
lynx- d805 1 a805 1
mipssde- d808 1 a808 1
no- d811 1 a811 1
posix- d814 1 a814 1
rtems- d817 1 a817 1
single- d820 1 a820 1
tpf- d823 1 a823 1
vxworks- d829 1 a829 1
win32- d838 1 a838 1
--enable-tls- d843 1 a843 1
--disable-tls- d849 3 a851 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d861 10 a870 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d878 1 a878 1
--with-float=type- d883 1 a883 1
--with-mode=mode- d889 1 a889 1
--with-stack-offset=num- d896 1 a896 1
--with-fpmath=isa- d900 1 a900 1
--with-fp-32=mode- d904 1 a904 1
32- d908 1 a908 1
xx- d917 1 a917 1
64- d922 1 a922 1
--with-odd-spreg-32- d928 1 a928 1
--without-odd-spreg-32- d933 1 a933 1
--with-nan=encoding- d937 1 a937 1
legacy- d949 1 a949 1
2008- d954 1 a954 1
--with-divide=type- d958 1 a958 1
traps- d965 1 a965 1
breaks- d972 1 a972 1
--with-llsc- d977 1 a977 1
--without-llsc- d982 1 a982 1
--with-synci- d987 1 a987 1
--without-synci- d992 1 a992 1
--with-lxc1-sxc1- d1008 1 a1008 1
--without-lxc1-sxc1- d1013 1 a1013 1
--with-madd4- d1024 1 a1024 1
--without-madd4- d1031 1 a1031 1
--with-mips-plt- d1037 1 a1037 1
--with-stack-clash-protection-guard-size=size- d1046 1 a1046 1
--enable-__cxa_atexit- d1051 1 a1051 1
--enable-gnu-indirect-function- d1057 1 a1057 1
--enable-target-optspace- d1062 1 a1062 1
--with-cpp-install-dir=dirname- d1067 1 a1067 1
--enable-comdat- d1076 1 a1076 1
--enable-initfini-array- d1082 1 a1082 1
--enable-link-mutex- d1092 1 a1092 1
--enable-maintainer-mode- d1099 1 a1099 1
--disable-bootstrap- d1108 1 a1108 1
--enable-bootstrap- d1123 1 a1123 1
--enable-generated-files-in-srcdir- d1135 1 a1135 1
--enable-version-specific-runtime-libs- d1146 1 a1146 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1152 2 a1153 2
--with-aix-soname=aix- d1170 2 a1171 2
--with-aix-soname=both--with-aix-soname=both- d1209 1 a1209 1
--with-aix-soname=svr4- d1241 1 a1241 1
--with-aix-soname=svr4- d1246 2 a1247 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1263 1 a1263 1- d1279 1 a1279 1
--enable-stage1-languages=lang1,lang2,…- d1286 1 a1286 1
--disable-libada- d1291 1 a1291 1
--disable-libsanitizer- d1297 1 a1297 1
--disable-libssp- d1304 1 a1304 1
--disable-libquadmath- d1309 1 a1309 1
--disable-libquadmath-support- d1314 1 a1314 1
--disable-libgomp- d1319 1 a1319 1
--disable-libvtv- d1324 1 a1324 1
--with-dwarf2- d1333 2 a1334 2
--with-advance-toolchain=at--enable-targets=all- d1348 1 a1348 1
--enable-targets=target_list- d1352 1 a1352 1
--enable-default-pie- d1357 1 a1357 1
--enable-secureplt- d1361 1 a1361 1
--enable-default-ssp- d1366 1 a1366 1
--enable-cld- d1375 3 a1377 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1381 2 a1382 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1394 1 a1394 1- d1400 4 a1403 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1412 3 a1414 3
--enable-werror=no--enable-checking--disable-checking- d1452 3 a1454 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1466 2 a1467 2
--enable-stage1-checking=list--enable-coverage- d1478 1 a1478 1
--enable-coverage=level- d1484 1 a1484 1
--enable-gather-detailed-mem-stats- d1489 2 a1490 2
--enable-valgrind-annotations--enable-nls- d1497 1 a1497 1
--disable-nls- d1502 1 a1502 1
--with-included-gettext- d1510 1 a1510 1
--with-catgets- d1515 1 a1515 1
--with-libiconv-prefix=dir- d1526 6 a1531 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1542 2 a1543 2
--disable-decimal-float--enable-fixed-point- d1550 1 a1550 1
--disable-fixed-point- d1559 2 a1560 2
--with-long-double-128--with-long-double-format=ibm- d1589 1 a1589 1
--with-long-double-format=ieee- d1593 9 a1601 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1628 3 a1630 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1644 1 a1644 1
--with-isl-lib=pathname- d1652 1 a1652 1
--with-stage1-ldflags=flags- d1658 1 a1658 1
--with-stage1-libs=libs- d1665 1 a1665 1
--with-boot-ldflags=flags- d1670 1 a1670 1
--with-boot-libs=libs- d1676 1 a1676 1
--with-debug-prefix-map=map- d1685 1 a1685 1
--enable-linker-build-id- d1691 2 a1692 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1699 1 a1699 1
--disable-gnu-unique-object- d1709 1 a1709 1
--with-diagnostics-color=choice- d1719 2 a1720 2
--with-diagnostics-urls=choice--enable-lto- d1725 2 a1726 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1737 2 a1738 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1745 1 a1745 1- d1753 2 a1754 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1762 1 a1762 1
--disable-canonical-system-headers- d1775 1 a1775 1
--with-glibc-version=major.minor- d1779 1 a1779 1
--enable-as-accelerator-for=target- d1785 2 a1786 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1795 3 a1797 3--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1808 2 a1809 2
--with-hsa-runtime-lib=pathname--enable-cet- d1823 1 a1823 1
--disable-cet- d1832 1 a1832 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’Cross-Compiler-Specific Options
d1836 1 a1836 1- d1841 2 a1842 2
--with-toolexeclibdir=dir--with-sysroot- d1866 2 a1867 2
--with-sysroot=dir--with-build-sysroot- d1885 2 a1886 2
--with-build-sysroot=dir--with-headers- d1898 1 a1898 1
--with-headers=dir- d1904 2 a1905 2
--without-headers--with-libs- d1913 1 a1913 1
--with-libs="dir1 dir2 … dirN"- d1921 1 a1921 1
--with-newlib- d1932 2 a1933 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d1960 1 a1960 1
--with-long-double={32|64|32,64|64,32|double}- d1968 1 a1968 1
--with-double-comparison={tristate|bool|libf7}- d1984 1 a1984 1
--with-libf7={libgcc|math|math-symbols|no}- d1990 1 a1990 1
--with-nds32-lib=library- d2009 1 a2009 2
--with-build-time-tools=dirOverriding
d2017 2 a2018 3configuretest resultsbuild_configargsThe contents of this variable is passed to all build
configured2022 2 a2023 3host_configargsThe contents of this variable is passed to all host
configured2027 2 a2028 3target_configargsThe contents of this variable is passed to all target
configured2038 1 a2038 2Objective-C-Specific Options
d2043 1 a2043 1- d2053 3 a2055 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2074 1 a2074 2
--with-target-bdw-gc-lib=listD-Specific Options
d2079 3 a2081 3--enable-libphobos-checking--disable-libphobos-checking- d2098 2 a2099 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2112 1 a2112 1
--with-libphobos-druntime-only=choice- @ 1.13 log @initial merge of GCC 10.3.0. these three files are not yet finished merging: gcc/config/rs6000/rs6000.c libsanitizer/lsan/lsan_allocator.h libsanitizer/sanitizer_common/sanitizer_platform_limits_posix.h our current GCC 9 sanitizers are newer than GCC 10's still, so that may take a little to untease, so it's probable that more than these 2 will need more changes. rs6000.c has some changes related to ABI and supported functionality that need to be merged forward. @ text @d3 3 a24 3 d32 2 d36 1 a38 2 blockquote.smallindentedblock {margin-right: 0em; font-size: smaller} blockquote.smallquotation {font-size: smaller} a40 4 div.lisp {margin-left: 3.2em} div.smalldisplay {margin-left: 3.2em} div.smallexample {margin-left: 3.2em} div.smalllisp {margin-left: 3.2em} a45 4 pre.smalldisplay {font-family: inherit; font-size: smaller} pre.smallexample {font-size: smaller} pre.smallformat {font-family: inherit; font-size: smaller} pre.smalllisp {font-size: smaller} d49 1 d78 2 a79 2 d125 2 a126 2
--with-target-system-zlib% mkdir objdir d131 1 a131 2Distributor options
d138 1 a138 1- d147 1 a147 1
--with-pkgversion=version- d155 1 a155 1
--with-bugurl=url- d162 1 a162 1
--with-documentation-root-url=url- d172 1 a172 2
--with-changes-root-url=urlTarget specification
d187 1 a187 2Options specification
d199 1 a199 1- d214 1 a214 1
--prefix=dirname- d219 1 a219 1
--exec-prefix=dirname- d225 1 a225 1
--bindir=dirname- d230 1 a230 1
--libdir=dirname- d235 1 a235 1
--libexecdir=dirname- d240 1 a240 1
--with-slibdir=dirname- d245 1 a245 1
--datarootdir=dirname- d250 1 a250 1
--infodir=dirname- d255 1 a255 1
--datadir=dirname- d260 1 a260 1
--docdir=dirname- d265 1 a265 1
--htmldir=dirname- d270 1 a270 1
--pdfdir=dirname- d278 1 a278 1
--mandir=dirname- d285 1 a285 1
--with-gxx-include-dir=dirname- d296 1 a296 1
--with-specs=specs- d304 1 a304 1
--program-prefix=prefix- d311 1 a311 1
--program-suffix=suffix- d344 1 a344 1
--program-transform-name=pattern- d417 1 a417 1
--with-local-prefix=dirname- d422 1 a422 1
--with-gcc-major-version-only- d431 1 a431 1
--with-native-system-header-dir=dirname- d452 1 a452 1
--enable-shared[=package[,…]]- d463 1 a463 1
--enable-host-shared- d486 1 a486 1
--with-gnu-as- d519 1 a519 1
--with-as=pathname- d524 1 a524 1
--with-gnu-ld- d529 6 a534 1
--with-ld=pathname- d540 1 a540 1
--with-stabs- d547 1 a547 1
--with-tls=dialect- d557 1 a557 1
--enable-multiarch- d563 1 a563 1
--enable-sjlj-exceptions- d576 1 a576 1
--enable-vtable-verify- d581 1 a581 1
--disable-gcov- d590 1 a590 1
--disable-multilib- d594 1 a594 1
arm-*-*- d598 1 a598 1
m68*-*-*- d602 1 a602 1
mips*-*-*- d606 1 a606 1
msp430-*-*- d614 2 a615 2
powerpc*-*-*, rs6000*-*-*--with-multilib-list=list- d622 1 a622 1
--without-multilib-list- d632 1 a632 1
aarch64*-*-*- d694 1 a694 1
arm*-*-*- d702 1 a702 1
riscv*-*-*- d723 2 a724 2
sh*-*-*--with-cpu=sh4a --with-endian=little,big --with-multilib-list= d729 2 a730 2--with-cpu=sh4a --with-endian=little,big \ d735 1 a735 1- d747 1 a747 1
x86-64-*-linux*- d753 1 a753 1
--with-endian=endians- d756 1 a756 1
big- d759 1 a759 1
little- d762 1 a762 1
big,little- d768 1 a768 1
little,big- d781 1 a781 1
--enable-threads- d786 1 a786 1
--disable-threads- d793 1 a793 1
--enable-threads=lib- d796 1 a796 1
aix- d799 1 a799 1
dce- d802 1 a802 1
lynx- d805 1 a805 1
mipssde- d808 1 a808 1
no- d811 1 a811 1
posix- d814 1 a814 1
rtems- d817 1 a817 1
single- d820 1 a820 1
tpf- d823 1 a823 1
vxworks- d829 1 a829 1
win32- d838 1 a838 1
--enable-tls- d843 1 a843 1
--disable-tls- d849 3 a851 3
--disable-tm-clone-registry--with-cpu=cpu--with-cpu-32=cpu- d861 10 a870 10
--with-cpu-64=cpu--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type- d878 1 a878 1
--with-float=type- d883 1 a883 1
--with-mode=mode- d889 1 a889 1
--with-stack-offset=num- d896 1 a896 1
--with-fpmath=isa- d900 1 a900 1
--with-fp-32=mode- d904 1 a904 1
32- d908 1 a908 1
xx- d917 1 a917 1
64- d922 1 a922 1
--with-odd-spreg-32- d928 1 a928 1
--without-odd-spreg-32- d933 1 a933 1
--with-nan=encoding- d937 1 a937 1
legacy- d949 1 a949 1
2008- d954 1 a954 1
--with-divide=type- d958 1 a958 1
traps- d965 1 a965 1
breaks- d972 1 a972 1
--with-llsc- d977 1 a977 1
--without-llsc- d982 1 a982 1
--with-synci- d987 1 a987 1
--without-synci- d992 1 a992 1
--with-lxc1-sxc1- d1008 1 a1008 1
--without-lxc1-sxc1- d1013 1 a1013 1
--with-madd4- d1024 1 a1024 1
--without-madd4- d1031 1 a1031 1
--with-mips-plt- d1037 1 a1037 1
--with-stack-clash-protection-guard-size=size- d1046 1 a1046 1
--enable-__cxa_atexit- d1051 1 a1051 1
--enable-gnu-indirect-function- d1057 1 a1057 1
--enable-target-optspace- d1062 1 a1062 1
--with-cpp-install-dir=dirname- d1067 1 a1067 1
--enable-comdat- d1076 1 a1076 1
--enable-initfini-array- d1082 1 a1082 1
--enable-link-mutex- d1092 1 a1092 1
--enable-maintainer-mode- d1099 1 a1099 1
--disable-bootstrap- d1108 1 a1108 1
--enable-bootstrap- d1123 1 a1123 1
--enable-generated-files-in-srcdir- d1135 1 a1135 1
--enable-version-specific-runtime-libs- d1146 1 a1146 1
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’For detailed information please refer to the AIX d1152 2 a1153 2
--with-aix-soname=aix- d1170 2 a1171 2
--with-aix-soname=both--with-aix-soname=both- d1209 1 a1209 1
--with-aix-soname=svr4- d1241 1 a1241 1
--with-aix-soname=svr4- d1246 2 a1247 2
--enable-languages=lang1,lang2,…grep ^language= */config-lang.in d1263 1 a1263 1- d1279 1 a1279 1
--enable-stage1-languages=lang1,lang2,…- d1286 1 a1286 1
--disable-libada- d1291 1 a1291 1
--disable-libsanitizer- d1297 1 a1297 1
--disable-libssp- d1304 1 a1304 1
--disable-libquadmath- d1309 1 a1309 1
--disable-libquadmath-support- d1314 1 a1314 1
--disable-libgomp- d1319 1 a1319 1
--disable-libvtv- d1324 1 a1324 1
--with-dwarf2- d1333 2 a1334 2
--with-advance-toolchain=at--enable-targets=all- d1348 1 a1348 1
--enable-targets=target_list- d1352 1 a1352 1
--enable-default-pie- d1357 1 a1357 1
--enable-secureplt- d1361 1 a1361 1
--enable-default-ssp- d1366 1 a1366 1
--enable-cld- d1375 3 a1377 3
--enable-large-address-aware--enable-win32-registry--enable-win32-registry=key- d1381 2 a1382 2
--disable-win32-registryHKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keyd1394 1 a1394 1- d1400 4 a1403 4
--nfp--enable-werror--disable-werror--enable-werror=yes- d1412 3 a1414 3
--enable-werror=no--enable-checking--disable-checking- d1452 3 a1454 3
--enable-checking=list--disable-stage1-checking--enable-stage1-checking- d1466 2 a1467 2
--enable-stage1-checking=list--enable-coverage- d1478 1 a1478 1
--enable-coverage=level- d1484 1 a1484 1
--enable-gather-detailed-mem-stats- d1489 2 a1490 2
--enable-valgrind-annotations--enable-nls- d1497 1 a1497 1
--disable-nls- d1502 1 a1502 1
--with-included-gettext- d1510 1 a1510 1
--with-catgets- d1515 1 a1515 1
--with-libiconv-prefix=dir- d1526 6 a1531 6
--enable-obsolete--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd- d1542 2 a1543 2
--disable-decimal-float--enable-fixed-point- d1550 1 a1550 1
--disable-fixed-point- d1559 2 a1560 2
--with-long-double-128--with-long-double-format=ibm- d1589 1 a1589 1
--with-long-double-format=ieee- d1593 9 a1601 9
--enable-fdpic--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname- d1628 3 a1630 3
--with-mpc-lib=pathname--with-isl=pathname--with-isl-include=pathname- d1644 1 a1644 1
--with-isl-lib=pathname- d1652 1 a1652 1
--with-stage1-ldflags=flags- d1658 1 a1658 1
--with-stage1-libs=libs- d1665 1 a1665 1
--with-boot-ldflags=flags- d1670 1 a1670 1
--with-boot-libs=libs- d1676 1 a1676 1
--with-debug-prefix-map=map- d1685 1 a1685 1
--enable-linker-build-id- d1691 2 a1692 2
--with-linker-hash-style=choice--enable-gnu-unique-object- d1699 1 a1699 1
--disable-gnu-unique-object- d1709 1 a1709 1
--with-diagnostics-color=choice- d1719 2 a1720 2
--with-diagnostics-urls=choice--enable-lto- d1725 2 a1726 2
--disable-lto--enable-linker-plugin-configure-flags=FLAGS- d1737 2 a1738 2
--enable-linker-plugin-flags=FLAGS% srcdir/configure \ d1745 1 a1745 1- d1753 2 a1754 2
--with-plugin-ld=pathname--enable-canonical-system-headers- d1762 1 a1762 1
--disable-canonical-system-headers- d1775 1 a1775 1
--with-glibc-version=major.minor- d1779 1 a1779 1
--enable-as-accelerator-for=target- d1785 2 a1786 2
--enable-offload-targets=target1[=path1],…,targetN[=pathN]% srcdir/configure \ d1795 3 a1797 3--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname- d1808 2 a1809 2
--with-hsa-runtime-lib=pathname--enable-cet- d1823 1 a1823 1
--disable-cet- d1832 1 a1832 2
--with-riscv-attribute=‘yes’, ‘no’ or ‘default’Cross-Compiler-Specific Options
d1836 1 a1836 1- d1841 2 a1842 2
--with-toolexeclibdir=dir--with-sysroot- d1866 2 a1867 2
--with-sysroot=dir--with-build-sysroot- d1885 2 a1886 2
--with-build-sysroot=dir--with-headers- d1898 1 a1898 1
--with-headers=dir- d1904 2 a1905 2
--without-headers--with-libs- d1913 1 a1913 1
--with-libs="dir1 dir2 … dirN"- d1921 1 a1921 1
--with-newlib- d1932 2 a1933 2
--with-avrlibc--with-double={32|64|32,64|64,32}- d1960 1 a1960 1
--with-long-double={32|64|32,64|64,32|double}- d1968 1 a1968 1
--with-double-comparison={tristate|bool|libf7}- d1984 1 a1984 1
--with-libf7={libgcc|math|math-symbols|no}- d1990 1 a1990 1
--with-nds32-lib=library- d2009 1 a2009 2
--with-build-time-tools=dirOverriding
d2017 2 a2018 3configuretest resultsbuild_configargsThe contents of this variable is passed to all build
configured2022 2 a2023 3host_configargsThe contents of this variable is passed to all host
configured2027 2 a2028 3target_configargsThe contents of this variable is passed to all target
configured2038 1 a2038 2Objective-C-Specific Options
d2043 1 a2043 1- d2053 3 a2055 3
--enable-objc-gc--with-target-bdw-gc=list--with-target-bdw-gc-include=list- d2074 1 a2074 2
--with-target-bdw-gc-lib=listD-Specific Options
d2079 3 a2081 3--enable-libphobos-checking--disable-libphobos-checking- d2098 2 a2099 2
--enable-libphobos-checking=list--with-libphobos-druntime-only- d2112 1 a2112 1
--with-libphobos-druntime-only=choice- @ 1.12 log @merge GCC 9.3.0. @ text @d3 1 a3 1 d62 26 a87 4
--with-target-system-zlibInstalling GCC: Configuration
Like most GNU software, GCC must be configured before it can be built. d90 2 a91 2We use srcdir to refer to the toplevel source directory for d93 7 a99 7
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell's built-in pwd command will return d101 3 a103 3 problems. To avoid this issue, set the PWDCMD environment variable to an automounter-aware pwd command, e.g., pawd or ‘amq -w’, during the configuration and build d105 2 a106 2
First, we highly recommend that GCC be built into a d109 1 a109 1 where srcdir == objdir should still work, but doesn't d112 6 a117 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don't know how to make distclean” it probably d121 3 a123 3
Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in d126 1 d128 7 a134 1
To configure GCC: d136 2 a137 5
% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d142 4 a145 3
--with-pkgversion=version- Specify a string that identifies your package. You may wish d147 8 a154 6 included in the output of gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.
The default value is ‘GCC’.
--with-bugurl=url- Specify the URL that users should visit if they wish to report a bug. d157 5 d163 4 a166 8
The default value refers to the FSF's GCC bug tracker.
Target specification
d179 2 a180 1
- GCC has code to correctly determine the correct value for target d170 1 a170 1
- target must be specified as --target=target d174 4 a177 3
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d183 2 a184 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d186 8 a193 7Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirname- Specify the toplevel installation d196 3 a198 3 /usr/local.
We highly recommend against dirname being the same or a d200 5 a204 5 beneath a user's home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use $HOME instead.
The following standard autoconf options are supported. Normally you d206 3 a208 2
--exec-prefix=dirname- Specify the toplevel installation directory for architecture-dependent d210 20 a229 12
--bindir=dirname- Specify the installation directory for the executables called by users (such as gcc and g++). The default is exec-prefix/bin.
--libdir=dirname- Specify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirname- Specify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirname- Specify the installation directory for the shared libgcc library. The d231 14 a244 8
--datarootdir=dirname- Specify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirname- Specify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirname- Specify the installation directory for some architecture-independent d246 9 a254 5
--docdir=dirname- Specify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirname- Specify the installation directory for HTML documentation files. d256 4 a259 2
--pdfdir=dirname- Specify the installation directory for PDF documentation files. d261 5 a265 3
--mandir=dirname- Specify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d269 4 a272 2
--with-gxx-include-dir=dirname- Specify d276 4 a279 2
--with-specs=specs- Specify additional command line driver SPECS. d281 2 a282 2 default without modifying the compiler's source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. d284 3 d288 3 a290 3
--program-prefix=prefix- GCC supports some transformations of the names of its programs when d293 13 a305 9 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffix- Appends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=pattern- Applies the ‘sed’ script pattern to be applied to the names d307 5 a311 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d313 1 a313 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d315 2 a316 2
All three options can be combined and used together, resulting in more d320 3 a322 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries' names are not transformed even when a d324 2 a325 2
For native builds, some of the installed programs are also installed d327 1 a327 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d329 1 a329 1 --program-prefix=foo- and program-suffix=-3.1, the d331 3 a333 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d335 4 a338 2
--with-local-prefix=dirname- Specify the d340 6 a345 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d347 4 a350 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d353 3 a355 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d358 4 a361 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC's “system include” directories. Although these d367 2 a368 2
Some autoconf macros add -I directory options to the d370 1 a370 1 packages' headers are searched. When directory is one of GCC's d375 3 a377 3
GCC automatically searches for ordinary libraries using GCC_EXEC_PREFIX. Thus, when the same installation prefix is d381 3 a383 3 installed as a system compiler in /usr.
Sites that need to install multiple versions of GCC may not want to d385 2 a386 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d388 1 a388 1 and the --with-local-prefix option to specify the location of the d391 9 a399 9 (e.g., with LIBRARY_PATH).
The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system's standard header files. If it did contain d402 3 a404 3 file corrections made by the fixincludes script.
Indications are that people who use this option use it based on mistaken d408 4 a411 2
--with-gcc-major-version-only- Specifies that GCC should use only the major number rather than d413 5 a417 3
--with-native-system-header-dir=dirname- Specifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d420 1 a420 1 --with-sysroot option and will cause GCC to search d422 4 a425 2
--enable-shared[=package[,...]]- Build shared versions of libraries, if shared libraries are supported on d428 2 a429 2
If a list of packages is given as an argument, build shared libraries d432 10 a441 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d443 4 a446 2
--enable-host-shared- Specify that the host code should be built into position-independent d449 4 a452 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d454 4 a457 2
--with-gnu-as- Specify that the compiler should assume that the d462 1 a462 1 configured with --with-gnu-as.) If you have more than one d464 4 a467 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d469 12 a480 10 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathname- Specify that the compiler should use the assembler pointed to by d483 4 a486 4
d506 1 a506 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d488 3 a490 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d493 2 a494 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d497 1 a497 1
- Check in the PATH for a tool whose name is prefixed by the d500 1 a500 1
- Check in the PATH for a tool whose name is not prefixed by the d503 2 a504 2 the target as well).
You may want to use --with-as if no assembler d510 4 a513 2
--with-gnu-ld- Same as --with-gnu-as d515 4 a518 2
--with-ld=pathname- Same as --with-as d520 4 a523 2
--with-stabs- Specify that stabs debugging d526 4 a529 27
On MIPS based systems and on Alphas, you must specify whether you want GCC to create the normal ECOFF debugging format, or to use BSD-style stabs passed through the ECOFF symbol table. The normal ECOFF debug format cannot fully handle languages other than C. BSD stabs format can handle other languages, but it only works with the GNU debugger GDB.
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly the debug format for a particular compilation.
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging information embedded in COFF output. This kind of debugging information supports C++ well; ordinary COFF debugging information does not.
--with-stabs is also meaningful on 386 systems running SVR4. It selects use of stabs debugging information embedded in ELF output. The C++ compiler currently (2.6.0) does not support the DWARF debugging information normally used on 386 SVR4 platforms; stabs provide a workable alternative. This requires gas and gdb, as the normal SVR4 tools can not generate or interpret stabs.
--with-tls=dialect- Specify the default TLS dialect, for systems were there is a choice. d533 4 a536 2
--enable-multiarch- Specify whether to enable or disable multiarch support. The default is d539 2 a540 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d543 5 a547 3
--enable-sjlj-exceptions- Force use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d549 4 a552 2--enable-vtable-verify- Specify whether to enable or disable the vtable verification feature. d557 1 a557 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d560 6 a565 4 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilib- Specify that multiple target d569 18 a586 11
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
arm-*-*- fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*- softfloat, m68881, m68000, m68020.
mips*-*-*- single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*- aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, d588 3 d592 4 a595 3
--with-multilib-list=list--without-multilib-list- Specify what multilibs to build. list is a comma separated list of d597 24 a620 11 for arm*-*-*, sh*-*-* and x86-64-*-linux*. The accepted values and meaning for each target is given below.
arm*-*-*- list is one of
default,aprofileorrmprofile. Specifyingdefaultis equivalent to omitting this option, ie. only the default runtime library will be enabled. Specifyingaprofileorrmprofilebuilds multilibs for a combination of ISA, architecture, FPU available and floating-point ABI.The table below gives the combination of ISAs, architectures, FPUs and d622 7 a628 7
d655 3 a657 1
Option aprofile rmprofile ISAs -marmand-mthumb-mthumbArchitectures
default architecture
d631 1 a631 2-march=armv8-a
default architecture
d637 2 a638 3-march=armv7FPUs
none
d643 1 a643 2-mfpu=neon-fp-armv8none
d647 2 a648 3-mfpu=fpv5-d16
floating-point ABIs
-mfloat-abi=soft
d650 1 a650 2-mfloat-abi=hard-mfloat-abi=soft
d652 2 a653 2-mfloat-abi=hardsh*-*-*- list is a comma separated list of CPU names. These must be of the d660 3 a662 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d664 4 a667 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d669 3 a671 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d674 6 d681 1 a681 5
Example 1: to configure a compiler for SH4A only, but supporting both endians, with little endian being the default:
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d683 8 a690 4
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- list is a comma separated list of
m32,m64and d694 4 a697 3If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled. d700 3 a702 1
--with-endian=endians- Specify what endians to use. d704 15 a718 7
endians may be one of the following:
big- Use big endian exclusively.
little- Use little endian exclusively.
big,little- Use big endian by default. Provide a multilib for little endian.
little,big- Use little endian by default. Provide a multilib for big endian. d721 3 a723 1
--enable-threads- Specify that the target d725 1 a725 1 library, and exception handling for other languages like C++. d727 2 a728 2
In general, the best (and, in many cases, the only known) threading d731 11 a741 7 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threads- Specify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=lib- Specify that d745 35 a779 13
aix- AIX thread support.
dce- DCE thread support.
lynx- LynxOS thread support.
mipssde- MIPS SDE thread support.
no- This is an alias for ‘single’.
posix- Generic POSIX/Unix98 thread support.
rtems- RTEMS thread support.
single- Disable thread support, should work for all platforms.
tpf- TPF thread support.
vxworks- VxWorks thread support.
win32- Microsoft Win32 API thread support. d782 3 a784 1
--enable-tls- Specify that the target supports TLS (Thread Local Storage). Usually d787 1 a787 1 --enable-tls or --disable-tls. This can happen if d790 12 a801 6
--disable-tls- Specify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpu- Specify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d803 2 a804 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d807 16 a822 5
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=type- These configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d824 4 a827 2
--with-mode=mode- Specify if the compiler should default to -marm or -mthumb. d829 4 a832 2
--with-stack-offset=num- This option sets the default for the -mstack-offset=num option, d835 6 a840 4
--with-fpmath=isa- This options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d842 4 a845 2
--with-fp-32=mode- On MIPS targets, set the default value for the -mfp option when using d847 13 a859 7
32- Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xx- Use the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- Use the o32 FP64 ABI extension, as with the -mfp64 command-line option. d861 1 a861 1 In the absence of this configuration option the default is to use the o32 d863 4 a866 2
--with-odd-spreg-32- On MIPS targets, set the -modd-spreg option by default when using d868 4 a871 2
--without-odd-spreg-32- On MIPS targets, set the -mno-odd-spreg option by default when using d873 5 a877 3 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encoding- On MIPS targets, set the default encoding convention to use for the d880 9 a888 5
legacy- Use the legacy encoding, as with the -mnan=legacy command-line option.
2008- Use the 754-2008 encoding, as with the -mnan=2008 command-line option. d890 2 a891 2 To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d893 7 a899 5 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=type- Specify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d901 8 a908 4
traps- Division by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- Division by zero checks use the break instruction. d911 5 a915 4
--with-llsc- On MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d918 25 a942 15
--without-llsc- On MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synci- On MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synci- On MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-lxc1-sxc1- On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default.
--without-lxc1-sxc1- On MIPS targets, make -mno-lxc1-sxc1 the default when no -mlxc1-sxc1 option is passed. The indexed load/store d954 10 a963 6
--with-madd4- On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default.
--without-madd4- On MIPS targets, make -mno-madd4 the default when no -mmadd4 option is passed. The
madd4instruction d970 4 a973 2--with-mips-plt- On MIPS targets, make use of copy relocations and PLTs. d977 5 a981 3
--enable-__cxa_atexit- Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d985 5 a989 3 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-function- Define if you want to enable the
ifuncattribute. This option is d991 5 a995 3--enable-target-optspace- Specify that target libraries should be optimized for code space instead of code speed. d997 9 a1005 5
--with-cpp-install-dir=dirname- Specify that the user visible cpp program should be installed in prefix/dirname/cpp, in addition to bindir.
--enable-comdat- Enable COMDAT group support. This is primarily used to override the d1007 4 a1010 2
--enable-initfini-array- Force the use of sections
.init_arrayand.fini_arrayd1012 1 a1012 1 destructors. Option --disable-initfini-array has the d1016 4 a1019 2--enable-link-mutex- When building GCC, use a mutex to avoid linking the compilers for d1022 5 a1026 3
--enable-maintainer-mode- The build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d1029 1 a1029 1 catalog, configuring with --enable-maintainer-mode will enable d1032 5 a1036 3
--disable-bootstrap- For a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d1038 6 a1043 4 this process, you can configure with --disable-bootstrap.
--enable-bootstrap- In special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d1045 1 a1045 1 the target (e.g. host is i686-linux, target is i486-linux). d1047 5 a1051 3 with --enable-bootstrap.
--enable-generated-files-in-srcdir- Neither the .c and .h files that are generated from Bison and flex nor the d1057 2 a1058 2
If you configure with --enable-generated-files-in-srcdir then those d1063 4 a1066 2
--enable-version-specific-runtime-libs- Specify d1068 2 a1069 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’'s include files will be installed into d1071 1 a1071 1 --with-gxx-include-dir=dirname. Using this option is d1073 6 a1078 4 parallel. This is currently supported by ‘libgfortran’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’- Traditional AIX shared library versioning (versioned
Shared Objectd1080 1 a1080 1 ‘lib.a’) causes numerous headaches for package managers. However, d1083 1 a1083 1 where this is called the "SONAME". But as they prevent static linking, d1085 23 a1107 20 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d1149 13 a1161 11
--with-aix-soname=aix--with-aix-soname=both- A (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- is used for runtime loading from inside the ‘libNAME.a’ file
- is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- is used for shared linking
- is used for static linking, so no separate
Static Archive d1109 15 a1123 12--with-aix-soname=both--with-aix-soname=svr4- A (second)
Shared Archive Libraryfile is created:A symbolic link using the ‘libNAME.so’ filename scheme is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- is created with the
-G linker flag- has the
F_LOADONLYflag set- is used for runtime loading from inside the ‘libNAME.so.V’ file
- is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d1125 2 a1126 2- with the
Import Fileas archive member named ‘shr.imp’, d1128 2 a1129 2
- refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d1131 13 a1143 13
- indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- is necessary for shared linking against ‘lib.so.V(shr.o)’
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d1145 3 a1147 2As long as static library creation is enabled, upon:
d1163 1 a1163 1
--with-aix-soname=svr4- A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd1170 2 a1171 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd1173 1 a1173 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d1176 2 a1177 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d1179 6 a1184 4
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,...- Specify that only a particular subset of compilers and d1187 10 a1196 9 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following:
all,ada,c,c++,fortran,go,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. If you do not pass this flag, or specify the optionall, then all default languages available in the gcc sub-tree will be configured. d1198 9 a1206 4 default language, but is built by default because --enable-lto is enabled by default. The other languages are default languages.--enable-stage1-languages=lang1,lang2,...- Specify that a particular subset of compilers and their runtime d1210 2 a1211 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d1216 7 a1222 5 specified languages with the stage-1 compiler by using make stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages using make stage1-start check-gcc.--disable-libada- Specify that the run-time libraries and tools used by GNAT should not d1225 5 a1229 3 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizer- Specify that the run-time libraries for the various sanitizers should d1231 10 a1240 5
--disable-libssp- Specify that the run-time libraries for stack smashing protection should not be built.
--disable-libquadmath- Specify that the GCC quad-precision math library should not be built. d1242 1 a1242 1 the Fortran front end, unless --disable-libquadmath-support d1244 4 a1247 2
--disable-libquadmath-support- Specify that the Fortran front end and
libgfortrando not add d1249 4 a1252 2--disable-libgomp- Specify that the GNU Offloading and Multi Processing Runtime Library d1254 4 a1257 2
--disable-libvtv- Specify that the run-time libraries used by vtable verification d1259 4 a1262 2
--with-dwarf2- Specify that the compiler should d1264 4 a1267 2
--with-advance-toolchain=at- On 64-bit PowerPC Linux systems, configure the compiler to use the d1273 5 a1277 2
--enable-targets=all--enable-targets=target_list- Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d1279 1 a1279 1 code. Typically, the corresponding 32-bit target, e.g. d1283 1 a1283 1 you are building a bi-arch or multi-arch binutils in a combined tree. d1285 1 a1285 1 defaulted to o32. d1288 8 a1295 4
--enable-default-pie- Turn on -fPIE and -pie by default.
--enable-secureplt- This option enables -msecure-plt by default for powerpc-linux. d1297 8 a1304 4
--enable-default-ssp- Turn on -fstack-protector-strong by default.
--enable-cld- This option enables -mcld by default for 32-bit x86 targets. d1306 6 a1311 2
--enable-win32-registry--enable-win32-registry=key--disable-win32-registry- The --enable-win32-registry option enables Microsoft Windows-hosted GCC d1313 4 d1318 2 a1319 4
HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1323 1 a1323 1 by default, and can be disabled by --disable-win32-registry d1325 15 a1339 8
--nfp- Specify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=no- When you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don't specify it, -Werror is turned on for the main d1341 1 a1341 1 final releases. The specific files which get -Werror are d1343 5 a1347 2
--enable-checking--enable-checking=list- When you specify this option, the compiler is built to perform internal d1351 3 a1353 3 the compiler with GCC. This is ‘yes,extra’ by default when building from SVN or snapshots, but ‘release’ for releases. The default for building the stage1 compiler is ‘yes’. More control d1355 8 a1362 8 checks available are ‘yes’ (most common checks ‘assert,misc,tree,gc,rtlflag,runtime’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). Individual checks can be enabled with these flags ‘assert’, ‘df’, ‘fold’, ‘gc’, ‘gcac’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘extra’ and ‘valgrind’. ‘extra’ adds for ‘misc’ checking extra checks that might affect d1365 2 a1366 2
The ‘valgrind’ check requires the external valgrind d1368 3 a1370 3 ‘df’, ‘rtl’, ‘gcac’ and ‘valgrind’ checks are very expensive. To disable all checking, ‘--disable-checking’ or ‘--enable-checking=none’ must be explicitly requested. Disabling d1374 7 a1380 3
--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=list- If no --enable-checking option is specified the stage1 compiler will be built with ‘yes’ checking enabled, otherwise d1382 3 a1384 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1386 1 a1386 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1388 5 a1392 2
--enable-coverage--enable-coverage=level- With this option, the compiler is built to collect self coverage d1396 1 a1396 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1400 4 a1403 2
--enable-gather-detailed-mem-stats- When this option is specified more detailed information on memory d1405 5 a1409 3 -fmem-report.
--enable-valgrind-annotations- Mark selected memory related operations in the compiler when run under d1411 5 a1415 2
--enable-nls--disable-nls- The --enable-nls option enables Native Language Support (NLS), d1418 10 a1427 6 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettext- If NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU gettext.
--with-catgets- If NLS is enabled, and if the host lacks
gettextbut has the d1429 12 a1440 8 ignorescatgetsand instead uses GCC's copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host'scatgetsin this situation.--with-libiconv-prefix=dir- Search for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsolete- Enable configuration for an obsoleted system. If you attempt to d1444 2 a1445 2
All support for systems which have been obsoleted in one release of GCC d1448 9 a1456 2
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-float- Enable (or disable) support for the C decimal floating point extension d1461 2 a1462 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1464 5 a1468 2
--enable-fixed-point--disable-fixed-point- Enable (or disable) support for C fixed-point arithmetic. d1472 4 a1475 2
--with-long-double-128- Specify if
long doubletype should be 128-bit by default on selected d1477 1 a1477 1long doublewill be by default 64-bit, the same asdoubletype. d1481 46 a1526 4--enable-fdpic- On SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathname- If you want to build GCC but do not have the GMP library, the MPFR d1530 12 a1541 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1546 3 a1548 3 variable (LD_LIBRARY_PATH on GNU/Linux and Solaris systems).
These flags are applicable to the host platform only. When building d1550 6 a1555 2
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathname- If you do not have the isl library installed in a standard location and you d1557 4 a1560 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1563 2 a1564 2
These flags are applicable to the host platform only. When building d1566 4 a1569 2
--with-stage1-ldflags=flags- This option may be used to set linker flags to be used when linking d1571 2 a1572 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1574 4 a1577 2
--with-stage1-libs=libs- This option may be used to set libraries to be used when linking stage 1 d1579 5 a1583 3 --disable-bootstrap.
--with-boot-ldflags=flags- This option may be used to set linker flags to be used when linking d1586 5 a1590 3 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libs- This option may be used to set libraries to be used when linking stage 2 d1592 4 a1595 2
--with-debug-prefix-map=map- Convert source directory names using -fdebug-prefix-map when d1597 6 a1602 4 list of maps of the form ‘old=new’.
--enable-linker-build-id- Tells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1604 7 a1610 5 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choice- Tells GCC to pass --hash-style=choice option to the d1612 6 a1617 3 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-object- Tells GCC to use the gnu_unique_object relocation for C++ template d1621 4 a1624 2
--with-diagnostics-color=choice- Tells GCC to use choice as the default for -fdiagnostics-color= d1626 3 a1628 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1630 12 a1641 6 -fdiagnostics-color=never otherwise.--enable-lto--disable-lto- Enable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGS- By default, linker plugins (such as the LTO plugin) are built for the d1646 2 a1647 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1650 12 a1661 8
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathname- Enable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1663 7 a1669 4 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headers- Enable system header path canonicalization for libcpp. This can d1673 5 a1677 3 --disable-canonical-system-headers.
--with-glibc-version=major.minor- Tell GCC that when the GNU C Library (glibc) is used on the target it d1679 1 a1679 1 be detected from the C library's header files, but this option may be d1682 3 a1684 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1687 8 a1694 4
--enable-as-accelerator-for=target- Build as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],...,targetN[=pathN]- Enable offloading to targets target1, ..., targetN. d1697 6 a1702 1 specifying paths path1, ..., pathN. d1704 1 a1704 4
% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1707 7 a1713 3
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathname- If you configure GCC with HSA offloading but do not have the HSA d1716 1 a1716 1 --with-hsa-runtime=hsainstalldir option is a d1718 18 a1735 2 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include. d1738 2 a1739 2
Cross-Compiler-Specific Options
d1741 6 a1746 4
--with-sysroot--with-sysroot=dir- Tells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1749 1 a1749 1 --sysroot=dir was added to the default options of the built d1751 5 a1755 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1757 2 a1758 2
This option affects the system root for the compiler used to build d1762 2 a1763 2
If you specify the --with-native-system-header-dir=dirname d1765 11 a1775 8 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dir- Tells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1777 2 a1778 2
This option affects the system root for the compiler used to build d1781 2 a1782 2
If you specify the --with-native-system-header-dir=dirname d1784 7 a1790 4 native system headers rather than the default /usr/include.
--with-headers--with-headers=dir- Deprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1792 5 a1796 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn't pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted. fixincludes d1798 4 a1801 2
--without-headers- Tells GCC not use any target headers from a libc when building a cross d1804 5 a1808 2
--with-libs--with-libs="dir1 dir2...dirN"- Deprecated in favor of --with-sysroot. d1810 1 a1810 1 libraries. These libraries will be copied into the gcc install d1813 4 a1816 2
--with-newlib- Specifies that ‘newlib’ is d1818 6 a1823 4 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibc- Specifies that ‘AVR-Libc’ is d1825 3 a1827 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1831 5 a1835 3--with-nds32-lib=library- Specifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1837 4 a1840 2
--with-build-time-tools=dir- Specifies where to find the set of target tools (assembler, linker, etc.) d1844 3 a1846 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1848 8 a1855 7 native tools in /usr/bin.
When you use this option, you should ensure that dir includes ar, as, ld, nm, ranlib and strip if necessary, and possibly objdump. Otherwise, GCC may use an inconsistent set of tools. d1858 2 a1859 1
Overriding configure test results
d1862 2 a1863 2 configure test, for example in order to ease porting to a new system or work around a bug in a test. The toplevel configure d1865 5 a1869 3
build_configargs- The contents of this variable is passed to all build configure d1871 5 a1875 2
host_configargs- The contents of this variable is passed to all host configure d1877 5 a1881 2
target_configargs- The contents of this variable is passed to all target configure d1883 3 d1887 2 a1888 4
In order to avoid shell and make quoting issues for complex overrides, you can pass a setting for CONFIG_SITE and set d1890 3 a1892 2
Objective-C-Specific Options
d1895 4 a1898 3
--enable-objc-gc- Specify that an additional variant of the GNU Objective-C runtime library d1902 1 a1902 1 --enable-objc-gc=‘auto’ in which case the build of the d1905 6 a1910 2
--with-target-bdw-gc=list--with-target-bdw-gc-include=list--with-target-bdw-gc-lib=list- Specify search directories for the garbage collector header files and d1912 6 a1917 6 form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’).
The options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together d1919 1 a1919 1 --with-target-bdw-gc. If --with-target-bdw-gc-include d1921 2 a1922 2 multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). d1924 2 a1925 1 default locations. d1928 2 a1929 1
d1931 10 a1941 10 d1943 2 @ 1.8 log @merge GCC 6.5. needs mknative as some new files appeared. @ text @d1 10 a10 3Installing GCC d41 6 d48 2 a49 8Installing GCC
d51 3 d55 2 a56 27Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.
We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell’s built-in
pwdcommand will return d58 3 a60 3 problems. To avoid this issue, set thePWDCMDenvironment variable to an automounter-awarepwdcommand, e.g.,pawdor ‘amq -w’, during the configuration and build d62 2 a63 2First, we highly recommend that GCC be built into a d66 1 a66 1 where srcdir == objdir should still work, but doesn’t d69 6 a74 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don’t know how to make distclean” it probably d78 3 a80 3
Second, when configuring a native system, either
d84 1 a84 7ccorgccmust be in your path or you must setCCin a82 1To configure GCC:
d86 5 a90 2% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d95 3 a97 4d108 8 a115 4
--with-pkgversion=versionSpecify a string that identifies your package. You may wish d99 6 a104 8 included in the output of
gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.The default value is ‘GCC’.
--with-bugurl=urlSpecify the URL that users should visit if they wish to report a bug. a106 5
The default value refers to the FSF’s GCC bug tracker.
Target specification
d127 1 a127 2
- GCC has code to correctly determine the correct value for target d119 1 a119 1
- target must be specified as --target=target d123 3 a125 4
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d130 2 a131 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d133 7 a139 8Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirnameSpecify the toplevel installation d142 3 a144 3 /usr/local.
We highly recommend against dirname being the same or a d146 5 a150 5 beneath a user’s home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use
$HOMEinstead.The following standard
autoconfoptions are supported. Normally you d152 2 a153 3d204 3 a206 3
--exec-prefix=dirnameSpecify the toplevel installation directory for architecture-dependent d155 12 a166 20
--bindir=dirnameSpecify the installation directory for the executables called by users (such as
gccandg++). The default is exec-prefix/bin.--libdir=dirnameSpecify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirnameSpecify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirnameSpecify the installation directory for the shared libgcc library. The d168 8 a175 14
--datarootdir=dirnameSpecify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirnameSpecify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirnameSpecify the installation directory for some architecture-independent d177 5 a181 9
--docdir=dirnameSpecify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirnameSpecify the installation directory for HTML documentation files. d183 2 a184 4
--pdfdir=dirnameSpecify the installation directory for PDF documentation files. d186 3 a188 5
--mandir=dirnameSpecify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d192 2 a193 4
--with-gxx-include-dir=dirnameSpecify d197 2 a198 4
--with-specs=specsSpecify additional command line driver SPECS. d200 2 a201 2 default without modifying the compiler’s source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. a202 3
--program-prefix=prefixGCC supports some transformations of the names of its programs when d209 9 a217 13 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names d219 5 a223 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d225 1 a225 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d227 2 a228 2
All three options can be combined and used together, resulting in more d232 3 a234 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries’ names are not transformed even when a d236 2 a237 2
For native builds, some of the installed programs are also installed d239 1 a239 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d241 1 a241 1 --program-prefix=foo- and program-suffix=-3.1, the d243 3 a245 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d247 2 a248 4
--with-local-prefix=dirnameSpecify the d250 6 a255 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d257 4 a260 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d263 3 a265 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d268 4 a271 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC’s “system include” directories. Although these d277 2 a278 2
Some autoconf macros add -I directory options to the d280 1 a280 1 packages’ headers are searched. When directory is one of GCC’s d285 3 a287 3
GCC automatically searches for ordinary libraries using
GCC_EXEC_PREFIX. Thus, when the same installation prefix is d291 3 a293 3 installed as a system compiler in /usr.Sites that need to install multiple versions of GCC may not want to d295 2 a296 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d298 1 a298 1 and the --with-local-prefix option to specify the location of the d301 9 a309 9 (e.g., with
LIBRARY_PATH).The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system’s standard header files. If it did contain d312 3 a314 3 file corrections made by the
fixincludesscript.Indications are that people who use this option use it based on mistaken d318 6 a323 5
--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d326 1 a326 1 --with-sysroot option and will cause GCC to search d328 2 a329 4
--enable-shared[=package[,…]]Build shared versions of libraries, if shared libraries are supported on d332 2 a333 2
If a list of packages is given as an argument, build shared libraries d336 10 a345 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libjava’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d347 2 a348 4
--enable-host-sharedSpecify that the host code should be built into position-independent d351 4 a354 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d356 2 a357 4
--with-gnu-asSpecify that the compiler should assume that the d362 1 a362 1 configured with --with-gnu-as.) If you have more than one d364 4 a367 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d369 10 a378 12 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathnameSpecify that the compiler should use the assembler pointed to by d381 4 a384 4
d404 1 a404 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d386 3 a388 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d391 2 a392 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d395 1 a395 1
- Check in the
PATHfor a tool whose name is prefixed by the d398 1 a398 1- Check in the
PATHfor a tool whose name is not prefixed by the d401 2 a402 2 the target as well).You may want to use --with-as if no assembler d408 2 a409 4
--with-gnu-ldSame as --with-gnu-as d411 2 a412 4
--with-ld=pathnameSame as --with-as d414 2 a415 4
--with-stabsSpecify that stabs debugging d418 2 a419 2
On MIPS based systems and on Alphas, you must specify whether you want d424 6 a429 6
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly d431 3 a433 3
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging d436 2 a437 2
--with-stabs is also meaningful on 386 systems running SVR4. It d443 2 a444 4
--with-tls=dialectSpecify the default TLS dialect, for systems were there is a choice. d448 2 a449 4
--enable-multiarchSpecify whether to enable or disable multiarch support. The default is d452 2 a453 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d456 3 a458 5
--enable-sjlj-exceptionsForce use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d460 2 a461 4--enable-vtable-verifySpecify whether to enable or disable the vtable verification feature. d466 1 a466 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d469 4 a472 6 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilibSpecify that multiple target d476 11 a486 18
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
d489 55 a543 20
arm-*-*fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*softfloat, m68881, m68000, m68020.
mips*-*-*single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, a487 3
--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. Currently only implemented for arm*-*-*, sh*-*-* and x86-64-*-linux*.
arm*-*-*list is either
defaultoraprofile. Specifyingdefaultis equivalent to omitting this option while specifyingaprofilebuilds multilibs for each combination of ISA (-marmor-mthumb), architecture (-march=armv7-a,-march=armv7ve, or-march=armv8-a), FPU available (none,-mfpu=vfpv3-d16,-mfpu=neon,-mfpu=vfpv4-d16,-mfpu=neon-vfpv4or-mfpu=neon-fp-armv8depending on architecture) and floating-point ABI (-mfloat-abi=softfpor-mfloat-abi=hard).sh*-*-*list is a comma separated list of CPU names. These must be of the d546 3 a548 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d550 4 a553 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d555 3 a557 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d560 2 a561 2
Example 1: to configure a compiler for SH4A only, but supporting both d563 3 a565 5
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d567 4 a570 8
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- d579 1 a579 3
list is a comma separated list of
m32,m64and d574 3 a576 4If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled.
--with-endian=endiansSpecify what endians to use. d581 7 a587 15
endians may be one of the following:
bigUse big endian exclusively.
littleUse little endian exclusively.
big,littleUse big endian by default. Provide a multilib for little endian.
little,big- d590 1 a590 3
Use little endian by default. Provide a multilib for big endian.
--enable-threadsSpecify that the target d592 1 a592 1 library, and exception handling for other languages like C++ and Java. d594 2 a595 2
In general, the best (and, in many cases, the only known) threading d598 7 a604 11 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threadsSpecify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=libSpecify that d607 14 a620 36 like C++ and Java. The possibilities for lib are:
aixAIX thread support.
dceDCE thread support.
lynxLynxOS thread support.
mipssdeMIPS SDE thread support.
noThis is an alias for ‘single’.
posixGeneric POSIX/Unix98 thread support.
rtemsRTEMS thread support.
singleDisable thread support, should work for all platforms.
tpfTPF thread support.
vxworksVxWorks thread support.
win32- d623 1 a623 3
Microsoft Win32 API thread support.
--enable-tlsSpecify that the target supports TLS (Thread Local Storage). Usually d626 1 a626 1 --enable-tls or --disable-tls. This can happen if d629 6 a634 12
--disable-tlsSpecify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpuSpecify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d636 2 a637 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d640 5 a644 16
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d646 2 a647 4
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. d649 2 a650 4
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, d653 4 a656 6
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d658 2 a659 4
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using d661 7 a667 13
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- d669 1 a669 1
Use the o32 FP64 ABI extension, as with the -mfp64 command-line option.
In the absence of this configuration option the default is to use the o32 d671 2 a672 4
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using d674 2 a675 4
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using d677 3 a679 5 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encodingOn MIPS targets, set the default encoding convention to use for the d682 5 a686 9
legacyUse the legacy encoding, as with the -mnan=legacy command-line option.
2008- d688 2 a689 2
Use the 754-2008 encoding, as with the -mnan=2008 command-line option.
To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d691 5 a695 7 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=typeSpecify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d697 4 a700 8
trapsDivision by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- d703 4 a706 5
Division by zero checks use the break instruction.
--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d709 40 a748 19
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-mips-pltOn MIPS targets, make use of copy relocations and PLTs. d752 3 a754 5
--enable-__cxa_atexitDefine if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d758 3 a760 5 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-functionDefine if you want to enable the
ifuncattribute. This option is d762 3 a764 5--enable-target-optspaceSpecify that target libraries should be optimized for code space instead of code speed. d766 5 a770 9
--with-cpp-install-dir=dirnameSpecify that the user visible
cppprogram should be installed in prefix/dirname/cpp, in addition to bindir.--enable-comdatEnable COMDAT group support. This is primarily used to override the d772 2 a773 4
--enable-initfini-arrayForce the use of sections
.init_arrayand.fini_arrayd775 1 a775 1 destructors. Option --disable-initfini-array has the d779 2 a780 4--enable-link-mutexWhen building GCC, use a mutex to avoid linking the compilers for d783 3 a785 5
--enable-maintainer-modeThe build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d788 1 a788 1 catalog, configuring with --enable-maintainer-mode will enable d791 3 a793 5
--disable-bootstrapFor a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d795 4 a798 6 this process, you can configure with --disable-bootstrap.
--enable-bootstrapIn special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d800 1 a800 1 the target (e.g. host is i686-linux, target is i486-linux). d802 3 a804 5 with --enable-bootstrap.
--enable-generated-files-in-srcdirNeither the .c and .h files that are generated from Bison and flex nor the d810 2 a811 2
If you configure with --enable-generated-files-in-srcdir then those d816 2 a817 4
--enable-version-specific-runtime-libsSpecify d819 2 a820 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into d822 1 a822 1 --with-gxx-include-dir=dirname. Using this option is d824 4 a827 6 parallel. This is currently supported by ‘libgfortran’, ‘libjava’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned
Shared Objectd829 1 a829 1 ‘lib.a’) causes numerous headaches for package managers. However, d832 1 a832 1 where this is called the "SONAME". But as they prevent static linking, d834 20 a853 23 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d891 11 a901 13
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- - is used for runtime loading from inside the ‘libNAME.a’ file
- - is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- - is used for shared linking
- - is used for static linking, so no separate
Static Archive d855 12 a866 15--with-aix-soname=both--with-aix-soname=svr4A (second)
Shared Archive Libraryfile is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- - is created with the
-G linker flag- - has the
F_LOADONLYflag set- - is used for runtime loading from inside the ‘libNAME.so.V’ file
- - is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d868 2 a869 2- with the
Import Fileas archive member named ‘shr.imp’, d871 2 a872 2
- - refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d874 13 a886 13
- - indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- - lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- - is necessary for shared linking against ‘lib.so.V(shr.o)’
A symbolic link using the ‘libNAME.so’ filename scheme is created:
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d888 2 a889 3As long as static library creation is enabled, upon:
d903 1 a903 1
--with-aix-soname=svr4A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- - are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd910 2 a911 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd913 1 a913 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d916 2 a917 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d919 4 a922 6
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,…Specify that only a particular subset of compilers and d925 4 a928 5 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following: d930 2 a931 2
go,java,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. d933 1 a933 1 default languages available in the gcc sub-tree will be configured. d935 1 a935 1 default language, but is built by default because --enable-lto is d937 2 a938 4--enable-stage1-languages=lang1,lang2,…Specify that a particular subset of compilers and their runtime d942 2 a943 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d948 5 a952 7 specified languages with the stage-1 compiler by usingmake stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages usingmake stage1-start check-gcc.--disable-libadaSpecify that the run-time libraries and tools used by GNAT should not d955 3 a957 5 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizerSpecify that the run-time libraries for the various sanitizers should d959 2 a960 4
--disable-libsspSpecify that the run-time libraries for stack smashing protection d962 2 a963 4
--disable-libquadmathSpecify that the GCC quad-precision math library should not be built. d965 1 a965 1 the Fortran front end, unless --disable-libquadmath-support d967 2 a968 4
--disable-libquadmath-supportSpecify that the Fortran front end and
libgfortrando not add d970 2 a971 4--disable-libgompSpecify that the GNU Offloading and Multi Processing Runtime Library d973 2 a974 4
--disable-libvtvSpecify that the run-time libraries used by vtable verification d976 2 a977 4
--with-dwarf2Specify that the compiler should d979 2 a980 4
--with-advance-toolchain=atOn 64-bit PowerPC Linux systems, configure the compiler to use the d986 2 a987 5
--enable-targets=all--enable-targets=target_listSome GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d989 1 a989 1 code. Typically, the corresponding 32-bit target, e.g. d993 1 a993 1 you are building a bi-arch or multi-arch binutils in a combined tree. d995 1 a995 1 defaulted to o32. d998 4 a1001 8
--enable-default-pieTurn on -fPIE and -pie by default.
--enable-securepltThis option enables -msecure-plt by default for powerpc-linux. d1003 4 a1006 8
--enable-default-sspTurn on -fstack-protector-strong by default.
--enable-cldThis option enables -mcld by default for 32-bit x86 targets. d1008 2 a1009 6
--enable-win32-registry--enable-win32-registry=key--disable-win32-registryThe --enable-win32-registry option enables Microsoft Windows-hosted GCC a1010 4
d1012 4 a1015 2HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1019 1 a1019 1 by default, and can be disabled by --disable-win32-registry d1021 8 a1028 15
--nfpSpecify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=noWhen you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don’t specify it, -Werror is turned on for the main d1030 1 a1030 1 final releases. The specific files which get -Werror are d1032 2 a1033 5
--enable-checking--enable-checking=listWhen you specify this option, the compiler is built to perform internal d1037 3 a1039 3 the compiler with GCC. This is ‘yes’ by default when building from SVN or snapshots, but ‘release’ for releases. The default for building the stage1 compiler is ‘yes’. More control d1041 12 a1052 9 checks available are ‘yes’ (most common checks ‘assert,misc,tree,gc,rtlflag,runtime’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). Individual checks can be enabled with these flags ‘assert’, ‘df’, ‘fold’, ‘gc’, ‘gcac’ ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, and ‘valgrind’.
The ‘valgrind’ check requires the external
valgrindd1054 3 a1056 3 ‘df’, ‘rtl’, ‘gcac’ and ‘valgrind’ checks are very expensive. To disable all checking, ‘--disable-checking’ or ‘--enable-checking=none’ must be explicitly requested. Disabling d1060 3 a1062 7--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=listIf no --enable-checking option is specified the stage1 compiler will be built with ‘yes’ checking enabled, otherwise d1064 3 a1066 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1068 1 a1068 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1070 2 a1071 5
--enable-coverage--enable-coverage=levelWith this option, the compiler is built to collect self coverage d1075 1 a1075 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1079 2 a1080 4
--enable-gather-detailed-mem-statsWhen this option is specified more detailed information on memory d1082 3 a1084 5 -fmem-report.
--enable-valgrind-annotationsMark selected memory related operations in the compiler when run under d1086 2 a1087 5
--enable-nls--disable-nlsThe --enable-nls option enables Native Language Support (NLS), d1090 6 a1095 10 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettextIf NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU
gettext.--with-catgetsIf NLS is enabled, and if the host lacks
gettextbut has the d1097 8 a1104 12 ignorescatgetsand instead uses GCC’s copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host’scatgetsin this situation.--with-libiconv-prefix=dirSearch for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsoleteEnable configuration for an obsoleted system. If you attempt to d1108 2 a1109 2
All support for systems which have been obsoleted in one release of GCC d1112 2 a1113 9
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-floatEnable (or disable) support for the C decimal floating point extension d1118 2 a1119 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1121 2 a1122 5
--enable-fixed-point--disable-fixed-pointEnable (or disable) support for C fixed-point arithmetic. d1126 2 a1127 4
--with-long-double-128Specify if
long doubletype should be 128-bit by default on selected d1129 1 a1129 1long doublewill be by default 64-bit, the same asdoubletype. d1133 4 a1136 16--enable-fdpicOn SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathnameIf you want to build GCC but do not have the GMP library, the MPFR d1140 12 a1151 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1156 3 a1158 3 variable (
LD_LIBRARY_PATHon GNU/Linux and Solaris systems).These flags are applicable to the host platform only. When building d1160 2 a1161 6
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathnameIf you do not have the isl library installed in a standard location and you d1163 4 a1166 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1169 2 a1170 2
These flags are applicable to the host platform only. When building d1172 2 a1173 4
--with-stage1-ldflags=flagsThis option may be used to set linker flags to be used when linking d1175 2 a1176 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1178 2 a1179 4
--with-stage1-libs=libsThis option may be used to set libraries to be used when linking stage 1 d1181 3 a1183 5 --disable-bootstrap.
--with-boot-ldflags=flagsThis option may be used to set linker flags to be used when linking d1186 3 a1188 5 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libsThis option may be used to set libraries to be used when linking stage 2 d1190 2 a1191 4
--with-debug-prefix-map=mapConvert source directory names using -fdebug-prefix-map when d1193 4 a1196 6 list of maps of the form ‘old=new’.
--enable-linker-build-idTells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1198 5 a1202 7 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choiceTells GCC to pass --hash-style=choice option to the d1204 3 a1206 6 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-objectTells GCC to use the gnu_unique_object relocation for C++ template d1210 2 a1211 4
--with-diagnostics-color=choiceTells GCC to use choice as the default for -fdiagnostics-color= d1213 3 a1215 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1217 6 a1222 12 -fdiagnostics-color=never otherwise.--enable-lto--disable-ltoEnable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGSBy default, linker plugins (such as the LTO plugin) are built for the d1227 2 a1228 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1231 8 a1238 12
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathnameEnable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1240 4 a1243 7 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headersEnable system header path canonicalization for libcpp. This can d1247 3 a1249 5 --disable-canonical-system-headers.
--with-glibc-version=major.minorTell GCC that when the GNU C Library (glibc) is used on the target it d1251 1 a1251 1 be detected from the C library’s header files, but this option may be d1254 3 a1256 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1259 4 a1262 8
--enable-as-accelerator-for=targetBuild as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],…,targetN[=pathN]Enable offloading to targets target1, …, targetN. d1265 1 a1265 6 specifying paths path1, …, pathN.
d1267 4 a1270 1% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1273 3 a1275 7
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathnameIf you configure GCC with HSA offloading but do not have the HSA d1278 1 a1278 1 --with-hsa-runtime=hsainstalldir option is a d1280 2 a1281 10 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include.
--with-hsa-kmt-lib=pathname- d1284 2 a1285 2
If you configure GCC with HSA offloading but do not have the HSA KMT library installed in a standard location then you can explicitly specify the directory where it resides.
Cross-Compiler-Specific Options
d1287 4 a1290 6
--with-sysroot--with-sysroot=dirTells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1293 1 a1293 1 --sysroot=dir was added to the default options of the built d1295 5 a1299 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1301 2 a1302 2
This option affects the system root for the compiler used to build d1306 2 a1307 2
If you specify the --with-native-system-header-dir=dirname d1309 8 a1316 11 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dirTells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1318 2 a1319 2
This option affects the system root for the compiler used to build d1322 2 a1323 2
If you specify the --with-native-system-header-dir=dirname d1325 4 a1328 7 native system headers rather than the default /usr/include.
--with-headers--with-headers=dirDeprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1330 5 a1334 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn’t pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted.
fixincludesd1336 2 a1337 4--without-headersTells GCC not use any target headers from a libc when building a cross d1340 2 a1341 5
--with-libs--with-libs="dir1 dir2 … dirN"Deprecated in favor of --with-sysroot. d1343 1 a1343 1 libraries. These libraries will be copied into the gcc install d1346 2 a1347 4
--with-newlibSpecifies that ‘newlib’ is d1349 4 a1352 6 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibcSpecifies that ‘AVR-Libc’ is d1354 3 a1356 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1360 3 a1362 5--with-nds32-lib=librarySpecifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1364 2 a1365 4
--with-build-time-tools=dir- d1382 1 a1382 2
Specifies where to find the set of target tools (assembler, linker, etc.) d1369 3 a1371 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1373 7 a1379 8 native tools in /usr/bin.
When you use this option, you should ensure that dir includes
ar,as,ld,nm,ranlibandstripif necessary, and possiblyobjdump. Otherwise, GCC may use an inconsistent set of tools.Overriding
d1385 2 a1386 2configuretest resultsconfiguretest, for example in order to ease porting to a new system or work around a bug in a test. The toplevelconfigured1388 3 a1390 5d1399 4 a1402 2
build_configargsThe contents of this variable is passed to all build
configured1392 2 a1393 5host_configargsThe contents of this variable is passed to all host
configured1395 2 a1396 5target_configargsThe contents of this variable is passed to all target
configurea1397 3In order to avoid shell and
makequoting issues for complex overrides, you can pass a setting forCONFIG_SITEand set a1403 21Java-Specific Options
The following option applies to the build of the Java front end.
d1405 1 a1405 205
--disable-libgcjSpecify that the run-time libraries used by GCJ should not be built. This is useful in case you intend to use GCJ with some other run-time, or you’re going to install it separately, or it just happens not to build on your particular machine. In general, if the Java front end is enabled, the GCJ libraries will be enabled too, unless they’re known to not work on the target platform. If GCJ is enabled but ‘libgcj’ isn’t built, you may need to port it; in this case, before modifying the top-level configure.ac so that ‘libgcj’ is enabled by default on this platform, you may use --enable-libgcj to override the default.
The following options apply to building ‘libgcj’.
General Options
d1407 1 a1407 2
--enable-java-maintainer-modeBy default the ‘libjava’ build will not attempt to compile the .java source files to .class. Instead, it will use the .class files from the source tree. If you use this option you must have executables named
ecj1andgjavahin your path for use by the build. You must use this option if you intend to modify any .java files in libjava.--with-java-home=dirnameThis ‘libjava’ option overrides the default value of the ‘java.home’ system property. It is also used to set ‘sun.boot.class.path’ to dirname/lib/rt.jar. By default ‘java.home’ is set to prefix and ‘sun.boot.class.path’ to datadir/java/libgcj-version.jar.
--with-ecj-jar=filenameThis option can be used to specify the location of an external jar file containing the Eclipse Java compiler. A specially modified version of this compiler is used by
gcjto parse .java source files. If this option is given, the ‘libjava’ build will create and install an ecj1 executable which uses this jar file at runtime.If this option is not given, but an ecj.jar file is found in the topmost source tree at configure time, then the ‘libgcj’ build will create and install ecj1, and will also install the discovered ecj.jar into a suitable place in the install tree.
If ecj1 is not installed, then the user will have to supply one on his path in order for
gcjto properly parse .java source files. A suitable jar is available from ftp://sourceware.org/pub/java/.--disable-getenv-propertiesDon’t set system properties from
GCJ_PROPERTIES.--enable-hash-synchronizationUse a global hash table for monitor locks. Ordinarily, ‘libgcj’’s ‘configure’ script automatically makes the correct choice for this option for your platform. Only use this if you know you need the library to be configured differently.
--enable-interpreterEnable the Java interpreter. The interpreter is automatically enabled by default on all platforms that support it. This option is really only useful if you want to disable the interpreter (using --disable-interpreter).
--disable-java-netDisable java.net. This disables the native part of java.net only, using non-functional stubs for native method implementations.
--disable-jvmpiDisable JVMPI support.
--disable-libgcj-bcDisable BC ABI compilation of certain parts of libgcj. By default, some portions of libgcj are compiled with -findirect-dispatch and -fno-indirect-classes, allowing them to be overridden at run-time.
If --disable-libgcj-bc is specified, libgcj is built without these options. This allows the compile-time linker to resolve dependencies when statically linking to libgcj. However it makes it impossible to override the affected portions of libgcj at run-time.
--enable-reduced-reflectionBuild most of libgcj with -freduced-reflection. This reduces the size of libgcj at the expense of not being able to do accurate reflection on the classes it contains. This option is safe if you know that code using libgcj will never use reflection on the standard runtime classes in libgcj (including using serialization, RMI or CORBA).
--with-ecosEnable runtime eCos target support.
--without-libffiDon’t use ‘libffi’. This will disable the interpreter and JNI support as well, as these require ‘libffi’ to work.
--enable-libgcj-debugEnable runtime debugging code.
--enable-libgcj-multifileIf specified, causes all .java source files to be compiled into .class files in one invocation of ‘gcj’. This can speed up build time, but is more resource-intensive. If this option is unspecified or disabled, ‘gcj’ is invoked once for each .java file to compile into a .class file.
--with-libiconv-prefix=DIRSearch for libiconv in DIR/include and DIR/lib.
--with-system-zlibUse installed ‘zlib’ rather than that included with GCC.
--with-win32-nlsapi=ansi, unicows or unicodeIndicates how MinGW ‘libgcj’ translates between UNICODE characters and the Win32 API.
--enable-java-homeIf enabled, this creates a JPackage compatible SDK environment during install. Note that if –enable-java-home is used, –with-arch-directory=ARCH must also be specified.
--with-arch-directory=ARCHSpecifies the name to use for the jre/lib/ARCH directory in the SDK environment created when –enable-java-home is passed. Typical names for this directory include i386, amd64, ia64, etc.
--with-os-directory=DIRSpecifies the OS directory for the SDK include directory. This is set to auto detect, and is typically ’linux’.
--with-origin-name=NAMESpecifies the JPackage origin name. This defaults to the ’gcj’ in java-1.5.0-gcj.
--with-arch-suffix=SUFFIXSpecifies the suffix for the sdk directory. Defaults to the empty string. Examples include ’.x86_64’ in ’java-1.5.0-gcj-1.5.0.0.x86_64’.
--with-jvm-root-dir=DIRSpecifies where to install the SDK. Default is $(prefix)/lib/jvm.
--with-jvm-jar-dir=DIRSpecifies where to install jars. Default is $(prefix)/lib/jvm-exports.
--with-python-dir=DIRSpecifies where to install the Python modules used for aot-compile. DIR should not include the prefix used in installation. For example, if the Python modules are to be installed in /usr/lib/python2.5/site-packages, then –with-python-dir=/lib/python2.5/site-packages should be passed. If this is not specified, then the Python modules are installed in $(prefix)/share/python.
--enable-aot-compile-rpmAdds aot-compile-rpm to the list of installed scripts.
--enable-browser-pluginBuild the gcjwebplugin web browser plugin.
--enable-static-libjavaBuild static libraries in libjava. The default is to only build shared libraries.
ansiUse the single-byte
charand the Win32 A functions natively, translating to and from UNICODE when using these functions. If unspecified, this is the default.unicowsUse the
WCHARand Win32 W functions natively. Adds-lunicowsto libgcj.spec to link with ‘libunicows’. unicows.dll needs to be deployed on Microsoft Windows 9X machines running built executables. libunicows.a, an open-source import library around Microsoft’sunicows.dll, is obtained from http://libunicows.sourceforge.net/, which also gives details on getting unicows.dll from Microsoft.unicodeUse the
WCHARand Win32 W functions natively. Does not add-lunicowsto libgcj.spec. The built executables will only run on Microsoft Windows NT and above.AWT-Specific Options
d1409 24 a1432 41
--with-xUse the X Window System.
--enable-java-awt=PEER(S)Specifies the AWT peer library or libraries to build alongside ‘libgcj’. If this option is unspecified or disabled, AWT will be non-functional. Current valid values are gtk and xlib. Multiple libraries should be separated by a comma (i.e. --enable-java-awt=gtk,xlib).
--enable-gtk-cairoBuild the cairo Graphics2D implementation on GTK.
--enable-java-gc=TYPEChoose garbage collector. Defaults to boehm if unspecified.
--disable-gtktestDo not try to compile and run a test GTK+ program.
--disable-glibtestDo not try to compile and run a test GLIB program.
--with-libart-prefix=PFXPrefix where libart is installed (optional).
--with-libart-exec-prefix=PFXExec prefix where libart is installed (optional).
--disable-libarttest- d1435 1 a1435 3
Do not try to compile and run a test libart program.
a1436 10
d1438 10 a1448 2 @ 1.7 log @merge GCC 6.4.0. sanitizer stuff is probably busted, but most other changes merged easily. docs need to be regenerated with modern versions still. @ text @d1 3 a3 10Installing GCC: Configuration d62 26 a87 4Installing GCC: Configuration
Like most GNU software, GCC must be configured before it can be built. d90 2 a91 2We use srcdir to refer to the toplevel source directory for d93 7 a99 7
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell's built-in pwd command will return d101 3 a103 3 problems. To avoid this issue, set the PWDCMD environment variable to an automounter-aware pwd command, e.g., pawd or ‘amq -w’, during the configuration and build d105 2 a106 2
First, we highly recommend that GCC be built into a d109 1 a109 1 where srcdir == objdir should still work, but doesn't d112 6 a117 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don't know how to make distclean” it probably d121 3 a123 3
Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in d126 1 d128 7 a134 1
To configure GCC: d136 2 a137 5
% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d142 4 a145 3
--with-pkgversion=version- Specify a string that identifies your package. You may wish d147 8 a154 6 included in the output of gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.
The default value is ‘GCC’.
--with-bugurl=url- Specify the URL that users should visit if they wish to report a bug. d157 5 d163 4 a166 8
The default value refers to the FSF's GCC bug tracker.
Target specification
d179 2 a180 1
- GCC has code to correctly determine the correct value for target d170 1 a170 1
- target must be specified as --target=target d174 4 a177 3
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d183 2 a184 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d186 8 a193 7Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirname- Specify the toplevel installation d196 3 a198 3 /usr/local.
We highly recommend against dirname being the same or a d200 5 a204 5 beneath a user's home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use $HOME instead.
The following standard autoconf options are supported. Normally you d206 3 a208 2
--exec-prefix=dirname- Specify the toplevel installation directory for architecture-dependent d210 20 a229 12
--bindir=dirname- Specify the installation directory for the executables called by users (such as gcc and g++). The default is exec-prefix/bin.
--libdir=dirname- Specify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirname- Specify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirname- Specify the installation directory for the shared libgcc library. The d231 14 a244 8
--datarootdir=dirname- Specify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirname- Specify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirname- Specify the installation directory for some architecture-independent d246 9 a254 5
--docdir=dirname- Specify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirname- Specify the installation directory for HTML documentation files. d256 4 a259 2
--pdfdir=dirname- Specify the installation directory for PDF documentation files. d261 5 a265 3
--mandir=dirname- Specify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d269 4 a272 2
--with-gxx-include-dir=dirname- Specify d276 4 a279 2
--with-specs=specs- Specify additional command line driver SPECS. d281 2 a282 2 default without modifying the compiler's source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. d284 3 d288 3 a290 3
--program-prefix=prefix- GCC supports some transformations of the names of its programs when d293 13 a305 9 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffix- Appends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=pattern- Applies the ‘sed’ script pattern to be applied to the names d307 5 a311 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d313 1 a313 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d315 2 a316 2
All three options can be combined and used together, resulting in more d320 3 a322 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries' names are not transformed even when a d324 2 a325 2
For native builds, some of the installed programs are also installed d327 1 a327 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d329 1 a329 1 --program-prefix=foo- and program-suffix=-3.1, the d331 3 a333 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d335 4 a338 2
--with-local-prefix=dirname- Specify the d340 6 a345 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d347 4 a350 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d353 3 a355 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d358 4 a361 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC's “system include” directories. Although these d367 2 a368 2
Some autoconf macros add -I directory options to the d370 1 a370 1 packages' headers are searched. When directory is one of GCC's d375 3 a377 3
GCC automatically searches for ordinary libraries using GCC_EXEC_PREFIX. Thus, when the same installation prefix is d381 3 a383 3 installed as a system compiler in /usr.
Sites that need to install multiple versions of GCC may not want to d385 2 a386 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d388 1 a388 1 and the --with-local-prefix option to specify the location of the d391 9 a399 9 (e.g., with LIBRARY_PATH).
The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system's standard header files. If it did contain d402 3 a404 3 file corrections made by the fixincludes script.
Indications are that people who use this option use it based on mistaken d408 5 a412 3
--with-native-system-header-dir=dirname- Specifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d415 1 a415 1 --with-sysroot option and will cause GCC to search d417 4 a420 2
--enable-shared[=package[,...]]- Build shared versions of libraries, if shared libraries are supported on d423 2 a424 2
If a list of packages is given as an argument, build shared libraries d427 10 a436 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libjava’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d438 4 a441 2
--enable-host-shared- Specify that the host code should be built into position-independent d444 4 a447 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d449 4 a452 2
--with-gnu-as- Specify that the compiler should assume that the d457 1 a457 1 configured with --with-gnu-as.) If you have more than one d459 4 a462 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d464 12 a475 10 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathname- Specify that the compiler should use the assembler pointed to by d478 4 a481 4
d501 1 a501 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d483 3 a485 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d488 2 a489 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d492 1 a492 1
- Check in the PATH for a tool whose name is prefixed by the d495 1 a495 1
- Check in the PATH for a tool whose name is not prefixed by the d498 2 a499 2 the target as well).
You may want to use --with-as if no assembler d505 4 a508 2
--with-gnu-ld- Same as --with-gnu-as d510 4 a513 2
--with-ld=pathname- Same as --with-as d515 4 a518 2
--with-stabs- Specify that stabs debugging d521 2 a522 2
On MIPS based systems and on Alphas, you must specify whether you want d527 6 a532 6
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly d534 3 a536 3
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging d539 2 a540 2
--with-stabs is also meaningful on 386 systems running SVR4. It d546 4 a549 2
--with-tls=dialect- Specify the default TLS dialect, for systems were there is a choice. d553 4 a556 2
--enable-multiarch- Specify whether to enable or disable multiarch support. The default is d559 2 a560 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d563 5 a567 3
--enable-sjlj-exceptions- Force use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d569 4 a572 2--enable-vtable-verify- Specify whether to enable or disable the vtable verification feature. d577 1 a577 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d580 6 a585 4 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilib- Specify that multiple target d589 18 a606 11
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
arm-*-*- fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*- softfloat, m68881, m68000, m68020.
mips*-*-*- single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*- aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, d608 3 d612 4 a615 3
--with-multilib-list=list--without-multilib-list- Specify what multilibs to build. d617 4 a620 3
arm*-*-*- list is either
defaultoraprofile. Specifying d628 4 a631 2sh*-*-*- list is a comma separated list of CPU names. These must be of the d634 3 a636 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d638 4 a641 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d643 3 a645 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d648 6 d655 1 a655 5
Example 1: to configure a compiler for SH4A only, but supporting both endians, with little endian being the default:
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d657 8 a664 4
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- list is a comma separated list of
m32,m64and d668 4 a671 3If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled. d674 3 a676 1
--with-endian=endians- Specify what endians to use. d678 15 a692 7
endians may be one of the following:
big- Use big endian exclusively.
little- Use little endian exclusively.
big,little- Use big endian by default. Provide a multilib for little endian.
little,big- Use little endian by default. Provide a multilib for big endian. d695 3 a697 1
--enable-threads- Specify that the target d699 1 a699 1 library, and exception handling for other languages like C++ and Java. d701 2 a702 2
In general, the best (and, in many cases, the only known) threading d705 11 a715 7 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threads- Specify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=lib- Specify that d719 35 a753 13
aix- AIX thread support.
dce- DCE thread support.
lynx- LynxOS thread support.
mipssde- MIPS SDE thread support.
no- This is an alias for ‘single’.
posix- Generic POSIX/Unix98 thread support.
rtems- RTEMS thread support.
single- Disable thread support, should work for all platforms.
tpf- TPF thread support.
vxworks- VxWorks thread support.
win32- Microsoft Win32 API thread support. d756 3 a758 1
--enable-tls- Specify that the target supports TLS (Thread Local Storage). Usually d761 1 a761 1 --enable-tls or --disable-tls. This can happen if d764 12 a775 6
--disable-tls- Specify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpu- Specify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d777 2 a778 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d781 16 a796 5
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=type- These configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d798 4 a801 2
--with-mode=mode- Specify if the compiler should default to -marm or -mthumb. d803 4 a806 2
--with-stack-offset=num- This option sets the default for the -mstack-offset=num option, d809 6 a814 4
--with-fpmath=isa- This options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d816 4 a819 2
--with-fp-32=mode- On MIPS targets, set the default value for the -mfp option when using d821 13 a833 7
32- Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xx- Use the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- Use the o32 FP64 ABI extension, as with the -mfp64 command-line option. d835 1 a835 1 In the absence of this configuration option the default is to use the o32 d837 4 a840 2
--with-odd-spreg-32- On MIPS targets, set the -modd-spreg option by default when using d842 4 a845 2
--without-odd-spreg-32- On MIPS targets, set the -mno-odd-spreg option by default when using d847 5 a851 3 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encoding- On MIPS targets, set the default encoding convention to use for the d854 9 a862 5
legacy- Use the legacy encoding, as with the -mnan=legacy command-line option.
2008- Use the 754-2008 encoding, as with the -mnan=2008 command-line option. d864 2 a865 2 To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d867 7 a873 5 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=type- Specify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d875 8 a882 4
traps- Division by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- Division by zero checks use the break instruction. d885 5 a889 4
--with-llsc- On MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d892 19 a910 11
--without-llsc- On MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synci- On MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synci- On MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-mips-plt- On MIPS targets, make use of copy relocations and PLTs. d914 5 a918 3
--enable-__cxa_atexit- Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d922 5 a926 3 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-function- Define if you want to enable the
ifuncattribute. This option is d928 5 a932 3--enable-target-optspace- Specify that target libraries should be optimized for code space instead of code speed. d934 9 a942 5
--with-cpp-install-dir=dirname- Specify that the user visible cpp program should be installed in prefix/dirname/cpp, in addition to bindir.
--enable-comdat- Enable COMDAT group support. This is primarily used to override the d944 4 a947 2
--enable-initfini-array- Force the use of sections
.init_arrayand.fini_arrayd949 1 a949 1 destructors. Option --disable-initfini-array has the d953 4 a956 2--enable-link-mutex- When building GCC, use a mutex to avoid linking the compilers for d959 5 a963 3
--enable-maintainer-mode- The build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d966 1 a966 1 catalog, configuring with --enable-maintainer-mode will enable d969 5 a973 3
--disable-bootstrap- For a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d975 6 a980 4 this process, you can configure with --disable-bootstrap.
--enable-bootstrap- In special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d982 1 a982 1 the target (e.g. host is i686-linux, target is i486-linux). d984 5 a988 3 with --enable-bootstrap.
--enable-generated-files-in-srcdir- Neither the .c and .h files that are generated from Bison and flex nor the d994 2 a995 2
If you configure with --enable-generated-files-in-srcdir then those d1000 4 a1003 2
--enable-version-specific-runtime-libs- Specify d1005 2 a1006 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’'s include files will be installed into d1008 1 a1008 1 --with-gxx-include-dir=dirname. Using this option is d1010 6 a1015 4 parallel. This is currently supported by ‘libgfortran’, ‘libjava’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’- Traditional AIX shared library versioning (versioned
Shared Objectd1017 1 a1017 1 ‘lib.a’) causes numerous headaches for package managers. However, d1020 1 a1020 1 where this is called the "SONAME". But as they prevent static linking, d1022 23 a1044 20 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d1086 13 a1098 11
--with-aix-soname=aix--with-aix-soname=both- A (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- is used for runtime loading from inside the ‘libNAME.a’ file
- is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- is used for shared linking
- is used for static linking, so no separate
Static Archive d1046 15 a1060 12--with-aix-soname=both--with-aix-soname=svr4- A (second)
Shared Archive Libraryfile is created:A symbolic link using the ‘libNAME.so’ filename scheme is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- is created with the
-G linker flag- has the
F_LOADONLYflag set- is used for runtime loading from inside the ‘libNAME.so.V’ file
- is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d1062 2 a1063 2- with the
Import Fileas archive member named ‘shr.imp’, d1065 2 a1066 2
- refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d1068 13 a1080 13
- indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- is necessary for shared linking against ‘lib.so.V(shr.o)’
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d1082 3 a1084 2As long as static library creation is enabled, upon:
d1100 1 a1100 1
--with-aix-soname=svr4- A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd1107 2 a1108 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd1110 1 a1110 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d1113 2 a1114 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d1116 6 a1121 4
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,...- Specify that only a particular subset of compilers and d1124 5 a1128 4 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following: d1130 2 a1131 2
go,java,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. d1133 1 a1133 1 default languages available in the gcc sub-tree will be configured. d1135 1 a1135 1 default language, but is built by default because --enable-lto is d1137 4 a1140 2--enable-stage1-languages=lang1,lang2,...- Specify that a particular subset of compilers and their runtime d1144 2 a1145 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d1150 7 a1156 5 specified languages with the stage-1 compiler by using make stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages using make stage1-start check-gcc.--disable-libada- Specify that the run-time libraries and tools used by GNAT should not d1159 5 a1163 3 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizer- Specify that the run-time libraries for the various sanitizers should d1165 4 a1168 2
--disable-libssp- Specify that the run-time libraries for stack smashing protection d1170 4 a1173 2
--disable-libquadmath- Specify that the GCC quad-precision math library should not be built. d1175 1 a1175 1 the Fortran front end, unless --disable-libquadmath-support d1177 4 a1180 2
--disable-libquadmath-support- Specify that the Fortran front end and
libgfortrando not add d1182 4 a1185 2--disable-libgomp- Specify that the GNU Offloading and Multi Processing Runtime Library d1187 4 a1190 2
--disable-libvtv- Specify that the run-time libraries used by vtable verification d1192 4 a1195 2
--with-dwarf2- Specify that the compiler should d1197 4 a1200 2
--with-advance-toolchain=at- On 64-bit PowerPC Linux systems, configure the compiler to use the d1206 5 a1210 2
--enable-targets=all--enable-targets=target_list- Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d1212 1 a1212 1 code. Typically, the corresponding 32-bit target, e.g. d1216 1 a1216 1 you are building a bi-arch or multi-arch binutils in a combined tree. d1218 1 a1218 1 defaulted to o32. d1221 8 a1228 4
--enable-default-pie- Turn on -fPIE and -pie by default.
--enable-secureplt- This option enables -msecure-plt by default for powerpc-linux. d1230 8 a1237 4
--enable-default-ssp- Turn on -fstack-protector-strong by default.
--enable-cld- This option enables -mcld by default for 32-bit x86 targets. d1239 6 a1244 2
--enable-win32-registry--enable-win32-registry=key--disable-win32-registry- The --enable-win32-registry option enables Microsoft Windows-hosted GCC d1246 4 d1251 2 a1252 4
HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1256 1 a1256 1 by default, and can be disabled by --disable-win32-registry d1258 15 a1272 8
--nfp- Specify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=no- When you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don't specify it, -Werror is turned on for the main d1274 1 a1274 1 final releases. The specific files which get -Werror are d1276 5 a1280 2
--enable-checking--enable-checking=list- When you specify this option, the compiler is built to perform internal d1284 3 a1286 3 the compiler with GCC. This is ‘yes’ by default when building from SVN or snapshots, but ‘release’ for releases. The default for building the stage1 compiler is ‘yes’. More control d1288 9 a1296 9 checks available are ‘yes’ (most common checks ‘assert,misc,tree,gc,rtlflag,runtime’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). Individual checks can be enabled with these flags ‘assert’, ‘df’, ‘fold’, ‘gc’, ‘gcac’ ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, and ‘valgrind’.
The ‘valgrind’ check requires the external valgrind d1298 3 a1300 3 ‘df’, ‘rtl’, ‘gcac’ and ‘valgrind’ checks are very expensive. To disable all checking, ‘--disable-checking’ or ‘--enable-checking=none’ must be explicitly requested. Disabling d1304 7 a1310 3
--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=list- If no --enable-checking option is specified the stage1 compiler will be built with ‘yes’ checking enabled, otherwise d1312 3 a1314 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1316 1 a1316 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1318 5 a1322 2
--enable-coverage--enable-coverage=level- With this option, the compiler is built to collect self coverage d1326 1 a1326 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1330 4 a1333 2
--enable-gather-detailed-mem-stats- When this option is specified more detailed information on memory d1335 5 a1339 3 -fmem-report.
--enable-valgrind-annotations- Mark selected memory related operations in the compiler when run under d1341 5 a1345 2
--enable-nls--disable-nls- The --enable-nls option enables Native Language Support (NLS), d1348 10 a1357 6 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettext- If NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU gettext.
--with-catgets- If NLS is enabled, and if the host lacks
gettextbut has the d1359 12 a1370 8 ignorescatgetsand instead uses GCC's copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host'scatgetsin this situation.--with-libiconv-prefix=dir- Search for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsolete- Enable configuration for an obsoleted system. If you attempt to d1374 2 a1375 2
All support for systems which have been obsoleted in one release of GCC d1378 9 a1386 2
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-float- Enable (or disable) support for the C decimal floating point extension d1391 2 a1392 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1394 5 a1398 2
--enable-fixed-point--disable-fixed-point- Enable (or disable) support for C fixed-point arithmetic. d1402 4 a1405 2
--with-long-double-128- Specify if
long doubletype should be 128-bit by default on selected d1407 1 a1407 1long doublewill be by default 64-bit, the same asdoubletype. d1411 16 a1426 4--enable-fdpic- On SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathname- If you want to build GCC but do not have the GMP library, the MPFR d1430 12 a1441 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1446 3 a1448 3 variable (LD_LIBRARY_PATH on GNU/Linux and Solaris systems).
These flags are applicable to the host platform only. When building d1450 6 a1455 2
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathname- If you do not have the isl library installed in a standard location and you d1457 4 a1460 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1463 2 a1464 2
These flags are applicable to the host platform only. When building d1466 4 a1469 2
--with-stage1-ldflags=flags- This option may be used to set linker flags to be used when linking d1471 2 a1472 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1474 4 a1477 2
--with-stage1-libs=libs- This option may be used to set libraries to be used when linking stage 1 d1479 5 a1483 3 --disable-bootstrap.
--with-boot-ldflags=flags- This option may be used to set linker flags to be used when linking d1486 5 a1490 3 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libs- This option may be used to set libraries to be used when linking stage 2 d1492 4 a1495 2
--with-debug-prefix-map=map- Convert source directory names using -fdebug-prefix-map when d1497 6 a1502 4 list of maps of the form ‘old=new’.
--enable-linker-build-id- Tells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1504 7 a1510 5 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choice- Tells GCC to pass --hash-style=choice option to the d1512 6 a1517 3 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-object- Tells GCC to use the gnu_unique_object relocation for C++ template d1521 4 a1524 2
--with-diagnostics-color=choice- Tells GCC to use choice as the default for -fdiagnostics-color= d1526 3 a1528 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1530 12 a1541 6 -fdiagnostics-color=never otherwise.--enable-lto--disable-lto- Enable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGS- By default, linker plugins (such as the LTO plugin) are built for the d1546 2 a1547 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1550 12 a1561 8
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathname- Enable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1563 7 a1569 4 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headers- Enable system header path canonicalization for libcpp. This can d1573 5 a1577 3 --disable-canonical-system-headers.
--with-glibc-version=major.minor- Tell GCC that when the GNU C Library (glibc) is used on the target it d1579 1 a1579 1 be detected from the C library's header files, but this option may be d1582 3 a1584 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1587 8 a1594 4
--enable-as-accelerator-for=target- Build as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],...,targetN[=pathN]- Enable offloading to targets target1, ..., targetN. d1597 6 a1602 1 specifying paths path1, ..., pathN. d1604 1 a1604 4
% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1607 7 a1613 3
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathname- If you configure GCC with HSA offloading but do not have the HSA d1616 1 a1616 1 --with-hsa-runtime=hsainstalldir option is a d1618 7 a1624 5 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include.
--with-hsa-kmt-lib=pathname- If you configure GCC with HSA offloading but do not have the HSA d1626 2 a1627 1 explicitly specify the directory where it resides. d1630 2 a1631 2
Cross-Compiler-Specific Options
d1633 6 a1638 4
--with-sysroot--with-sysroot=dir- Tells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1641 1 a1641 1 --sysroot=dir was added to the default options of the built d1643 5 a1647 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1649 2 a1650 2
This option affects the system root for the compiler used to build d1654 2 a1655 2
If you specify the --with-native-system-header-dir=dirname d1657 11 a1667 8 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dir- Tells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1669 2 a1670 2
This option affects the system root for the compiler used to build d1673 2 a1674 2
If you specify the --with-native-system-header-dir=dirname d1676 7 a1682 4 native system headers rather than the default /usr/include.
--with-headers--with-headers=dir- Deprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1684 5 a1688 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn't pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted. fixincludes d1690 4 a1693 2
--without-headers- Tells GCC not use any target headers from a libc when building a cross d1696 5 a1700 2
--with-libs--with-libs="dir1 dir2...dirN"- Deprecated in favor of --with-sysroot. d1702 1 a1702 1 libraries. These libraries will be copied into the gcc install d1705 4 a1708 2
--with-newlib- Specifies that ‘newlib’ is d1710 6 a1715 4 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibc- Specifies that ‘AVR-Libc’ is d1717 3 a1719 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1723 5 a1727 3--with-nds32-lib=library- Specifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1729 4 a1732 2
--with-build-time-tools=dir- Specifies where to find the set of target tools (assembler, linker, etc.) d1736 3 a1738 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1740 8 a1747 7 native tools in /usr/bin.
When you use this option, you should ensure that dir includes ar, as, ld, nm, ranlib and strip if necessary, and possibly objdump. Otherwise, GCC may use an inconsistent set of tools. d1750 2 a1751 1
Overriding configure test results
d1754 2 a1755 2 configure test, for example in order to ease porting to a new system or work around a bug in a test. The toplevel configure d1757 5 a1761 3
build_configargs- The contents of this variable is passed to all build configure d1763 5 a1767 2
host_configargs- The contents of this variable is passed to all host configure d1769 5 a1773 2
target_configargs- The contents of this variable is passed to all target configure d1775 3 d1779 2 a1780 4
In order to avoid shell and make quoting issues for complex overrides, you can pass a setting for CONFIG_SITE and set d1782 3 a1784 2
Java-Specific Options
d1787 4 a1790 3
--disable-libgcj- Specify that the run-time libraries d1792 1 a1792 1 to use GCJ with some other run-time, or you're going to install it d1795 2 a1796 2 libraries will be enabled too, unless they're known to not work on the target platform. If GCJ is enabled but ‘libgcj’ isn't built, you d1798 5 a1802 8 configure.ac so that ‘libgcj’ is enabled by default on this platform, you may use --enable-libgcj to override the default.
The following options apply to building ‘libgcj’.
General Options
d1804 11 a1814 5
--enable-java-maintainer-mode- By default the ‘libjava’ build will not attempt to compile the .java source files to .class. Instead, it will use the .class files from the source tree. If you use this option you must have executables named ecj1 and gjavah in your path d1816 14 a1829 10 modify any .java files in libjava.
--with-java-home=dirname- This ‘libjava’ option overrides the default value of the ‘java.home’ system property. It is also used to set ‘sun.boot.class.path’ to dirname/lib/rt.jar. By default ‘java.home’ is set to prefix and ‘sun.boot.class.path’ to datadir/java/libgcj-version.jar.
--with-ecj-jar=filename- This option can be used to specify the location of an external jar d1831 3 a1833 3 version of this compiler is used by gcj to parse .java source files. If this option is given, the ‘libjava’ build will create and install an ecj1 executable d1835 8 a1842 8
If this option is not given, but an ecj.jar file is found in the topmost source tree at configure time, then the ‘libgcj’ build will create and install ecj1, and will also install the discovered ecj.jar into a suitable place in the install tree.
If ecj1 is not installed, then the user will have to supply one on his path in order for gcj to properly parse .java d1845 9 a1853 5
--disable-getenv-properties- Don't set system properties from GCJ_PROPERTIES.
--enable-hash-synchronization- Use a global hash table for monitor locks. Ordinarily, ‘libgcj’'s ‘configure’ script automatically makes d1856 4 a1859 2
--enable-interpreter- Enable the Java interpreter. The interpreter is automatically d1862 5 a1866 3 (using --disable-interpreter).
--disable-java-net- Disable java.net. This disables the native part of java.net only, d1868 10 a1877 6
--disable-jvmpi- Disable JVMPI support.
--disable-libgcj-bc- Disable BC ABI compilation of certain parts of libgcj. By default, some portions of libgcj are compiled with -findirect-dispatch and -fno-indirect-classes, allowing them to be overridden at d1879 2 a1880 2
If --disable-libgcj-bc is specified, libgcj is built without d1884 4 a1887 2
--enable-reduced-reflection- Build most of libgcj with -freduced-reflection. This reduces d1892 19 a1910 11
--with-ecos- Enable runtime eCos target support.
--without-libffi- Don't use ‘libffi’. This will disable the interpreter and JNI support as well, as these require ‘libffi’ to work.
--enable-libgcj-debug- Enable runtime debugging code.
--enable-libgcj-multifile- If specified, causes all .java source files to be compiled into .class files in one invocation of ‘gcj’. This can speed up build time, but is more d1912 14 a1925 8 disabled, ‘gcj’ is invoked once for each .java file to compile into a .class file.
--with-libiconv-prefix=DIR- Search for libiconv in DIR/include and DIR/lib.
--with-system-zlib- Use installed ‘zlib’ rather than that included with GCC.
--with-win32-nlsapi=ansi, unicows or unicode- Indicates how MinGW ‘libgcj’ translates between UNICODE d1927 4 a1930 2
--enable-java-home- If enabled, this creates a JPackage compatible SDK environment during install. d1933 4 a1936 2
--with-arch-directory=ARCH- Specifies the name to use for the jre/lib/ARCH directory in the SDK d1939 9 a1947 5
--with-os-directory=DIR- Specifies the OS directory for the SDK include directory. This is set to auto detect, and is typically 'linux'.
--with-origin-name=NAME- Specifies the JPackage origin name. This defaults to the 'gcj' in d1949 17 a1965 9
--with-arch-suffix=SUFFIX- Specifies the suffix for the sdk directory. Defaults to the empty string. Examples include '.x86_64' in 'java-1.5.0-gcj-1.5.0.0.x86_64'.
--with-jvm-root-dir=DIR- Specifies where to install the SDK. Default is $(prefix)/lib/jvm.
--with-jvm-jar-dir=DIR- Specifies where to install jars. Default is $(prefix)/lib/jvm-exports.
--with-python-dir=DIR- Specifies where to install the Python modules used for aot-compile. DIR should d1970 12 a1981 6
--enable-aot-compile-rpm- Adds aot-compile-rpm to the list of installed scripts.
--enable-browser-plugin- Build the gcjwebplugin web browser plugin.
--enable-static-libjava- Build static libraries in libjava. The default is to only build shared d1983 4 a1986 3
a2055 1
ansi- Use the single-byte
charand the Win32 A functions natively, d1989 20 d2010 2 a2011 7unicows- Use the
WCHARand Win32 W functions natively. Adds-lunicowsto libgcj.spec to link with ‘libunicows’. unicows.dll needs to be deployed on Microsoft Windows 9X machines running built executables. libunicows.a, an open-source import library around Microsoft'sunicows.dll, is obtained from http://libunicows.sourceforge.net/, which also gives details on getting unicows.dll from Microsoft. d2013 41 a2053 3unicode- Use the
WCHARand Win32 W functions natively. Does not add-lunicowsto libgcj.spec. The built executables will only run on Microsoft Windows NT and above. a2054 1AWT-Specific Options
d2057 4 a2060 8a2069 2
--with-x- Use the X Window System.
--enable-java-awt=PEER(S)- Specifies the AWT peer library or libraries to build alongside ‘libgcj’. If this option is unspecified or disabled, AWT will be non-functional. Current valid values are gtk and xlib. Multiple libraries should be separated by a comma (i.e. --enable-java-awt=gtk,xlib). a2061 1
--enable-gtk-cairo- Build the cairo Graphics2D implementation on GTK. a2062 1
--enable-java-gc=TYPE- Choose garbage collector. Defaults to boehm if unspecified. a2063 1
--disable-gtktest- Do not try to compile and run a test GTK+ program. a2064 1
--disable-glibtest- Do not try to compile and run a test GLIB program. a2065 1
--with-libart-prefix=PFX- Prefix where libart is installed (optional). a2066 1
--with-libart-exec-prefix=PFX- Exec prefix where libart is installed (optional). a2067 1
--disable-libarttest- Do not try to compile and run a test libart program. a2068 1
Return to the GCC Installation page a2070 10 d2072 2 @ 1.7.4.1 log @Sync with HEAD @ text @a318 3
--with-gcc-major-version-only- Specifies that GCC should use only the major number rather than major.minor.patchlevel in filesystem paths. d335 1 a335 1 ‘ada’, ‘libada’, ‘libgo’, and ‘libobjc’. d354 1 a354 1
--with-gnu-as- Specify that the compiler should assume that the d375 1 a375 1
--with-as=pathname- Specify that the compiler should use the assembler pointed to by d406 1 a406 1
--with-gnu-ld- Same as --with-gnu-as d488 2 a489 4
--with-multilib-list=list--without-multilib-list- Specify what multilibs to build. list is a comma separated list of values, possibly consisting of a single value. Currently only implemented for arm*-*-*, sh*-*-* and x86-64-*-linux*. The accepted values and meaning for each target is given below. d492 8 a499 45
arm*-*-*- list is one of
default,aprofileorrmprofile. Specifyingdefaultis equivalent to omitting this option, ie. only the default runtime library will be enabled. Specifyingaprofileorrmprofilebuilds multilibs for a combination of ISA, architecture, FPU available and floating-point ABI.The table below gives the combination of ISAs, architectures, FPUs and floating-point ABIs for which multilibs are built for each accepted value.
d550 1 a550 1 library, and exception handling for other languages like C++. d565 1 a565 1 like C++. The possibilities for lib are: a676 29
Option aprofile rmprofile ISAs -marmand-mthumb-mthumbArchitectures
default architecture
-march=armv7-a
-march=armv7ve
-march=armv8-a
default architecture
-march=armv6s-m
-march=armv7-m
-march=armv7e-m
-march=armv8-m.base
-march=armv8-m.main
-march=armv7FPUs
none
-mfpu=vfpv3-d16
-mfpu=neon
-mfpu=vfpv4-d16
-mfpu=neon-vfpv4
-mfpu=neon-fp-armv8none
-mfpu=vfpv3-d16
-mfpu=fpv4-sp-d16
-mfpu=fpv5-sp-d16
-mfpu=fpv5-d16
floating-point ABIs
-mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hard-mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hard--with-lxc1-sxc1- On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default.
--without-lxc1-sxc1- On MIPS targets, make -mno-lxc1-sxc1 the default when no -mlxc1-sxc1 option is passed. The indexed load/store instructions are not directly a problem but can lead to unexpected behaviour when deployed in an application intended for a 32-bit address space but run on a 64-bit processor. The issue is seen because all known MIPS 64-bit Linux kernels execute o32 and n32 applications with 64-bit addressing enabled which affects the overflow behaviour of the indexed addressing mode. GCC will assume that ordinary 32-bit arithmetic overflow behaviour is the same whether performed as an
adduinstruction or as part of the address calculation inlwxc1type instructions. This assumption holds true in a pure 32-bit environment and can hold true in a 64-bit environment if the address space is accurately set to be 32-bit for o32 and n32.--with-madd4- On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default.
--without-madd4- On MIPS targets, make -mno-madd4 the default when no -mmadd4 option is passed. The
madd4instruction family can be problematic when targeting a combination of cores that implement these instructions differently. There are two known cores that implement these as fused operations instead of unfused (where unfused is normally expected). Disabling these instructions is the only way to ensure compatible code is generated; this will incur a performance penalty. d754 1 a754 1 ‘libstdc++’, and ‘libobjc’. d767 1 a767 1 ld Command reference. d859 1 a859 1go,jit,lto,objc,obj-c++. d966 1 a966 1 the compiler with GCC. This is ‘yes,extra’ by default when building d975 2 a976 5 ‘df’, ‘fold’, ‘gc’, ‘gcac’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘extra’ and ‘valgrind’. ‘extra’ adds for ‘misc’ checking extra checks that might affect code generation and should therefore not differ between stage1 and later stages. d1207 6 a1212 1 --with-hsa-runtime-include=hsainstalldir/include. d1336 93 a1428 1Objective-C-Specific Options
d1430 68 a1497 1The following options apply to the build of the Objective-C runtime library. d1500 22 a1521 23
--enable-objc-gc- Specify that an additional variant of the GNU Objective-C runtime library is built, using an external build of the Boehm-Demers-Weiser garbage collector (http://www.hboehm.info/gc/). This library needs to be available for each multilib variant, unless configured with --enable-objc-gc=‘auto’ in which case the build of the additional runtime library is skipped when not available and the build continues.
--with-target-bdw-gc=list--with-target-bdw-gc-include=list--with-target-bdw-gc-lib=list- Specify search directories for the garbage collector header files and libraries. list is a comma separated list of key value pairs of the form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’).
The options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together for each multilib variant and they take precedence over --with-target-bdw-gc. If --with-target-bdw-gc-include is missing values for a multilib, then the value for the default multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). If none of these options are specified, the library is assumed in default locations. @ 1.7.4.2 log @Mostly merge changes from HEAD upto 20200411 @ text @d1 10 a10 3
Installing GCC d41 6 d48 2 a49 8Installing GCC
d51 3 d55 2 a56 28Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.
We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
If you obtained the sources by cloning the repository, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell’s built-in
pwdcommand will return d58 3 a60 3 problems. To avoid this issue, set thePWDCMDenvironment variable to an automounter-awarepwdcommand, e.g.,pawdor ‘amq -w’, during the configuration and build d62 2 a63 2First, we highly recommend that GCC be built into a d66 1 a66 1 where srcdir == objdir should still work, but doesn’t d69 6 a74 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don’t know how to make distclean” it probably d78 3 a80 3
Second, when configuring a native system, either
d84 1 a84 7ccorgccmust be in your path or you must setCCin a82 1To configure GCC:
d86 5 a90 2% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d95 3 a97 4d108 8 a115 4
--with-pkgversion=versionSpecify a string that identifies your package. You may wish d99 6 a104 8 included in the output of
gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.The default value is ‘GCC’.
--with-bugurl=urlSpecify the URL that users should visit if they wish to report a bug. a106 5
The default value refers to the FSF’s GCC bug tracker.
Target specification
d127 1 a127 3
- GCC has code to correctly determine the correct value for target d119 1 a119 1
- target must be specified as --target=target d123 3 a125 3
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d130 2 a131 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d133 7 a139 8Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirnameSpecify the toplevel installation d142 3 a144 3 /usr/local.
We highly recommend against dirname being the same or a d146 5 a150 5 beneath a user’s home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use
$HOMEinstead.The following standard
autoconfoptions are supported. Normally you d152 2 a153 3d204 3 a206 3
--exec-prefix=dirnameSpecify the toplevel installation directory for architecture-dependent d155 12 a166 20
--bindir=dirnameSpecify the installation directory for the executables called by users (such as
gccandg++). The default is exec-prefix/bin.--libdir=dirnameSpecify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirnameSpecify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirnameSpecify the installation directory for the shared libgcc library. The d168 8 a175 14
--datarootdir=dirnameSpecify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirnameSpecify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirnameSpecify the installation directory for some architecture-independent d177 5 a181 9
--docdir=dirnameSpecify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirnameSpecify the installation directory for HTML documentation files. d183 2 a184 4
--pdfdir=dirnameSpecify the installation directory for PDF documentation files. d186 3 a188 5
--mandir=dirnameSpecify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d192 2 a193 4
--with-gxx-include-dir=dirnameSpecify d197 2 a198 4
--with-specs=specsSpecify additional command line driver SPECS. d200 2 a201 2 default without modifying the compiler’s source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. a202 3
--program-prefix=prefixGCC supports some transformations of the names of its programs when d209 9 a217 13 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names d219 5 a223 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d225 1 a225 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d227 2 a228 2
All three options can be combined and used together, resulting in more d232 3 a234 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries’ names are not transformed even when a d236 2 a237 2
For native builds, some of the installed programs are also installed d239 1 a239 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d241 1 a241 1 --program-prefix=foo- and program-suffix=-3.1, the d243 3 a245 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d247 2 a248 4
--with-local-prefix=dirnameSpecify the d250 6 a255 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d257 4 a260 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d263 3 a265 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d268 4 a271 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC’s “system include” directories. Although these d277 2 a278 2
Some autoconf macros add -I directory options to the d280 1 a280 1 packages’ headers are searched. When directory is one of GCC’s d285 3 a287 3
GCC automatically searches for ordinary libraries using
GCC_EXEC_PREFIX. Thus, when the same installation prefix is d291 3 a293 3 installed as a system compiler in /usr.Sites that need to install multiple versions of GCC may not want to d295 2 a296 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d298 1 a298 1 and the --with-local-prefix option to specify the location of the d301 9 a309 9 (e.g., with
LIBRARY_PATH).The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system’s standard header files. If it did contain d312 3 a314 3 file corrections made by the
fixincludesscript.Indications are that people who use this option use it based on mistaken d318 2 a319 4
--with-gcc-major-version-onlySpecifies that GCC should use only the major number rather than d321 3 a323 5
--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d326 1 a326 1 --with-sysroot option and will cause GCC to search d328 2 a329 4
--enable-shared[=package[,…]]Build shared versions of libraries, if shared libraries are supported on d332 2 a333 2
If a list of packages is given as an argument, build shared libraries d336 10 a345 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d347 2 a348 4
--enable-host-sharedSpecify that the host code should be built into position-independent d351 4 a354 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d356 2 a357 4
--with-gnu-asSpecify that the compiler should assume that the d362 1 a362 1 configured with --with-gnu-as.) If you have more than one d364 4 a367 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d369 10 a378 12 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathnameSpecify that the compiler should use the assembler pointed to by d381 4 a384 4
d404 1 a404 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d386 3 a388 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d391 2 a392 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d395 1 a395 1
- Check in the
PATHfor a tool whose name is prefixed by the d398 1 a398 1- Check in the
PATHfor a tool whose name is not prefixed by the d401 2 a402 2 the target as well).You may want to use --with-as if no assembler d408 2 a409 4
--with-gnu-ldSame as --with-gnu-as d411 2 a412 4
--with-ld=pathnameSame as --with-as d414 2 a415 4
--with-stabsSpecify that stabs debugging d418 27 a444 4
--with-tls=dialectSpecify the default TLS dialect, for systems were there is a choice. d448 2 a449 4
--enable-multiarchSpecify whether to enable or disable multiarch support. The default is d452 2 a453 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d456 3 a458 5
--enable-sjlj-exceptionsForce use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d460 2 a461 4--enable-vtable-verifySpecify whether to enable or disable the vtable verification feature. d466 1 a466 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d469 4 a472 6 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilibSpecify that multiple target d476 11 a486 18
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
d489 3 a491 4
arm-*-*fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*softfloat, m68881, m68000, m68020.
mips*-*-*single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, a487 3
--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. list is a comma separated list of d493 11 a503 24 for aarch64*-*-*, arm*-*-*, sh*-*-* and x86-64-*-linux*. The accepted alues and meaning for each target is given below.
aarch64*-*-*list is a comma separated list of
ilp32, andlp64to enable ILP32 and LP64 run-time libraries, respectively. If list is empty, then there will be no multilibs and only the default run-time library will be built. If list isdefaultor –with-multilib-list= is not specified, then the default set of libraries is selected based on the value of --target.arm*-*-*list is a comma separated list of
aprofileandrmprofileto build multilibs for A or R and M architecture profiles respectively. Note that, due to some limitation of the current multilib framework, using the combinedaprofile,rmprofilemultilibs selects in some cases a less optimal multilib than when using the multilib profile for the architecture targetted. The special valuedefaultis also accepted and is equivalent to omitting the option, ie. only the default run-time library will be enabled.The table below gives the combination of ISAs, architectures, FPUs and d505 7 a511 7 The union of these options is considered when specifying both
aprofileandrmprofile.d543 1 a543 3
Option aprofile rmprofile ISAs -marmand-mthumb-mthumbArchitectures default architecture
d514 2 a515 1-march=armv8-adefault architecture
d521 3 a523 2-march=armv7FPUs none
d528 2 a529 1-mfpu=neon-fp-armv8none
d533 3 a535 2-mfpu=fpv5-d16floating-point ABIs -mfloat-abi=soft
d537 2 a538 1-mfloat-abi=hard-mfloat-abi=soft
d540 2 a541 2-mfloat-abi=hardsh*-*-*list is a comma separated list of CPU names. These must be of the d546 3 a548 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d550 4 a553 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d555 3 a557 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d560 2 a561 2
Example 1: to configure a compiler for SH4A only, but supporting both d563 3 a565 5
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d567 4 a570 8
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- d579 1 a579 3
list is a comma separated list of
m32,m64and d574 3 a576 4If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled.
--with-endian=endiansSpecify what endians to use. d581 7 a587 15
endians may be one of the following:
bigUse big endian exclusively.
littleUse little endian exclusively.
big,littleUse big endian by default. Provide a multilib for little endian.
little,big- d590 1 a590 3
Use little endian by default. Provide a multilib for big endian.
--enable-threadsSpecify that the target d592 1 a592 1 library, and exception handling for other languages like C++. d594 2 a595 2
In general, the best (and, in many cases, the only known) threading d598 7 a604 11 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threadsSpecify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=libSpecify that d608 13 a620 35
aixAIX thread support.
dceDCE thread support.
lynxLynxOS thread support.
mipssdeMIPS SDE thread support.
noThis is an alias for ‘single’.
posixGeneric POSIX/Unix98 thread support.
rtemsRTEMS thread support.
singleDisable thread support, should work for all platforms.
tpfTPF thread support.
vxworksVxWorks thread support.
win32- d623 1 a623 3
Microsoft Win32 API thread support.
--enable-tlsSpecify that the target supports TLS (Thread Local Storage). Usually d626 1 a626 1 --enable-tls or --disable-tls. This can happen if d629 6 a634 12
--disable-tlsSpecify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpuSpecify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d636 2 a637 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d640 5 a644 16
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d646 2 a647 4
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. d649 2 a650 4
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, d653 4 a656 6
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d658 2 a659 4
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using d661 7 a667 13
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- d669 1 a669 1
Use the o32 FP64 ABI extension, as with the -mfp64 command-line option.
In the absence of this configuration option the default is to use the o32 d671 2 a672 4
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using d674 2 a675 4
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using d677 3 a679 5 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encodingOn MIPS targets, set the default encoding convention to use for the d682 5 a686 9
legacyUse the legacy encoding, as with the -mnan=legacy command-line option.
2008- d688 2 a689 2
Use the 754-2008 encoding, as with the -mnan=2008 command-line option.
To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d691 5 a695 7 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=typeSpecify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d697 4 a700 8
trapsDivision by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- d703 4 a706 5
Division by zero checks use the break instruction.
--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d709 15 a723 25
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-lxc1-sxc1On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default.
--without-lxc1-sxc1On MIPS targets, make -mno-lxc1-sxc1 the default when no -mlxc1-sxc1 option is passed. The indexed load/store d735 6 a740 10
--with-madd4On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default.
--without-madd4On MIPS targets, make -mno-madd4 the default when no -mmadd4 option is passed. The
madd4instruction d747 2 a748 4--with-mips-pltOn MIPS targets, make use of copy relocations and PLTs. d752 3 a754 5
--enable-__cxa_atexitDefine if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d758 3 a760 5 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-functionDefine if you want to enable the
ifuncattribute. This option is d762 3 a764 5--enable-target-optspaceSpecify that target libraries should be optimized for code space instead of code speed. d766 5 a770 9
--with-cpp-install-dir=dirnameSpecify that the user visible
cppprogram should be installed in prefix/dirname/cpp, in addition to bindir.--enable-comdatEnable COMDAT group support. This is primarily used to override the d772 2 a773 4
--enable-initfini-arrayForce the use of sections
.init_arrayand.fini_arrayd775 1 a775 1 destructors. Option --disable-initfini-array has the d779 2 a780 4--enable-link-mutexWhen building GCC, use a mutex to avoid linking the compilers for d783 3 a785 5
--enable-maintainer-modeThe build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d788 1 a788 1 catalog, configuring with --enable-maintainer-mode will enable d791 3 a793 5
--disable-bootstrapFor a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d795 4 a798 6 this process, you can configure with --disable-bootstrap.
--enable-bootstrapIn special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d800 1 a800 1 the target (e.g. host is i686-linux, target is i486-linux). d802 3 a804 5 with --enable-bootstrap.
--enable-generated-files-in-srcdirNeither the .c and .h files that are generated from Bison and flex nor the d806 1 a806 1 in the repository development tree. When building GCC from that development tree, d810 2 a811 2
If you configure with --enable-generated-files-in-srcdir then those d816 2 a817 4
--enable-version-specific-runtime-libsSpecify d819 2 a820 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into d822 1 a822 1 --with-gxx-include-dir=dirname. Using this option is d824 4 a827 6 parallel. This is currently supported by ‘libgfortran’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned
Shared Objectd829 1 a829 1 ‘lib.a’) causes numerous headaches for package managers. However, d832 1 a832 1 where this is called the "SONAME". But as they prevent static linking, d834 20 a853 23 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d891 11 a901 13
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- - is used for runtime loading from inside the ‘libNAME.a’ file
- - is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- - is used for shared linking
- - is used for static linking, so no separate
Static Archive d855 12 a866 15--with-aix-soname=both--with-aix-soname=svr4A (second)
Shared Archive Libraryfile is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- - is created with the
-G linker flag- - has the
F_LOADONLYflag set- - is used for runtime loading from inside the ‘libNAME.so.V’ file
- - is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d868 2 a869 2- with the
Import Fileas archive member named ‘shr.imp’, d871 2 a872 2
- - refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d874 13 a886 13
- - indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- - lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- - is necessary for shared linking against ‘lib.so.V(shr.o)’
A symbolic link using the ‘libNAME.so’ filename scheme is created:
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d888 2 a889 3As long as static library creation is enabled, upon:
d903 1 a903 1
--with-aix-soname=svr4A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- - are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd910 2 a911 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd913 1 a913 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d916 2 a917 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d919 4 a922 6
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,…Specify that only a particular subset of compilers and d925 9 a933 10 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following:
all,default,ada,c,c++,fortran,go,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. If you do not pass this flag, or specify the optiondefault, then the default languages available in the gcc sub-tree will be configured. d935 4 a938 9 default language, but is built by default because --enable-lto is enabled by default. The other languages are default languages. Ifallis specified, then all available languages are built. An exception isjitlanguage, which requires --enable-host-shared to be included withall.--enable-stage1-languages=lang1,lang2,…Specify that a particular subset of compilers and their runtime d942 2 a943 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d948 5 a952 7 specified languages with the stage-1 compiler by usingmake stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages usingmake stage1-start check-gcc.--disable-libadaSpecify that the run-time libraries and tools used by GNAT should not d955 3 a957 5 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizerSpecify that the run-time libraries for the various sanitizers should d959 5 a963 10
--disable-libsspSpecify that the run-time libraries for stack smashing protection should not be built or linked against. On many targets library support is provided by the C library instead.
--disable-libquadmathSpecify that the GCC quad-precision math library should not be built. d965 1 a965 1 the Fortran front end, unless --disable-libquadmath-support d967 2 a968 4
--disable-libquadmath-supportSpecify that the Fortran front end and
libgfortrando not add d970 2 a971 4--disable-libgompSpecify that the GNU Offloading and Multi Processing Runtime Library d973 2 a974 4
--disable-libvtvSpecify that the run-time libraries used by vtable verification d976 2 a977 4
--with-dwarf2Specify that the compiler should d979 2 a980 4
--with-advance-toolchain=atOn 64-bit PowerPC Linux systems, configure the compiler to use the d986 2 a987 5
--enable-targets=all--enable-targets=target_listSome GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d989 1 a989 1 code. Typically, the corresponding 32-bit target, e.g. d993 1 a993 1 you are building a bi-arch or multi-arch binutils in a combined tree. d995 1 a995 1 defaulted to o32. d998 4 a1001 8
--enable-default-pieTurn on -fPIE and -pie by default.
--enable-securepltThis option enables -msecure-plt by default for powerpc-linux. d1003 4 a1006 8
--enable-default-sspTurn on -fstack-protector-strong by default.
--enable-cldThis option enables -mcld by default for 32-bit x86 targets. d1008 2 a1009 6
--enable-win32-registry--enable-win32-registry=key--disable-win32-registryThe --enable-win32-registry option enables Microsoft Windows-hosted GCC a1010 4
d1012 4 a1015 2HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1019 1 a1019 1 by default, and can be disabled by --disable-win32-registry d1021 8 a1028 15
--nfpSpecify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=noWhen you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don’t specify it, -Werror is turned on for the main d1030 1 a1030 1 final releases. The specific files which get -Werror are d1032 35 a1066 51
--enable-checking--disable-checking--enable-checking=listThis option controls performing internal consistency checks in the compiler. It does not change the generated code, but adds error checking of the requested complexity. This slows down the compiler and may only work properly if you are building the compiler with GCC.
When the option is not specified, the active set of checks depends on context. Namely, bootstrap stage 1 defaults to ‘--enable-checking=yes’, builds from release branches or release archives default to ‘--enable-checking=release’, and otherwise ‘--enable-checking=yes,extra’ is used. When the option is specified without a list, the result is the same as ‘--enable-checking=yes’. Likewise, ‘--disable-checking’ is equivalent to ‘--enable-checking=no’.
The categories of checks available in list are ‘yes’ (most common checks ‘assert,misc,gc,gimple,rtlflag,runtime,tree,types’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). ‘release’ checks are always on and to disable them ‘--disable-checking’ or ‘--enable-checking=no[,<other checks>]’ must be explicitly requested. Disabling assertions makes the compiler and runtime slightly faster but increases the risk of undetected internal errors causing wrong code to be generated.
Individual checks can be enabled with these flags: ‘assert’, ‘df’, ‘extra’, ‘fold’, ‘gc’, ‘gcac’, ‘gimple’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘types’ and ‘valgrind’. ‘extra’ extends ‘misc’ checking with extra checks that might affect code generation and should therefore not differ between stage1 and later stages in bootstrap.
The ‘valgrind’ check requires the external
valgrindsimulator, available from http://valgrind.org/. The ‘rtl’ checks are expensive and the ‘df’, ‘gcac’ and ‘valgrind’ checks are very expensive.--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=listThis option affects only bootstrap build. If no --enable-checking option is specified the stage1 compiler is built with ‘yes’ checking enabled, otherwise the stage1 checking flags are the same as specified by --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1068 1 a1068 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1070 2 a1071 5
--enable-coverage--enable-coverage=levelWith this option, the compiler is built to collect self coverage d1075 1 a1075 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1079 2 a1080 4
--enable-gather-detailed-mem-statsWhen this option is specified more detailed information on memory d1082 3 a1084 5 -fmem-report.
--enable-valgrind-annotationsMark selected memory related operations in the compiler when run under d1086 2 a1087 5
--enable-nls--disable-nlsThe --enable-nls option enables Native Language Support (NLS), d1090 6 a1095 10 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettextIf NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU
gettext.--with-catgetsIf NLS is enabled, and if the host lacks
gettextbut has the d1097 8 a1104 12 ignorescatgetsand instead uses GCC’s copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host’scatgetsin this situation.--with-libiconv-prefix=dirSearch for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsoleteEnable configuration for an obsoleted system. If you attempt to d1108 2 a1109 2
All support for systems which have been obsoleted in one release of GCC d1112 2 a1113 9
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-floatEnable (or disable) support for the C decimal floating point extension d1118 2 a1119 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1121 2 a1122 5
--enable-fixed-point--disable-fixed-pointEnable (or disable) support for C fixed-point arithmetic. d1126 2 a1127 4
--with-long-double-128Specify if
long doubletype should be 128-bit by default on selected d1129 1 a1129 1long doublewill be by default 64-bit, the same asdoubletype. d1133 4 a1136 46--with-long-double-format=ibm--with-long-double-format=ieeeSpecify whether
long doubleuses the IBM extended double format or the IEEE 128-bit floating point format on PowerPC Linux systems. This configuration switch will only work on little endian PowerPC Linux systems and on big endian 64-bit systems where the default cpu is at least power7 (i.e. --with-cpu=power7, --with-cpu=power8, or --with-cpu=power9 is used).If you use the --with-long-double-64 configuration option, the --with-long-double-format=ibm and --with-long-double-format=ieee options are ignored.
The default
long doubleformat is to use IBM extended double. Until all of the libraries are converted to use IEEE 128-bit floating point, it is not recommended to use --with-long-double-format=ieee.On little endian PowerPC Linux systems, if you explicitly set the
long doubletype, it will build multilibs to allow you to select eitherlong doubleformat, unless you disable multilibs with the--disable-multiliboption. At present,long doublemultilibs are not built on big endian PowerPC Linux systems. If you are building multilibs, you will need to configure the compiler using the --with-system-zlib option.If you do not set the
long doubletype explicitly, no multilibs will be generated.--enable-fdpicOn SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathnameIf you want to build GCC but do not have the GMP library, the MPFR d1140 12 a1151 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1156 3 a1158 3 variable (
LD_LIBRARY_PATHon GNU/Linux and Solaris systems).These flags are applicable to the host platform only. When building d1160 2 a1161 6
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathnameIf you do not have the isl library installed in a standard location and you d1163 4 a1166 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1169 2 a1170 2
These flags are applicable to the host platform only. When building d1172 2 a1173 4
--with-stage1-ldflags=flagsThis option may be used to set linker flags to be used when linking d1175 2 a1176 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1178 2 a1179 4
--with-stage1-libs=libsThis option may be used to set libraries to be used when linking stage 1 d1181 3 a1183 5 --disable-bootstrap.
--with-boot-ldflags=flagsThis option may be used to set linker flags to be used when linking d1186 3 a1188 5 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libsThis option may be used to set libraries to be used when linking stage 2 d1190 2 a1191 4
--with-debug-prefix-map=mapConvert source directory names using -fdebug-prefix-map when d1193 4 a1196 6 list of maps of the form ‘old=new’.
--enable-linker-build-idTells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1198 5 a1202 7 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choiceTells GCC to pass --hash-style=choice option to the d1204 3 a1206 6 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-objectTells GCC to use the gnu_unique_object relocation for C++ template d1210 2 a1211 4
--with-diagnostics-color=choiceTells GCC to use choice as the default for -fdiagnostics-color= d1213 3 a1215 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1217 6 a1222 12 -fdiagnostics-color=never otherwise.--enable-lto--disable-ltoEnable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGSBy default, linker plugins (such as the LTO plugin) are built for the d1227 2 a1228 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1231 8 a1238 12
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathnameEnable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1240 4 a1243 7 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headersEnable system header path canonicalization for libcpp. This can d1247 3 a1249 5 --disable-canonical-system-headers.
--with-glibc-version=major.minorTell GCC that when the GNU C Library (glibc) is used on the target it d1251 1 a1251 1 be detected from the C library’s header files, but this option may be d1254 3 a1256 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1259 4 a1262 8
--enable-as-accelerator-for=targetBuild as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],…,targetN[=pathN]Enable offloading to targets target1, …, targetN. d1265 1 a1265 6 specifying paths path1, …, pathN.
d1267 4 a1270 1% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1273 3 a1275 7
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathnameIf you configure GCC with HSA offloading but do not have the HSA d1278 1 a1278 1 --with-hsa-runtime=hsainstalldir option is a d1280 2 a1281 18 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include.
--enable-cet--disable-cet- d1284 2 a1285 2
Enable building target run-time libraries with control-flow instrumentation, see -fcf-protection option. When
--enable-cetis specified target libraries are configured to add -fcf-protection and, if needed, other target specific options to a set of building options.The option is disabled by default. When
--enable-cet=autois used, it is enabled on Linux/x86 if target binutils supportsIntel CETinstructions and disabled otherwise. In this case the target libraries are configured to get additional -fcf-protection option.Cross-Compiler-Specific Options
d1287 4 a1290 6
--with-sysroot--with-sysroot=dirTells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1293 1 a1293 1 --sysroot=dir was added to the default options of the built d1295 5 a1299 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1301 2 a1302 2
This option affects the system root for the compiler used to build d1306 2 a1307 2
If you specify the --with-native-system-header-dir=dirname d1309 8 a1316 11 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dirTells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1318 2 a1319 2
This option affects the system root for the compiler used to build d1322 2 a1323 2
If you specify the --with-native-system-header-dir=dirname d1325 4 a1328 7 native system headers rather than the default /usr/include.
--with-headers--with-headers=dirDeprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1330 5 a1334 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn’t pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted.
fixincludesd1336 2 a1337 4--without-headersTells GCC not use any target headers from a libc when building a cross d1340 2 a1341 5
--with-libs--with-libs="dir1 dir2 … dirN"Deprecated in favor of --with-sysroot. d1343 1 a1343 1 libraries. These libraries will be copied into the gcc install d1346 2 a1347 4
--with-newlibSpecifies that ‘newlib’ is d1349 4 a1352 6 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibcSpecifies that ‘AVR-Libc’ is d1354 3 a1356 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1360 3 a1362 5--with-nds32-lib=librarySpecifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1364 2 a1365 4
--with-build-time-tools=dir- d1382 1 a1382 2
Specifies where to find the set of target tools (assembler, linker, etc.) d1369 3 a1371 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1373 7 a1379 8 native tools in /usr/bin.
When you use this option, you should ensure that dir includes
ar,as,ld,nm,ranlibandstripif necessary, and possiblyobjdump. Otherwise, GCC may use an inconsistent set of tools.Overriding
d1385 2 a1386 2configuretest resultsconfiguretest, for example in order to ease porting to a new system or work around a bug in a test. The toplevelconfigured1388 3 a1390 5d1399 4 a1402 2
build_configargsThe contents of this variable is passed to all build
configured1392 2 a1393 5host_configargsThe contents of this variable is passed to all host
configured1395 2 a1396 5target_configargsThe contents of this variable is passed to all target
configurea1397 3In order to avoid shell and
makequoting issues for complex overrides, you can pass a setting forCONFIG_SITEand set d1404 2 a1405 3Objective-C-Specific Options
d1408 3 a1410 4
--enable-objc-gcSpecify that an additional variant of the GNU Objective-C runtime library d1414 1 a1414 1 --enable-objc-gc=‘auto’ in which case the build of the d1417 2 a1418 6
--with-target-bdw-gc=list--with-target-bdw-gc-include=list--with-target-bdw-gc-lib=list- d1435 1 a1435 2
Specify search directories for the garbage collector header files and d1420 6 a1425 6 form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’).
The options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together d1427 1 a1427 1 --with-target-bdw-gc. If --with-target-bdw-gc-include d1429 2 a1430 2 multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). d1432 1 a1432 2 default locations.
a1436 10
d1438 10 a1448 2 @ 1.7.2.1 log @Sync with HEAD, resolve a couple of conflicts @ text @d1 10 a10 3Installing GCC d41 6 d48 2 a49 10Installing GCC
d51 3 d55 2 a56 25Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.
We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell’s built-in
pwdcommand will return d58 3 a60 3 problems. To avoid this issue, set thePWDCMDenvironment variable to an automounter-awarepwdcommand, e.g.,pawdor ‘amq -w’, during the configuration and build d62 2 a63 2First, we highly recommend that GCC be built into a d66 1 a66 1 where srcdir == objdir should still work, but doesn’t d69 6 a74 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don’t know how to make distclean” it probably d78 3 a80 3
Second, when configuring a native system, either
d84 1 a84 7ccorgccmust be in your path or you must setCCin a82 1To configure GCC:
d86 5 a90 2% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d95 3 a97 4d108 8 a115 4
--with-pkgversion=versionSpecify a string that identifies your package. You may wish d99 6 a104 8 included in the output of
gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.The default value is ‘GCC’.
--with-bugurl=urlSpecify the URL that users should visit if they wish to report a bug. a106 5
The default value refers to the FSF’s GCC bug tracker.
Target specification
d127 1 a127 2
- GCC has code to correctly determine the correct value for target d119 1 a119 1
- target must be specified as --target=target d123 3 a125 4
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d130 2 a131 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d133 7 a139 8Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirnameSpecify the toplevel installation d142 3 a144 3 /usr/local.
We highly recommend against dirname being the same or a d146 5 a150 5 beneath a user’s home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use
$HOMEinstead.The following standard
autoconfoptions are supported. Normally you d152 2 a153 3d204 3 a206 3
--exec-prefix=dirnameSpecify the toplevel installation directory for architecture-dependent d155 12 a166 20
--bindir=dirnameSpecify the installation directory for the executables called by users (such as
gccandg++). The default is exec-prefix/bin.--libdir=dirnameSpecify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirnameSpecify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirnameSpecify the installation directory for the shared libgcc library. The d168 8 a175 14
--datarootdir=dirnameSpecify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirnameSpecify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirnameSpecify the installation directory for some architecture-independent d177 5 a181 9
--docdir=dirnameSpecify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirnameSpecify the installation directory for HTML documentation files. d183 2 a184 4
--pdfdir=dirnameSpecify the installation directory for PDF documentation files. d186 3 a188 5
--mandir=dirnameSpecify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d192 2 a193 4
--with-gxx-include-dir=dirnameSpecify d197 2 a198 4
--with-specs=specsSpecify additional command line driver SPECS. d200 2 a201 2 default without modifying the compiler’s source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. a202 3
--program-prefix=prefixGCC supports some transformations of the names of its programs when d209 9 a217 13 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names d219 5 a223 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d225 1 a225 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d227 2 a228 2
All three options can be combined and used together, resulting in more d232 3 a234 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries’ names are not transformed even when a d236 2 a237 2
For native builds, some of the installed programs are also installed d239 1 a239 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d241 1 a241 1 --program-prefix=foo- and program-suffix=-3.1, the d243 3 a245 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d247 2 a248 4
--with-local-prefix=dirnameSpecify the d250 6 a255 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d257 4 a260 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d263 3 a265 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d268 4 a271 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC’s “system include” directories. Although these d277 2 a278 2
Some autoconf macros add -I directory options to the d280 1 a280 1 packages’ headers are searched. When directory is one of GCC’s d285 3 a287 3
GCC automatically searches for ordinary libraries using
GCC_EXEC_PREFIX. Thus, when the same installation prefix is d291 3 a293 3 installed as a system compiler in /usr.Sites that need to install multiple versions of GCC may not want to d295 2 a296 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d298 1 a298 1 and the --with-local-prefix option to specify the location of the d301 9 a309 9 (e.g., with
LIBRARY_PATH).The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system’s standard header files. If it did contain d312 3 a314 3 file corrections made by the
fixincludesscript.Indications are that people who use this option use it based on mistaken d318 3 a320 5
--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d323 1 a323 1 --with-sysroot option and will cause GCC to search d325 2 a326 4
--enable-shared[=package[,…]]Build shared versions of libraries, if shared libraries are supported on d329 2 a330 2
If a list of packages is given as an argument, build shared libraries d333 10 a342 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libjava’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d344 2 a345 4
--enable-host-sharedSpecify that the host code should be built into position-independent d348 4 a351 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d353 2 a354 4
--with-gnu-asSpecify that the compiler should assume that the d359 1 a359 1 configured with --with-gnu-as.) If you have more than one d361 4 a364 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d366 10 a375 12 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathnameSpecify that the compiler should use the assembler pointed to by d378 4 a381 4
d401 1 a401 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d383 3 a385 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d388 2 a389 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d392 1 a392 1
- Check in the
PATHfor a tool whose name is prefixed by the d395 1 a395 1- Check in the
PATHfor a tool whose name is not prefixed by the d398 2 a399 2 the target as well).You may want to use --with-as if no assembler d405 2 a406 4
--with-gnu-ldSame as --with-gnu-as d408 2 a409 4
--with-ld=pathnameSame as --with-as d411 2 a412 4
--with-stabsSpecify that stabs debugging d415 2 a416 2
On MIPS based systems and on Alphas, you must specify whether you want d421 6 a426 6
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly d428 3 a430 3
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging d433 2 a434 2
--with-stabs is also meaningful on 386 systems running SVR4. It d440 2 a441 4
--with-tls=dialectSpecify the default TLS dialect, for systems were there is a choice. d445 2 a446 4
--enable-multiarchSpecify whether to enable or disable multiarch support. The default is d449 2 a450 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d453 3 a455 5
--enable-sjlj-exceptionsForce use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d457 2 a458 4--enable-vtable-verifySpecify whether to enable or disable the vtable verification feature. d463 1 a463 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d466 4 a469 6 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilibSpecify that multiple target d473 11 a483 18
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
d486 3 a488 4
arm-*-*fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*softfloat, m68881, m68000, m68020.
mips*-*-*single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, a484 3
--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. d490 3 a492 4
arm*-*-*list is either
defaultoraprofile. Specifying d500 2 a501 4sh*-*-*list is a comma separated list of CPU names. These must be of the d504 3 a506 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d508 4 a511 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d513 3 a515 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d518 2 a519 2
Example 1: to configure a compiler for SH4A only, but supporting both d521 3 a523 5
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d525 4 a528 8
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- d537 1 a537 3
list is a comma separated list of
m32,m64and d532 3 a534 4If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled.
--with-endian=endiansSpecify what endians to use. d539 7 a545 15
endians may be one of the following:
bigUse big endian exclusively.
littleUse little endian exclusively.
big,littleUse big endian by default. Provide a multilib for little endian.
little,big- d548 1 a548 3
Use little endian by default. Provide a multilib for big endian.
--enable-threadsSpecify that the target d550 1 a550 1 library, and exception handling for other languages like C++ and Java. d552 2 a553 2
In general, the best (and, in many cases, the only known) threading d556 7 a562 11 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threadsSpecify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=libSpecify that d566 13 a578 35
aixAIX thread support.
dceDCE thread support.
lynxLynxOS thread support.
mipssdeMIPS SDE thread support.
noThis is an alias for ‘single’.
posixGeneric POSIX/Unix98 thread support.
rtemsRTEMS thread support.
singleDisable thread support, should work for all platforms.
tpfTPF thread support.
vxworksVxWorks thread support.
win32- d581 1 a581 3
Microsoft Win32 API thread support.
--enable-tlsSpecify that the target supports TLS (Thread Local Storage). Usually d584 1 a584 1 --enable-tls or --disable-tls. This can happen if d587 6 a592 12
--disable-tlsSpecify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpuSpecify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d594 2 a595 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d598 5 a602 16
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d604 2 a605 4
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. d607 2 a608 4
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, d611 4 a614 6
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d616 2 a617 4
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using d619 7 a625 13
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- d627 1 a627 1
Use the o32 FP64 ABI extension, as with the -mfp64 command-line option.
In the absence of this configuration option the default is to use the o32 d629 2 a630 4
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using d632 2 a633 4
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using d635 3 a637 5 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encodingOn MIPS targets, set the default encoding convention to use for the d640 5 a644 9
legacyUse the legacy encoding, as with the -mnan=legacy command-line option.
2008- d646 2 a647 2
Use the 754-2008 encoding, as with the -mnan=2008 command-line option.
To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d649 5 a653 7 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=typeSpecify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d655 4 a658 8
trapsDivision by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- d661 4 a664 5
Division by zero checks use the break instruction.
--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d667 11 a677 19
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-mips-pltOn MIPS targets, make use of copy relocations and PLTs. d681 3 a683 5
--enable-__cxa_atexitDefine if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d687 3 a689 5 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-functionDefine if you want to enable the
ifuncattribute. This option is d691 3 a693 5--enable-target-optspaceSpecify that target libraries should be optimized for code space instead of code speed. d695 5 a699 9
--with-cpp-install-dir=dirnameSpecify that the user visible
cppprogram should be installed in prefix/dirname/cpp, in addition to bindir.--enable-comdatEnable COMDAT group support. This is primarily used to override the d701 2 a702 4
--enable-initfini-arrayForce the use of sections
.init_arrayand.fini_arrayd704 1 a704 1 destructors. Option --disable-initfini-array has the d708 2 a709 4--enable-link-mutexWhen building GCC, use a mutex to avoid linking the compilers for d712 3 a714 5
--enable-maintainer-modeThe build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d717 1 a717 1 catalog, configuring with --enable-maintainer-mode will enable d720 3 a722 5
--disable-bootstrapFor a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d724 4 a727 6 this process, you can configure with --disable-bootstrap.
--enable-bootstrapIn special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d729 1 a729 1 the target (e.g. host is i686-linux, target is i486-linux). d731 3 a733 5 with --enable-bootstrap.
--enable-generated-files-in-srcdirNeither the .c and .h files that are generated from Bison and flex nor the d739 2 a740 2
If you configure with --enable-generated-files-in-srcdir then those d745 2 a746 4
--enable-version-specific-runtime-libsSpecify d748 2 a749 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into d751 1 a751 1 --with-gxx-include-dir=dirname. Using this option is d753 4 a756 6 parallel. This is currently supported by ‘libgfortran’, ‘libjava’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned
Shared Objectd758 1 a758 1 ‘lib.a’) causes numerous headaches for package managers. However, d761 1 a761 1 where this is called the "SONAME". But as they prevent static linking, d763 20 a782 23 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d820 11 a830 13
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- - is used for runtime loading from inside the ‘libNAME.a’ file
- - is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- - is used for shared linking
- - is used for static linking, so no separate
Static Archive d784 12 a795 15--with-aix-soname=both--with-aix-soname=svr4A (second)
Shared Archive Libraryfile is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- - is created with the
-G linker flag- - has the
F_LOADONLYflag set- - is used for runtime loading from inside the ‘libNAME.so.V’ file
- - is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d797 2 a798 2- with the
Import Fileas archive member named ‘shr.imp’, d800 2 a801 2
- - refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d803 13 a815 13
- - indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- - lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- - is necessary for shared linking against ‘lib.so.V(shr.o)’
A symbolic link using the ‘libNAME.so’ filename scheme is created:
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d817 2 a818 3As long as static library creation is enabled, upon:
d832 1 a832 1
--with-aix-soname=svr4A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- - are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd839 2 a840 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd842 1 a842 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d845 2 a846 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d848 4 a851 6
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,…Specify that only a particular subset of compilers and d854 4 a857 5 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following: d859 2 a860 2
go,java,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. d862 1 a862 1 default languages available in the gcc sub-tree will be configured. d864 1 a864 1 default language, but is built by default because --enable-lto is d866 2 a867 4--enable-stage1-languages=lang1,lang2,…Specify that a particular subset of compilers and their runtime d871 2 a872 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d877 5 a881 7 specified languages with the stage-1 compiler by usingmake stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages usingmake stage1-start check-gcc.--disable-libadaSpecify that the run-time libraries and tools used by GNAT should not d884 3 a886 5 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizerSpecify that the run-time libraries for the various sanitizers should d888 2 a889 4
--disable-libsspSpecify that the run-time libraries for stack smashing protection d891 2 a892 4
--disable-libquadmathSpecify that the GCC quad-precision math library should not be built. d894 1 a894 1 the Fortran front end, unless --disable-libquadmath-support d896 2 a897 4
--disable-libquadmath-supportSpecify that the Fortran front end and
libgfortrando not add d899 2 a900 4--disable-libgompSpecify that the GNU Offloading and Multi Processing Runtime Library d902 2 a903 4
--disable-libvtvSpecify that the run-time libraries used by vtable verification d905 2 a906 4
--with-dwarf2Specify that the compiler should d908 2 a909 4
--with-advance-toolchain=atOn 64-bit PowerPC Linux systems, configure the compiler to use the d915 2 a916 5
--enable-targets=all--enable-targets=target_listSome GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d918 1 a918 1 code. Typically, the corresponding 32-bit target, e.g. d922 1 a922 1 you are building a bi-arch or multi-arch binutils in a combined tree. d924 1 a924 1 defaulted to o32. d927 4 a930 8
--enable-default-pieTurn on -fPIE and -pie by default.
--enable-securepltThis option enables -msecure-plt by default for powerpc-linux. d932 4 a935 8
--enable-default-sspTurn on -fstack-protector-strong by default.
--enable-cldThis option enables -mcld by default for 32-bit x86 targets. d937 2 a938 6
--enable-win32-registry--enable-win32-registry=key--disable-win32-registryThe --enable-win32-registry option enables Microsoft Windows-hosted GCC a939 4
d941 4 a944 2HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d948 1 a948 1 by default, and can be disabled by --disable-win32-registry d950 8 a957 15
--nfpSpecify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=noWhen you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don’t specify it, -Werror is turned on for the main d959 1 a959 1 final releases. The specific files which get -Werror are d961 2 a962 5
--enable-checking--enable-checking=listWhen you specify this option, the compiler is built to perform internal d966 3 a968 3 the compiler with GCC. This is ‘yes’ by default when building from SVN or snapshots, but ‘release’ for releases. The default for building the stage1 compiler is ‘yes’. More control d970 9 a978 9 checks available are ‘yes’ (most common checks ‘assert,misc,tree,gc,rtlflag,runtime’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). Individual checks can be enabled with these flags ‘assert’, ‘df’, ‘fold’, ‘gc’, ‘gcac’ ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, and ‘valgrind’.
The ‘valgrind’ check requires the external
valgrindd980 3 a982 3 ‘df’, ‘rtl’, ‘gcac’ and ‘valgrind’ checks are very expensive. To disable all checking, ‘--disable-checking’ or ‘--enable-checking=none’ must be explicitly requested. Disabling d986 3 a988 7--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=listIf no --enable-checking option is specified the stage1 compiler will be built with ‘yes’ checking enabled, otherwise d990 3 a992 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d994 1 a994 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d996 2 a997 5
--enable-coverage--enable-coverage=levelWith this option, the compiler is built to collect self coverage d1001 1 a1001 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1005 2 a1006 4
--enable-gather-detailed-mem-statsWhen this option is specified more detailed information on memory d1008 3 a1010 5 -fmem-report.
--enable-valgrind-annotationsMark selected memory related operations in the compiler when run under d1012 2 a1013 5
--enable-nls--disable-nlsThe --enable-nls option enables Native Language Support (NLS), d1016 6 a1021 10 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettextIf NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU
gettext.--with-catgetsIf NLS is enabled, and if the host lacks
gettextbut has the d1023 8 a1030 12 ignorescatgetsand instead uses GCC’s copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host’scatgetsin this situation.--with-libiconv-prefix=dirSearch for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsoleteEnable configuration for an obsoleted system. If you attempt to d1034 2 a1035 2
All support for systems which have been obsoleted in one release of GCC d1038 2 a1039 9
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-floatEnable (or disable) support for the C decimal floating point extension d1044 2 a1045 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1047 2 a1048 5
--enable-fixed-point--disable-fixed-pointEnable (or disable) support for C fixed-point arithmetic. d1052 2 a1053 4
--with-long-double-128Specify if
long doubletype should be 128-bit by default on selected d1055 1 a1055 1long doublewill be by default 64-bit, the same asdoubletype. d1059 4 a1062 16--enable-fdpicOn SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathnameIf you want to build GCC but do not have the GMP library, the MPFR d1066 12 a1077 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1082 3 a1084 3 variable (
LD_LIBRARY_PATHon GNU/Linux and Solaris systems).These flags are applicable to the host platform only. When building d1086 2 a1087 6
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathnameIf you do not have the isl library installed in a standard location and you d1089 4 a1092 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1095 2 a1096 2
These flags are applicable to the host platform only. When building d1098 2 a1099 4
--with-stage1-ldflags=flagsThis option may be used to set linker flags to be used when linking d1101 2 a1102 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1104 2 a1105 4
--with-stage1-libs=libsThis option may be used to set libraries to be used when linking stage 1 d1107 3 a1109 5 --disable-bootstrap.
--with-boot-ldflags=flagsThis option may be used to set linker flags to be used when linking d1112 3 a1114 5 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libsThis option may be used to set libraries to be used when linking stage 2 d1116 2 a1117 4
--with-debug-prefix-map=mapConvert source directory names using -fdebug-prefix-map when d1119 4 a1122 6 list of maps of the form ‘old=new’.
--enable-linker-build-idTells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1124 5 a1128 7 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choiceTells GCC to pass --hash-style=choice option to the d1130 3 a1132 6 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-objectTells GCC to use the gnu_unique_object relocation for C++ template d1136 2 a1137 4
--with-diagnostics-color=choiceTells GCC to use choice as the default for -fdiagnostics-color= d1139 3 a1141 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1143 6 a1148 12 -fdiagnostics-color=never otherwise.--enable-lto--disable-ltoEnable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGSBy default, linker plugins (such as the LTO plugin) are built for the d1153 2 a1154 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1157 8 a1164 12
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathnameEnable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1166 4 a1169 7 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headersEnable system header path canonicalization for libcpp. This can d1173 3 a1175 5 --disable-canonical-system-headers.
--with-glibc-version=major.minorTell GCC that when the GNU C Library (glibc) is used on the target it d1177 1 a1177 1 be detected from the C library’s header files, but this option may be d1180 3 a1182 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1185 4 a1188 8
--enable-as-accelerator-for=targetBuild as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],…,targetN[=pathN]Enable offloading to targets target1, …, targetN. d1191 1 a1191 6 specifying paths path1, …, pathN.
d1193 4 a1196 1% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1199 3 a1201 7
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathnameIf you configure GCC with HSA offloading but do not have the HSA d1204 1 a1204 1 --with-hsa-runtime=hsainstalldir option is a d1206 5 a1210 7 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include.
--with-hsa-kmt-lib=pathname- d1215 2 a1216 2
If you configure GCC with HSA offloading but do not have the HSA d1212 1 a1212 2 explicitly specify the directory where it resides.
Cross-Compiler-Specific Options
d1218 4 a1221 6
--with-sysroot--with-sysroot=dirTells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1224 1 a1224 1 --sysroot=dir was added to the default options of the built d1226 5 a1230 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1232 2 a1233 2
This option affects the system root for the compiler used to build d1237 2 a1238 2
If you specify the --with-native-system-header-dir=dirname d1240 8 a1247 11 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dirTells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1249 2 a1250 2
This option affects the system root for the compiler used to build d1253 2 a1254 2
If you specify the --with-native-system-header-dir=dirname d1256 4 a1259 7 native system headers rather than the default /usr/include.
--with-headers--with-headers=dirDeprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1261 5 a1265 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn’t pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted.
fixincludesd1267 2 a1268 4--without-headersTells GCC not use any target headers from a libc when building a cross d1271 2 a1272 5
--with-libs--with-libs="dir1 dir2 … dirN"Deprecated in favor of --with-sysroot. d1274 1 a1274 1 libraries. These libraries will be copied into the gcc install d1277 2 a1278 4
--with-newlibSpecifies that ‘newlib’ is d1280 4 a1283 6 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibcSpecifies that ‘AVR-Libc’ is d1285 3 a1287 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1291 3 a1293 5--with-nds32-lib=librarySpecifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1295 2 a1296 4
--with-build-time-tools=dir- d1313 1 a1313 2
Specifies where to find the set of target tools (assembler, linker, etc.) d1300 3 a1302 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1304 7 a1310 8 native tools in /usr/bin.
When you use this option, you should ensure that dir includes
ar,as,ld,nm,ranlibandstripif necessary, and possiblyobjdump. Otherwise, GCC may use an inconsistent set of tools.Overriding
d1316 2 a1317 2configuretest resultsconfiguretest, for example in order to ease porting to a new system or work around a bug in a test. The toplevelconfigured1319 3 a1321 5d1330 4 a1333 2
build_configargsThe contents of this variable is passed to all build
configured1323 2 a1324 5host_configargsThe contents of this variable is passed to all host
configured1326 2 a1327 5target_configargsThe contents of this variable is passed to all target
configurea1328 3In order to avoid shell and
makequoting issues for complex overrides, you can pass a setting forCONFIG_SITEand set d1335 2 a1336 3Java-Specific Options
d1339 3 a1341 4d1358 5 a1362 11
--disable-libgcjSpecify that the run-time libraries d1343 1 a1343 1 to use GCJ with some other run-time, or you’re going to install it d1346 2 a1347 2 libraries will be enabled too, unless they’re known to not work on the target platform. If GCJ is enabled but ‘libgcj’ isn’t built, you d1349 8 a1356 5 configure.ac so that ‘libgcj’ is enabled by default on this platform, you may use --enable-libgcj to override the default.
The following options apply to building ‘libgcj’.
General Options
--enable-java-maintainer-modeBy default the ‘libjava’ build will not attempt to compile the .java source files to .class. Instead, it will use the .class files from the source tree. If you use this option you must have executables named
ecj1andgjavahin your path d1364 10 a1373 14 modify any .java files in libjava.--with-java-home=dirnameThis ‘libjava’ option overrides the default value of the ‘java.home’ system property. It is also used to set ‘sun.boot.class.path’ to dirname/lib/rt.jar. By default ‘java.home’ is set to prefix and ‘sun.boot.class.path’ to datadir/java/libgcj-version.jar.
--with-ecj-jar=filenameThis option can be used to specify the location of an external jar d1375 3 a1377 3 version of this compiler is used by
gcjto parse .java source files. If this option is given, the ‘libjava’ build will create and install an ecj1 executable d1379 8 a1386 8If this option is not given, but an ecj.jar file is found in the topmost source tree at configure time, then the ‘libgcj’ build will create and install ecj1, and will also install the discovered ecj.jar into a suitable place in the install tree.
If ecj1 is not installed, then the user will have to supply one on his path in order for
gcjto properly parse .java d1389 5 a1393 9--disable-getenv-propertiesDon’t set system properties from
GCJ_PROPERTIES.--enable-hash-synchronizationUse a global hash table for monitor locks. Ordinarily, ‘libgcj’’s ‘configure’ script automatically makes d1396 2 a1397 4
--enable-interpreterEnable the Java interpreter. The interpreter is automatically d1400 3 a1402 5 (using --disable-interpreter).
--disable-java-netDisable java.net. This disables the native part of java.net only, d1404 6 a1409 10
--disable-jvmpiDisable JVMPI support.
--disable-libgcj-bcDisable BC ABI compilation of certain parts of libgcj. By default, some portions of libgcj are compiled with -findirect-dispatch and -fno-indirect-classes, allowing them to be overridden at d1411 2 a1412 2
If --disable-libgcj-bc is specified, libgcj is built without d1416 2 a1417 4
--enable-reduced-reflectionBuild most of libgcj with -freduced-reflection. This reduces d1422 11 a1432 19
--with-ecosEnable runtime eCos target support.
--without-libffiDon’t use ‘libffi’. This will disable the interpreter and JNI support as well, as these require ‘libffi’ to work.
--enable-libgcj-debugEnable runtime debugging code.
--enable-libgcj-multifileIf specified, causes all .java source files to be compiled into .class files in one invocation of ‘gcj’. This can speed up build time, but is more d1434 8 a1441 14 disabled, ‘gcj’ is invoked once for each .java file to compile into a .class file.
--with-libiconv-prefix=DIRSearch for libiconv in DIR/include and DIR/lib.
--with-system-zlibUse installed ‘zlib’ rather than that included with GCC.
--with-win32-nlsapi=ansi, unicows or unicodeIndicates how MinGW ‘libgcj’ translates between UNICODE d1443 2 a1444 4
--enable-java-homeIf enabled, this creates a JPackage compatible SDK environment during install. d1447 2 a1448 4
--with-arch-directory=ARCHSpecifies the name to use for the jre/lib/ARCH directory in the SDK d1451 5 a1455 9
--with-os-directory=DIRSpecifies the OS directory for the SDK include directory. This is set to auto detect, and is typically ’linux’.
--with-origin-name=NAMESpecifies the JPackage origin name. This defaults to the ’gcj’ in d1457 9 a1465 17
--with-arch-suffix=SUFFIXSpecifies the suffix for the sdk directory. Defaults to the empty string. Examples include ’.x86_64’ in ’java-1.5.0-gcj-1.5.0.0.x86_64’.
--with-jvm-root-dir=DIRSpecifies where to install the SDK. Default is $(prefix)/lib/jvm.
--with-jvm-jar-dir=DIRSpecifies where to install jars. Default is $(prefix)/lib/jvm-exports.
--with-python-dir=DIRSpecifies where to install the Python modules used for aot-compile. DIR should d1470 6 a1475 12
--enable-aot-compile-rpmAdds aot-compile-rpm to the list of installed scripts.
--enable-browser-pluginBuild the gcjwebplugin web browser plugin.
--enable-static-libjavaBuild static libraries in libjava. The default is to only build shared d1477 3 a1479 4
ansiUse the single-byte
charand the Win32 A functions natively, d1482 6 a1487 8unicowsUse the
WCHARand Win32 W functions natively. Adds-lunicowsto libgcj.spec to link with ‘libunicows’. unicows.dll needs to be deployed on Microsoft Windows 9X machines running built executables. libunicows.a, an open-source import library around Microsoft’sunicows.dll, is obtained from d1489 5 a1493 8 on getting unicows.dll from Microsoft.unicode- d1495 1 a1495 5
Use the
WCHARand Win32 W functions natively. Does not add-lunicowsto libgcj.spec. The built executables will only run on Microsoft Windows NT and above.AWT-Specific Options
d1497 1 a1497 42d1499 2 d1502 5 a1506 4
--with-xUse the X Window System.
--enable-java-awt=PEER(S)Specifies the AWT peer library or libraries to build alongside ‘libgcj’. If this option is unspecified or disabled, AWT will be non-functional. Current valid values are gtk and xlib. Multiple libraries should be separated by a comma (i.e. --enable-java-awt=gtk,xlib).
--enable-gtk-cairoBuild the cairo Graphics2D implementation on GTK.
--enable-java-gc=TYPEChoose garbage collector. Defaults to boehm if unspecified.
--disable-gtktestDo not try to compile and run a test GTK+ program.
--disable-glibtestDo not try to compile and run a test GLIB program.
--with-libart-prefix=PFXPrefix where libart is installed (optional).
--with-libart-exec-prefix=PFXExec prefix where libart is installed (optional).
--disable-libarttestDo not try to compile and run a test libart program.
Return to the GCC Installation page
d1508 1 d1510 1 d1512 1 d1514 1 d1516 1 d1518 1 d1520 1 d1522 1 d1524 2 d1527 10 a1537 2 @ 1.7.2.2 log @Sync with HEAD @ text @d1 3 a3 10Installing GCC: Configuration d62 26 a87 4Installing GCC: Configuration
Like most GNU software, GCC must be configured before it can be built. d90 2 a91 2We use srcdir to refer to the toplevel source directory for d93 7 a99 7
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell's built-in pwd command will return d101 3 a103 3 problems. To avoid this issue, set the PWDCMD environment variable to an automounter-aware pwd command, e.g., pawd or ‘amq -w’, during the configuration and build d105 2 a106 2
First, we highly recommend that GCC be built into a d109 1 a109 1 where srcdir == objdir should still work, but doesn't d112 6 a117 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don't know how to make distclean” it probably d121 3 a123 3
Second, when configuring a native system, either cc or gcc must be in your path or you must set CC in d126 1 d128 7 a134 1
To configure GCC: d136 2 a137 5
% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d142 4 a145 3
--with-pkgversion=version- Specify a string that identifies your package. You may wish d147 8 a154 6 included in the output of gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.
The default value is ‘GCC’.
--with-bugurl=url- Specify the URL that users should visit if they wish to report a bug. d157 5 d163 4 a166 8
The default value refers to the FSF's GCC bug tracker.
Target specification
d179 2 a180 1
- GCC has code to correctly determine the correct value for target d170 1 a170 1
- target must be specified as --target=target d174 4 a177 3
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d183 2 a184 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d186 8 a193 7Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirname- Specify the toplevel installation d196 3 a198 3 /usr/local.
We highly recommend against dirname being the same or a d200 5 a204 5 beneath a user's home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use $HOME instead.
The following standard autoconf options are supported. Normally you d206 3 a208 2
--exec-prefix=dirname- Specify the toplevel installation directory for architecture-dependent d210 20 a229 12
--bindir=dirname- Specify the installation directory for the executables called by users (such as gcc and g++). The default is exec-prefix/bin.
--libdir=dirname- Specify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirname- Specify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirname- Specify the installation directory for the shared libgcc library. The d231 14 a244 8
--datarootdir=dirname- Specify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirname- Specify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirname- Specify the installation directory for some architecture-independent d246 9 a254 5
--docdir=dirname- Specify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirname- Specify the installation directory for HTML documentation files. d256 4 a259 2
--pdfdir=dirname- Specify the installation directory for PDF documentation files. d261 5 a265 3
--mandir=dirname- Specify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d269 4 a272 2
--with-gxx-include-dir=dirname- Specify d276 4 a279 2
--with-specs=specs- Specify additional command line driver SPECS. d281 2 a282 2 default without modifying the compiler's source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. d284 3 d288 3 a290 3
--program-prefix=prefix- GCC supports some transformations of the names of its programs when d293 13 a305 9 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffix- Appends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=pattern- Applies the ‘sed’ script pattern to be applied to the names d307 5 a311 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d313 1 a313 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d315 2 a316 2
All three options can be combined and used together, resulting in more d320 3 a322 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries' names are not transformed even when a d324 2 a325 2
For native builds, some of the installed programs are also installed d327 1 a327 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d329 1 a329 1 --program-prefix=foo- and program-suffix=-3.1, the d331 3 a333 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d335 4 a338 2
--with-local-prefix=dirname- Specify the d340 6 a345 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d347 4 a350 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d353 3 a355 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d358 4 a361 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC's “system include” directories. Although these d367 2 a368 2
Some autoconf macros add -I directory options to the d370 1 a370 1 packages' headers are searched. When directory is one of GCC's d375 3 a377 3
GCC automatically searches for ordinary libraries using GCC_EXEC_PREFIX. Thus, when the same installation prefix is d381 3 a383 3 installed as a system compiler in /usr.
Sites that need to install multiple versions of GCC may not want to d385 2 a386 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d388 1 a388 1 and the --with-local-prefix option to specify the location of the d391 9 a399 9 (e.g., with LIBRARY_PATH).
The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system's standard header files. If it did contain d402 3 a404 3 file corrections made by the fixincludes script.
Indications are that people who use this option use it based on mistaken d408 5 a412 6
--with-gcc-major-version-only- Specifies that GCC should use only the major number rather than major.minor.patchlevel in filesystem paths.
--with-native-system-header-dir=dirname- Specifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d415 1 a415 1 --with-sysroot option and will cause GCC to search d417 4 a420 2
--enable-shared[=package[,...]]- Build shared versions of libraries, if shared libraries are supported on d423 2 a424 2
If a list of packages is given as an argument, build shared libraries d427 10 a436 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d438 4 a441 2
--enable-host-shared- Specify that the host code should be built into position-independent d444 4 a447 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d449 4 a452 2
--with-gnu-as- Specify that the compiler should assume that the d457 1 a457 1 configured with --with-gnu-as.) If you have more than one d459 4 a462 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d464 12 a475 10 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathname- Specify that the compiler should use the assembler pointed to by d478 4 a481 4
d501 1 a501 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d483 3 a485 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d488 2 a489 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d492 1 a492 1
- Check in the PATH for a tool whose name is prefixed by the d495 1 a495 1
- Check in the PATH for a tool whose name is not prefixed by the d498 2 a499 2 the target as well).
You may want to use --with-as if no assembler d505 4 a508 2
--with-gnu-ld- Same as --with-gnu-as d510 4 a513 2
--with-ld=pathname- Same as --with-as d515 4 a518 2
--with-stabs- Specify that stabs debugging d521 2 a522 2
On MIPS based systems and on Alphas, you must specify whether you want d527 6 a532 6
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly d534 3 a536 3
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging d539 2 a540 2
--with-stabs is also meaningful on 386 systems running SVR4. It d546 4 a549 2
--with-tls=dialect- Specify the default TLS dialect, for systems were there is a choice. d553 4 a556 2
--enable-multiarch- Specify whether to enable or disable multiarch support. The default is d559 2 a560 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d563 5 a567 3
--enable-sjlj-exceptions- Force use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d569 4 a572 2--enable-vtable-verify- Specify whether to enable or disable the vtable verification feature. d577 1 a577 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d580 6 a585 4 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilib- Specify that multiple target d589 18 a606 11
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
arm-*-*- fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*- softfloat, m68881, m68000, m68020.
mips*-*-*- single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*- aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, d608 3 d612 20 a631 55
--with-multilib-list=list--without-multilib-list- Specify what multilibs to build. list is a comma separated list of values, possibly consisting of a single value. Currently only implemented for arm*-*-*, sh*-*-* and x86-64-*-linux*. The accepted values and meaning for each target is given below.
arm*-*-*- list is one of
default,aprofileorrmprofile. Specifyingdefaultis equivalent to omitting this option, ie. only the default runtime library will be enabled. Specifyingaprofileorrmprofilebuilds multilibs for a combination of ISA, architecture, FPU available and floating-point ABI.The table below gives the combination of ISAs, architectures, FPUs and floating-point ABIs for which multilibs are built for each accepted value.
Option aprofile rmprofile ISAs -marmand-mthumb-mthumbArchitectures
default architecture
-march=armv7-a
-march=armv7ve
-march=armv8-a
default architecture
-march=armv6s-m
-march=armv7-m
-march=armv7e-m
-march=armv8-m.base
-march=armv8-m.main
-march=armv7FPUs
none
-mfpu=vfpv3-d16
-mfpu=neon
-mfpu=vfpv4-d16
-mfpu=neon-vfpv4
-mfpu=neon-fp-armv8none
-mfpu=vfpv3-d16
-mfpu=fpv4-sp-d16
-mfpu=fpv5-sp-d16
-mfpu=fpv5-d16
floating-point ABIs
-mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hard-mfloat-abi=soft
-mfloat-abi=softfp
-mfloat-abi=hardsh*-*-*- list is a comma separated list of CPU names. These must be of the d634 3 a636 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d638 4 a641 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d643 3 a645 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d648 6 d655 1 a655 5
Example 1: to configure a compiler for SH4A only, but supporting both endians, with little endian being the default:
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d657 8 a664 4
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- list is a comma separated list of
m32,m64and d668 4 a671 3If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled. d674 3 a676 1
--with-endian=endians- Specify what endians to use. d678 15 a692 7
endians may be one of the following:
big- Use big endian exclusively.
little- Use little endian exclusively.
big,little- Use big endian by default. Provide a multilib for little endian.
little,big- Use little endian by default. Provide a multilib for big endian. d695 3 a697 1
--enable-threads- Specify that the target d699 1 a699 1 library, and exception handling for other languages like C++. d701 2 a702 2
In general, the best (and, in many cases, the only known) threading d705 11 a715 7 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threads- Specify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=lib- Specify that d718 36 a753 14 like C++. The possibilities for lib are:
aix- AIX thread support.
dce- DCE thread support.
lynx- LynxOS thread support.
mipssde- MIPS SDE thread support.
no- This is an alias for ‘single’.
posix- Generic POSIX/Unix98 thread support.
rtems- RTEMS thread support.
single- Disable thread support, should work for all platforms.
tpf- TPF thread support.
vxworks- VxWorks thread support.
win32- Microsoft Win32 API thread support. d756 3 a758 1
--enable-tls- Specify that the target supports TLS (Thread Local Storage). Usually d761 1 a761 1 --enable-tls or --disable-tls. This can happen if d764 12 a775 6
--disable-tls- Specify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpu- Specify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d777 2 a778 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d781 16 a796 5
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=type- These configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d798 4 a801 2
--with-mode=mode- Specify if the compiler should default to -marm or -mthumb. d803 4 a806 2
--with-stack-offset=num- This option sets the default for the -mstack-offset=num option, d809 6 a814 4
--with-fpmath=isa- This options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d816 4 a819 2
--with-fp-32=mode- On MIPS targets, set the default value for the -mfp option when using d821 13 a833 7
32- Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xx- Use the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- Use the o32 FP64 ABI extension, as with the -mfp64 command-line option. d835 1 a835 1 In the absence of this configuration option the default is to use the o32 d837 4 a840 2
--with-odd-spreg-32- On MIPS targets, set the -modd-spreg option by default when using d842 4 a845 2
--without-odd-spreg-32- On MIPS targets, set the -mno-odd-spreg option by default when using d847 5 a851 3 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encoding- On MIPS targets, set the default encoding convention to use for the d854 9 a862 5
legacy- Use the legacy encoding, as with the -mnan=legacy command-line option.
2008- Use the 754-2008 encoding, as with the -mnan=2008 command-line option. d864 2 a865 2 To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d867 7 a873 5 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=type- Specify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d875 8 a882 4
traps- Division by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- Division by zero checks use the break instruction. d885 5 a889 4
--with-llsc- On MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d892 19 a910 40
--without-llsc- On MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synci- On MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synci- On MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-lxc1-sxc1- On MIPS targets, make -mlxc1-sxc1 the default when no -mno-lxc1-sxc1 option is passed. This is the default.
--without-lxc1-sxc1- On MIPS targets, make -mno-lxc1-sxc1 the default when no -mlxc1-sxc1 option is passed. The indexed load/store instructions are not directly a problem but can lead to unexpected behaviour when deployed in an application intended for a 32-bit address space but run on a 64-bit processor. The issue is seen because all known MIPS 64-bit Linux kernels execute o32 and n32 applications with 64-bit addressing enabled which affects the overflow behaviour of the indexed addressing mode. GCC will assume that ordinary 32-bit arithmetic overflow behaviour is the same whether performed as an
adduinstruction or as part of the address calculation inlwxc1type instructions. This assumption holds true in a pure 32-bit environment and can hold true in a 64-bit environment if the address space is accurately set to be 32-bit for o32 and n32.--with-madd4- On MIPS targets, make -mmadd4 the default when no -mno-madd4 option is passed. This is the default.
--without-madd4- On MIPS targets, make -mno-madd4 the default when no -mmadd4 option is passed. The
madd4instruction family can be problematic when targeting a combination of cores that implement these instructions differently. There are two known cores that implement these as fused operations instead of unfused (where unfused is normally expected). Disabling these instructions is the only way to ensure compatible code is generated; this will incur a performance penalty.--with-mips-plt- On MIPS targets, make use of copy relocations and PLTs. d914 5 a918 3
--enable-__cxa_atexit- Define if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d922 5 a926 3 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-function- Define if you want to enable the
ifuncattribute. This option is d928 5 a932 3--enable-target-optspace- Specify that target libraries should be optimized for code space instead of code speed. d934 9 a942 5
--with-cpp-install-dir=dirname- Specify that the user visible cpp program should be installed in prefix/dirname/cpp, in addition to bindir.
--enable-comdat- Enable COMDAT group support. This is primarily used to override the d944 4 a947 2
--enable-initfini-array- Force the use of sections
.init_arrayand.fini_arrayd949 1 a949 1 destructors. Option --disable-initfini-array has the d953 4 a956 2--enable-link-mutex- When building GCC, use a mutex to avoid linking the compilers for d959 5 a963 3
--enable-maintainer-mode- The build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d966 1 a966 1 catalog, configuring with --enable-maintainer-mode will enable d969 5 a973 3
--disable-bootstrap- For a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d975 6 a980 4 this process, you can configure with --disable-bootstrap.
--enable-bootstrap- In special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d982 1 a982 1 the target (e.g. host is i686-linux, target is i486-linux). d984 5 a988 3 with --enable-bootstrap.
--enable-generated-files-in-srcdir- Neither the .c and .h files that are generated from Bison and flex nor the d994 2 a995 2
If you configure with --enable-generated-files-in-srcdir then those d1000 4 a1003 2
--enable-version-specific-runtime-libs- Specify d1005 2 a1006 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’'s include files will be installed into d1008 1 a1008 1 --with-gxx-include-dir=dirname. Using this option is d1010 6 a1015 4 parallel. This is currently supported by ‘libgfortran’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’- Traditional AIX shared library versioning (versioned
Shared Objectd1017 1 a1017 1 ‘lib.a’) causes numerous headaches for package managers. However, d1020 1 a1020 1 where this is called the "SONAME". But as they prevent static linking, d1022 23 a1044 20 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
d1086 13 a1098 11
--with-aix-soname=aix--with-aix-soname=both- A (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- is used for runtime loading from inside the ‘libNAME.a’ file
- is used for dynamic loading via
dlopen("libNAME.a(libNAME.so.V)", RTLD_MEMBER)- is used for shared linking
- is used for static linking, so no separate
Static Archive d1046 15 a1060 12--with-aix-soname=both--with-aix-soname=svr4- A (second)
Shared Archive Libraryfile is created:A symbolic link using the ‘libNAME.so’ filename scheme is created:
- using the ‘libNAME.so.V’ filename scheme
- with the
Shared Objectfile as archive member named ‘shr.o’, which
- is created with the
-G linker flag- has the
F_LOADONLYflag set- is used for runtime loading from inside the ‘libNAME.so.V’ file
- is used for dynamic loading via
dlopen("libNAME.so.V(shr.o)", d1062 2 a1063 2- with the
Import Fileas archive member named ‘shr.imp’, d1065 2 a1066 2
- refers to ‘libNAME.so.V(shr.o)’ as the "SONAME", to be recorded d1068 13 a1080 13
- indicates whether ‘libNAME.so.V(shr.o)’ is 32 or 64 bit
- lists all the public symbols exported by ‘lib.so.V(shr.o)’, eventually decorated with the
‘weak’ Keyword- is necessary for shared linking against ‘lib.so.V(shr.o)’
- pointing to the ‘libNAME.so.V’
Shared Archive Libraryfile- to permit the
ld Commandto find ‘lib.so.V(shr.imp)’ via the ‘-lNAME’ argument (requiresRuntime Linkingto be enabled)- to permit dynamic loading of ‘lib.so.V(shr.o)’ without the need to specify the version number via
dlopen("libNAME.so(shr.o)", d1082 3 a1084 2As long as static library creation is enabled, upon:
d1100 1 a1100 1
--with-aix-soname=svr4- A
Static Archive Libraryis created:
- using the ‘libNAME.a’ filename scheme
- with all the
Static Objectfiles as archive members, which
- are used for static linking
While the aix-soname=‘svr4’ option does not create
Shared Objectd1107 2 a1108 2WARNING: Creating
Shared Objectfiles withRuntime Linkingd1110 1 a1110 1 requiring the use of either the -Wl,-bbigtoc linker flag (seen to d1113 2 a1114 2--with-aix-soname is currently supported by ‘libgcc_s’ only, so d1116 6 a1121 4
Default is the traditional behavior --with-aix-soname=‘aix’.
--enable-languages=lang1,lang2,...- Specify that only a particular subset of compilers and d1124 5 a1128 4 gcc directory of your GCC source tree:
grep ^language= */config-lang.inCurrently, you can use any of the following: d1130 2 a1131 2
go,jit,lto,objc,obj-c++. Building the Ada compiler has special requirements, see below. d1133 1 a1133 1 default languages available in the gcc sub-tree will be configured. d1135 1 a1135 1 default language, but is built by default because --enable-lto is d1137 4 a1140 2--enable-stage1-languages=lang1,lang2,...- Specify that a particular subset of compilers and their runtime d1144 2 a1145 2 --enable-languages, and the option
allwill select all of the languages enabled by --enable-languages. This option is d1150 7 a1156 5 specified languages with the stage-1 compiler by using make stage1-bubble all-target, or run the testsuite on the stage-1 compiler for the specified languages using make stage1-start check-gcc.--disable-libada- Specify that the run-time libraries and tools used by GNAT should not d1159 5 a1163 3 do a ‘make -C gcc gnatlib_and_tools’.
--disable-libsanitizer- Specify that the run-time libraries for the various sanitizers should d1165 4 a1168 2
--disable-libssp- Specify that the run-time libraries for stack smashing protection d1170 4 a1173 2
--disable-libquadmath- Specify that the GCC quad-precision math library should not be built. d1175 1 a1175 1 the Fortran front end, unless --disable-libquadmath-support d1177 4 a1180 2
--disable-libquadmath-support- Specify that the Fortran front end and
libgfortrando not add d1182 4 a1185 2--disable-libgomp- Specify that the GNU Offloading and Multi Processing Runtime Library d1187 4 a1190 2
--disable-libvtv- Specify that the run-time libraries used by vtable verification d1192 4 a1195 2
--with-dwarf2- Specify that the compiler should d1197 4 a1200 2
--with-advance-toolchain=at- On 64-bit PowerPC Linux systems, configure the compiler to use the d1206 5 a1210 2
--enable-targets=all--enable-targets=target_list- Some GCC targets, e.g. powerpc64-linux, build bi-arch compilers. d1212 1 a1212 1 code. Typically, the corresponding 32-bit target, e.g. d1216 1 a1216 1 you are building a bi-arch or multi-arch binutils in a combined tree. d1218 1 a1218 1 defaulted to o32. d1221 8 a1228 4
--enable-default-pie- Turn on -fPIE and -pie by default.
--enable-secureplt- This option enables -msecure-plt by default for powerpc-linux. d1230 8 a1237 4
--enable-default-ssp- Turn on -fstack-protector-strong by default.
--enable-cld- This option enables -mcld by default for 32-bit x86 targets. d1239 6 a1244 2
--enable-win32-registry--enable-win32-registry=key--disable-win32-registry- The --enable-win32-registry option enables Microsoft Windows-hosted GCC d1246 4 d1251 2 a1252 4
HKEY_LOCAL_MACHINE\SOFTWARE\Free Software Foundation\keykey defaults to GCC version number, and can be overridden by the --enable-win32-registry=key option. Vendors and distributors d1256 1 a1256 1 by default, and can be disabled by --disable-win32-registry d1258 15 a1272 8
--nfp- Specify that the machine does not have a floating point unit. This option only applies to ‘m68k-sun-sunosn’. On any other system, --nfp has no effect.
--enable-werror--disable-werror--enable-werror=yes--enable-werror=no- When you specify this option, it controls whether certain files in the compiler are built with -Werror in bootstrap stage2 and later. If you don't specify it, -Werror is turned on for the main d1274 1 a1274 1 final releases. The specific files which get -Werror are d1276 5 a1280 2
--enable-checking--enable-checking=list- When you specify this option, the compiler is built to perform internal d1284 3 a1286 3 the compiler with GCC. This is ‘yes,extra’ by default when building from SVN or snapshots, but ‘release’ for releases. The default for building the stage1 compiler is ‘yes’. More control d1288 9 a1296 12 checks available are ‘yes’ (most common checks ‘assert,misc,tree,gc,rtlflag,runtime’), ‘no’ (no checks at all), ‘all’ (all but ‘valgrind’), ‘release’ (cheapest checks ‘assert,runtime’) or ‘none’ (same as ‘no’). Individual checks can be enabled with these flags ‘assert’, ‘df’, ‘fold’, ‘gc’, ‘gcac’, ‘misc’, ‘rtl’, ‘rtlflag’, ‘runtime’, ‘tree’, ‘extra’ and ‘valgrind’. ‘extra’ adds for ‘misc’ checking extra checks that might affect code generation and should therefore not differ between stage1 and later stages.
The ‘valgrind’ check requires the external valgrind d1298 3 a1300 3 ‘df’, ‘rtl’, ‘gcac’ and ‘valgrind’ checks are very expensive. To disable all checking, ‘--disable-checking’ or ‘--enable-checking=none’ must be explicitly requested. Disabling d1304 7 a1310 3
--disable-stage1-checking--enable-stage1-checking--enable-stage1-checking=list- If no --enable-checking option is specified the stage1 compiler will be built with ‘yes’ checking enabled, otherwise d1312 3 a1314 3 --enable-checking. To build the stage1 compiler with different checking options use --enable-stage1-checking. The list of checking options is the same as for --enable-checking. d1316 1 a1316 1 with checking for stage1 enabled, you can use ‘--disable-stage1-checking’ d1318 5 a1322 2
--enable-coverage--enable-coverage=level- With this option, the compiler is built to collect self coverage d1326 1 a1326 1 not, values are ‘opt’ and ‘noopt’. For coverage analysis you d1330 4 a1333 2
--enable-gather-detailed-mem-stats- When this option is specified more detailed information on memory d1335 5 a1339 3 -fmem-report.
--enable-valgrind-annotations- Mark selected memory related operations in the compiler when run under d1341 5 a1345 2
--enable-nls--disable-nls- The --enable-nls option enables Native Language Support (NLS), d1348 10 a1357 6 canadian cross build. The --disable-nls option disables NLS.
--with-included-gettext- If NLS is enabled, the --with-included-gettext option causes the build procedure to prefer its copy of GNU gettext.
--with-catgets- If NLS is enabled, and if the host lacks
gettextbut has the d1359 12 a1370 8 ignorescatgetsand instead uses GCC's copy of the GNUgettextlibrary. The --with-catgets option causes the build procedure to use the host'scatgetsin this situation.--with-libiconv-prefix=dir- Search for libiconv header files in dir/include and libiconv library files in dir/lib.
--enable-obsolete- Enable configuration for an obsoleted system. If you attempt to d1374 2 a1375 2
All support for systems which have been obsoleted in one release of GCC d1378 9 a1386 2
--enable-decimal-float--enable-decimal-float=yes--enable-decimal-float=no--enable-decimal-float=bid--enable-decimal-float=dpd--disable-decimal-float- Enable (or disable) support for the C decimal floating point extension d1391 2 a1392 2 ‘bid’ or ‘dpd’). The ‘bid’ (binary integer decimal) format is default on i386 and x86_64 systems, and the ‘dpd’ d1394 5 a1398 2
--enable-fixed-point--disable-fixed-point- Enable (or disable) support for C fixed-point arithmetic. d1402 4 a1405 2
--with-long-double-128- Specify if
long doubletype should be 128-bit by default on selected d1407 1 a1407 1long doublewill be by default 64-bit, the same asdoubletype. d1411 16 a1426 4--enable-fdpic- On SH Linux systems, generate ELF FDPIC code.
--with-gmp=pathname--with-gmp-include=pathname--with-gmp-lib=pathname--with-mpfr=pathname--with-mpfr-include=pathname--with-mpfr-lib=pathname--with-mpc=pathname--with-mpc-include=pathname--with-mpc-lib=pathname- If you want to build GCC but do not have the GMP library, the MPFR d1430 12 a1441 12 (‘--with-gmp=gmpinstalldir’, ‘--with-mpfr=mpfrinstalldir’, ‘--with-mpc=mpcinstalldir’). The --with-gmp=gmpinstalldir option is shorthand for --with-gmp-lib=gmpinstalldir/lib and --with-gmp-include=gmpinstalldir/include. Likewise the --with-mpfr=mpfrinstalldir option is shorthand for --with-mpfr-lib=mpfrinstalldir/lib and --with-mpfr-include=mpfrinstalldir/include, also the --with-mpc=mpcinstalldir option is shorthand for --with-mpc-lib=mpcinstalldir/lib and --with-mpc-include=mpcinstalldir/include. If these d1446 3 a1448 3 variable (LD_LIBRARY_PATH on GNU/Linux and Solaris systems).
These flags are applicable to the host platform only. When building d1450 6 a1455 2
--with-isl=pathname--with-isl-include=pathname--with-isl-lib=pathname- If you do not have the isl library installed in a standard location and you d1457 4 a1460 4 installed (‘--with-isl=islinstalldir’). The --with-isl=islinstalldir option is shorthand for --with-isl-lib=islinstalldir/lib and --with-isl-include=islinstalldir/include. If this d1463 2 a1464 2
These flags are applicable to the host platform only. When building d1466 4 a1469 2
--with-stage1-ldflags=flags- This option may be used to set linker flags to be used when linking d1471 2 a1472 2 --disable-bootstrap. If --with-stage1-libs is not set to a value, then the default is ‘-static-libstdc++ -static-libgcc’, if d1474 4 a1477 2
--with-stage1-libs=libs- This option may be used to set libraries to be used when linking stage 1 d1479 5 a1483 3 --disable-bootstrap.
--with-boot-ldflags=flags- This option may be used to set linker flags to be used when linking d1486 5 a1490 3 ‘-static-libstdc++ -static-libgcc’.
--with-boot-libs=libs- This option may be used to set libraries to be used when linking stage 2 d1492 4 a1495 2
--with-debug-prefix-map=map- Convert source directory names using -fdebug-prefix-map when d1497 6 a1502 4 list of maps of the form ‘old=new’.
--enable-linker-build-id- Tells GCC to pass --build-id option to the linker for all final links (links performed without the -r or --relocatable d1504 7 a1510 5 --enable-linker-build-id, but your linker does not support --build-id option, a warning is issued and the --enable-linker-build-id option is ignored. The default is off.
--with-linker-hash-style=choice- Tells GCC to pass --hash-style=choice option to the d1512 6 a1517 3 ‘sysv’, ‘gnu’, and ‘both’ where ‘sysv’ is the default.
--enable-gnu-unique-object--disable-gnu-unique-object- Tells GCC to use the gnu_unique_object relocation for C++ template d1521 4 a1524 2
--with-diagnostics-color=choice- Tells GCC to use choice as the default for -fdiagnostics-color= d1526 3 a1528 3 can be one of ‘never’, ‘auto’, ‘always’, and ‘auto-if-env’ where ‘auto’ is the default. ‘auto-if-env’ means that -fdiagnostics-color=auto will be the default if
GCC_COLORSd1530 12 a1541 6 -fdiagnostics-color=never otherwise.--enable-lto--disable-lto- Enable support for link-time optimization (LTO). This is enabled by default, and may be disabled using --disable-lto.
--enable-linker-plugin-configure-flags=FLAGS--enable-linker-plugin-flags=FLAGS- By default, linker plugins (such as the LTO plugin) are built for the d1546 2 a1547 2 (‘x86_64-unknown-linux-gnu’) host system, but have a 32-bit x86 GNU/Linux (‘i686-pc-linux-gnu’) linker executable (which is d1550 12 a1561 8
% srcdir/configure \ --host=x86_64-unknown-linux-gnu \ --enable-linker-plugin-configure-flags=--host=i686-pc-linux-gnu \ --enable-linker-plugin-flags='CC=gcc\ -m32\ -Wl,-rpath,[...]/i686-pc-linux-gnu/lib'--with-plugin-ld=pathname- Enable an alternate linker to be used at link-time optimization (LTO) link time when -fuse-linker-plugin is enabled. d1563 7 a1569 4 version 2.20 or GNU ld starting with version 2.21. See -fuse-linker-plugin for details.
--enable-canonical-system-headers--disable-canonical-system-headers- Enable system header path canonicalization for libcpp. This can d1573 5 a1577 3 --disable-canonical-system-headers.
--with-glibc-version=major.minor- Tell GCC that when the GNU C Library (glibc) is used on the target it d1579 1 a1579 1 be detected from the C library's header files, but this option may be d1582 3 a1584 3
If GCC is configured with some multilibs that use glibc and some that do not, this option applies only to the multilibs that use glibc. d1587 8 a1594 4
--enable-as-accelerator-for=target- Build as offload target compiler. Specify offload host triple by target.
--enable-offload-targets=target1[=path1],...,targetN[=pathN]- Enable offloading to targets target1, ..., targetN. d1597 6 a1602 1 specifying paths path1, ..., pathN. d1604 1 a1604 4
% srcdir/configure \ --enable-offload-target=i686-unknown-linux-gnu=/path/to/i686/compiler,x86_64-pc-linux-gnuIf ‘hsa’ is specified as one of the targets, the compiler will be d1607 7 a1613 3
--with-hsa-runtime=pathname--with-hsa-runtime-include=pathname--with-hsa-runtime-lib=pathname- If you configure GCC with HSA offloading but do not have the HSA d1616 1 a1616 1 --with-hsa-runtime=hsainstalldir option is a d1618 10 a1627 2 --with-hsa-runtime-lib=hsainstalldir/lib and --with-hsa-runtime-include=hsainstalldir/include. d1630 2 a1631 2
Cross-Compiler-Specific Options
d1633 6 a1638 4
--with-sysroot--with-sysroot=dir- Tells GCC to consider dir as the root of a tree that contains (a subset of) the root filesystem of the target operating system. d1641 1 a1641 1 --sysroot=dir was added to the default options of the built d1643 5 a1647 5 install tree, unlike the options --with-headers and --with-libs that this option obsoletes. The default value, in case --with-sysroot is not given an argument, is ${gcc_tooldir}/sys-root. If the specified directory is a subdirectory of ${exec_prefix}, then it will be found relative to d1649 2 a1650 2
This option affects the system root for the compiler used to build d1654 2 a1655 2
If you specify the --with-native-system-header-dir=dirname d1657 11 a1667 8 native system headers rather than the default /usr/include.
--with-build-sysroot--with-build-sysroot=dir- Tells GCC to consider dir as the system root (see --with-sysroot) while building target libraries, instead of the directory specified with --with-sysroot. This option is only useful when you are already using --with-sysroot. You can use --with-build-sysroot when you are configuring with --prefix set to a directory that is different from the one in d1669 2 a1670 2
This option affects the system root for the compiler used to build d1673 2 a1674 2
If you specify the --with-native-system-header-dir=dirname d1676 7 a1682 4 native system headers rather than the default /usr/include.
--with-headers--with-headers=dir- Deprecated in favor of --with-sysroot. Specifies that target headers are available when building a cross compiler. d1684 5 a1688 5 files. These include files will be copied into the gcc install directory. This option with the dir argument is required when building a cross compiler, if prefix/target/sys-include doesn't pre-exist. If prefix/target/sys-include does pre-exist, the dir argument may be omitted. fixincludes d1690 4 a1693 2
--without-headers- Tells GCC not use any target headers from a libc when building a cross d1696 5 a1700 2
--with-libs--with-libs="dir1 dir2...dirN"- Deprecated in favor of --with-sysroot. d1702 1 a1702 1 libraries. These libraries will be copied into the gcc install d1705 4 a1708 2
--with-newlib- Specifies that ‘newlib’ is d1710 6 a1715 4 omitted from libgcc.a on the assumption that it will be provided by ‘newlib’.
--with-avrlibc- Specifies that ‘AVR-Libc’ is d1717 3 a1719 3 functions like
__addsf3to be omitted from libgcc.a on the assumption that it will be provided by libm.a. For more technical details, cf. PR54461. d1723 5 a1727 3--with-nds32-lib=library- Specifies that library setting is used for building libgcc.a. Currently, the valid library is ‘newlib’ or ‘mculib’. d1729 4 a1732 2
--with-build-time-tools=dir- Specifies where to find the set of target tools (assembler, linker, etc.) d1736 3 a1738 3
For example, on an ‘ia64-hp-hpux’ system, you may have the GNU assembler and linker in /usr/bin, and the native tools in a d1740 8 a1747 7 native tools in /usr/bin.
When you use this option, you should ensure that dir includes ar, as, ld, nm, ranlib and strip if necessary, and possibly objdump. Otherwise, GCC may use an inconsistent set of tools. d1750 2 a1751 1
Overriding configure test results
d1754 2 a1755 2 configure test, for example in order to ease porting to a new system or work around a bug in a test. The toplevel configure d1757 5 a1761 3
build_configargs- The contents of this variable is passed to all build configure d1763 5 a1767 2
host_configargs- The contents of this variable is passed to all host configure d1769 5 a1773 2
target_configargs- The contents of this variable is passed to all target configure d1775 3 d1779 2 a1780 4
In order to avoid shell and make quoting issues for complex overrides, you can pass a setting for CONFIG_SITE and set d1782 21 d1804 205 a2008 1
Objective-C-Specific Options
d2010 2 a2011 1The following options apply to the build of the Objective-C runtime library. d2013 41 a2053 24
--enable-objc-gc- Specify that an additional variant of the GNU Objective-C runtime library is built, using an external build of the Boehm-Demers-Weiser garbage collector (http://www.hboehm.info/gc/). This library needs to be available for each multilib variant, unless configured with --enable-objc-gc=‘auto’ in which case the build of the additional runtime library is skipped when not available and the build continues.
--with-target-bdw-gc=list--with-target-bdw-gc-include=list--with-target-bdw-gc-lib=list- Specify search directories for the garbage collector header files and libraries. list is a comma separated list of key value pairs of the form ‘multilibdir=path’, where the default multilib key is named as ‘.’ (dot), or is omitted (e.g. ‘--with-target-bdw-gc=/opt/bdw-gc,32=/opt-bdw-gc32’).
The options --with-target-bdw-gc-include and --with-target-bdw-gc-lib must always be specified together for each multilib variant and they take precedence over --with-target-bdw-gc. If --with-target-bdw-gc-include is missing values for a multilib, then the value for the default multilib is used (e.g. ‘--with-target-bdw-gc-include=/opt/bdw-gc/include’ ‘--with-target-bdw-gc-lib=/opt/bdw-gc/lib64,32=/opt-bdw-gc/lib32’). If none of these options are specified, the library is assumed in default locations. d2056 3 a2058 1
d2060 10 a2070 10 d2072 2 @ 1.6 log @merge GCC 5.5.0. this does not include updated man/info pages (yet). @ text @d1 10 a10 3Installing GCC d41 6 d48 2 a49 10Installing GCC
d51 3 d55 2 a56 25Like most GNU software, GCC must be configured before it can be built. This document describes the recommended configuration procedure for both native and cross targets.
We use srcdir to refer to the toplevel source directory for GCC; we use objdir to refer to the toplevel build/object directory.
If you obtained the sources via SVN, srcdir must refer to the top gcc directory, the one where the MAINTAINERS file can be found, and not its gcc subdirectory, otherwise the build will fail.
If either srcdir or objdir is located on an automounted NFS file system, the shell’s built-in
pwdcommand will return d58 3 a60 3 problems. To avoid this issue, set thePWDCMDenvironment variable to an automounter-awarepwdcommand, e.g.,pawdor ‘amq -w’, during the configuration and build d62 2 a63 2First, we highly recommend that GCC be built into a d66 1 a66 1 where srcdir == objdir should still work, but doesn’t d69 6 a74 6
If you have previously built GCC in the same directory for a different target machine, do ‘make distclean’ to delete all files that might be invalid. One of the files this deletes is Makefile; if ‘make distclean’ complains that Makefile does not exist or issues a message like “don’t know how to make distclean” it probably d78 3 a80 3
Second, when configuring a native system, either
d84 1 a84 7ccorgccmust be in your path or you must setCCin a82 1To configure GCC:
d86 5 a90 2% mkdir objdir % cd objdir % srcdir/configure [options] [target]Distributor options
d95 3 a97 4d108 8 a115 4
--with-pkgversion=versionSpecify a string that identifies your package. You may wish d99 6 a104 8 included in the output of
gcc --version. This suffix does not replace the default version string, only the ‘GCC’ part.The default value is ‘GCC’.
--with-bugurl=urlSpecify the URL that users should visit if they wish to report a bug. a106 5
The default value refers to the FSF’s GCC bug tracker.
Target specification
d127 1 a127 2
- GCC has code to correctly determine the correct value for target d119 1 a119 1
- target must be specified as --target=target d123 3 a125 4
- Specifying just target instead of --target=target implies that the host defaults to target.
Options specification
d130 2 a131 2 GCC. A list of supported options follows; ‘configure --help’ may list other options, but those not listed below may not d133 7 a139 8Note that each --enable option has a corresponding --disable option and that each --with option has a corresponding --without option.
--prefix=dirnameSpecify the toplevel installation d142 3 a144 3 /usr/local.
We highly recommend against dirname being the same or a d146 5 a150 5 beneath a user’s home directory tree, some shells will not expand dirname correctly if it contains the ‘~’ metacharacter; use
$HOMEinstead.The following standard
autoconfoptions are supported. Normally you d152 2 a153 3d204 3 a206 3
--exec-prefix=dirnameSpecify the toplevel installation directory for architecture-dependent d155 12 a166 20
--bindir=dirnameSpecify the installation directory for the executables called by users (such as
gccandg++). The default is exec-prefix/bin.--libdir=dirnameSpecify the installation directory for object code libraries and internal data files of GCC. The default is exec-prefix/lib.
--libexecdir=dirnameSpecify the installation directory for internal executables of GCC. The default is exec-prefix/libexec.
--with-slibdir=dirnameSpecify the installation directory for the shared libgcc library. The d168 8 a175 14
--datarootdir=dirnameSpecify the root of the directory tree for read-only architecture-independent data files referenced by GCC. The default is prefix/share.
--infodir=dirnameSpecify the installation directory for documentation in info format. The default is datarootdir/info.
--datadir=dirnameSpecify the installation directory for some architecture-independent d177 5 a181 9
--docdir=dirnameSpecify the installation directory for documentation files (other than Info) for GCC. The default is datarootdir/doc.
--htmldir=dirnameSpecify the installation directory for HTML documentation files. d183 2 a184 4
--pdfdir=dirnameSpecify the installation directory for PDF documentation files. d186 3 a188 5
--mandir=dirnameSpecify the installation directory for manual pages. The default is datarootdir/man. (Note that the manual pages are only extracts d192 2 a193 4
--with-gxx-include-dir=dirnameSpecify d197 2 a198 4
--with-specs=specsSpecify additional command line driver SPECS. d200 2 a201 2 default without modifying the compiler’s source code, for instance --with-specs=%{!fcommon:%{!fno-common:-fno-common}}. a202 3
--program-prefix=prefixGCC supports some transformations of the names of its programs when d209 9 a217 13 --program-prefix=foo- would result in ‘gcc’ being installed as /usr/local/bin/foo-gcc.
--program-suffix=suffixAppends suffix to the names of programs to install in bindir (see above). For example, specifying --program-suffix=-3.1 would result in ‘gcc’ being installed as /usr/local/bin/gcc-3.1.
--program-transform-name=patternApplies the ‘sed’ script pattern to be applied to the names d219 5 a223 5 consist of one or more basic ‘sed’ editing commands, separated by semicolons. For example, if you want the ‘gcc’ program name to be transformed to the installed program /usr/local/bin/myowngcc and the ‘g++’ program name to be transformed to /usr/local/bin/gspecial++ without changing other program names, d225 1 a225 1 --program-transform-name='s/^gcc$/myowngcc/; s/^g++$/gspecial++/' d227 2 a228 2
All three options can be combined and used together, resulting in more d232 3 a234 3
As currently implemented, this option only takes effect for native builds; cross compiler binaries’ names are not transformed even when a d236 2 a237 2
For native builds, some of the installed programs are also installed d239 1 a239 1 ‘i686-pc-linux-gnu-gcc’. All of the above transformations happen d241 1 a241 1 --program-prefix=foo- and program-suffix=-3.1, the d243 3 a245 3 /usr/local/bin/i686-pc-linux-gnu-foo-gcc-3.1.
As a last shortcoming, none of the installed Ada programs are d247 2 a248 4
--with-local-prefix=dirnameSpecify the d250 6 a255 6 /usr/local. Specify this option if you want the compiler to search directory dirname/include for locally installed header files instead of /usr/local/include.
You should specify --with-local-prefix only if your site has a different convention (not /usr/local) for where to put d257 4 a260 4
The default value for --with-local-prefix is /usr/local regardless of the value of --prefix. Specifying --prefix has no effect on which directory GCC searches for d263 3 a265 3
The purpose of --prefix is to specify where to install GCC. The local header files in /usr/local/include—if you put d268 4 a271 4 another directory which is based on the --prefix value.)
Both the local-prefix include directory and the GCC-prefix include directory are part of GCC’s “system include” directories. Although these d277 2 a278 2
Some autoconf macros add -I directory options to the d280 1 a280 1 packages’ headers are searched. When directory is one of GCC’s d285 3 a287 3
GCC automatically searches for ordinary libraries using
GCC_EXEC_PREFIX. Thus, when the same installation prefix is d291 3 a293 3 installed as a system compiler in /usr.Sites that need to install multiple versions of GCC may not want to d295 2 a296 2 --program-prefix, --program-suffix and --program-transform-name options to install multiple versions d298 1 a298 1 and the --with-local-prefix option to specify the location of the d301 9 a309 9 (e.g., with
LIBRARY_PATH).The same value can be used for both --with-local-prefix and --prefix provided it is not /usr. This can be used to avoid the default search of /usr/local/include.
Do not specify /usr as the --with-local-prefix! The directory you use for --with-local-prefix must not contain any of the system’s standard header files. If it did contain d312 3 a314 3 file corrections made by the
fixincludesscript.Indications are that people who use this option use it based on mistaken d318 3 a320 5
--with-native-system-header-dir=dirnameSpecifies that dirname is the directory that contains native system header files, rather than /usr/include. This option is most useful d323 1 a323 1 --with-sysroot option and will cause GCC to search d325 2 a326 4
--enable-shared[=package[,…]]Build shared versions of libraries, if shared libraries are supported on d329 2 a330 2
If a list of packages is given as an argument, build shared libraries d333 10 a342 10 ‘libgcc’ (also known as ‘gcc’), ‘libstdc++’ (not ‘libstdc++-v3’), ‘libffi’, ‘zlib’, ‘boehm-gc’, ‘ada’, ‘libada’, ‘libjava’, ‘libgo’, and ‘libobjc’. Note ‘libiberty’ does not support shared libraries at all.
Use --disable-shared to build only static libraries. Note that --disable-shared does not accept a list of package names as argument, only --enable-shared does.
Contrast with --enable-host-shared, which affects host d344 2 a345 4
--enable-host-sharedSpecify that the host code should be built into position-independent d348 4 a351 4
This option is required when building the libgccjit.so library.
Contrast with --enable-shared, which affects target d353 2 a354 4
--with-gnu-asSpecify that the compiler should assume that the d359 1 a359 1 configured with --with-gnu-as.) If you have more than one d361 4 a364 4 connection with --with-as=pathname or --with-build-time-tools=pathname.
The following systems are the only ones where it makes a difference d366 10 a375 12 --with-gnu-as has no effect.
- ‘hppa1.0-any-any’
- ‘hppa1.1-any-any’
- ‘sparc-sun-solaris2.any’
- ‘sparc64-any-solaris2.any’
--with-as=pathnameSpecify that the compiler should use the assembler pointed to by d378 4 a381 4
d401 1 a401 1
- Unless GCC is being built with a cross compiler, check the libexec/gcc/target/version directory. libexec defaults to exec-prefix/libexec; d383 3 a385 3 defaults to /usr/local unless overridden by the --prefix=pathname switch described above. target is the target system triple, such as ‘sparc-sun-solaris2.7’, and d388 2 a389 2
- If the target system is the same that you are building on, check operating system specific directories (e.g. /usr/ccs/bin on d392 1 a392 1
- Check in the
PATHfor a tool whose name is prefixed by the d395 1 a395 1- Check in the
PATHfor a tool whose name is not prefixed by the d398 2 a399 2 the target as well).You may want to use --with-as if no assembler d405 2 a406 4
--with-gnu-ldSame as --with-gnu-as d408 2 a409 4
--with-ld=pathnameSame as --with-as d411 2 a412 4
--with-stabsSpecify that stabs debugging d415 2 a416 2
On MIPS based systems and on Alphas, you must specify whether you want d421 6 a426 6
Normally, GCC uses the ECOFF debugging format by default; if you prefer BSD stabs, specify --with-stabs when you configure GCC.
No matter which default you choose when you configure GCC, the user can use the -gcoff and -gstabs+ options to specify explicitly d428 3 a430 3
--with-stabs is meaningful on the ISC system on the 386, also, if --with-gas is used. It selects use of stabs debugging d433 2 a434 2
--with-stabs is also meaningful on 386 systems running SVR4. It d440 2 a441 4
--with-tls=dialectSpecify the default TLS dialect, for systems were there is a choice. d445 2 a446 4
--enable-multiarchSpecify whether to enable or disable multiarch support. The default is d449 2 a450 2 and for cross builds configured with --with-sysroot, and without --with-native-system-header-dir. d452 4 a455 6 http://wiki.debian.org/Multiarch.
--enable-sjlj-exceptionsForce use of the
setjmp/longjmp-based scheme for exceptions. ‘configure’ ordinarily picks the correct value based on the platform. d457 2 a458 4--enable-vtable-verifySpecify whether to enable or disable the vtable verification feature. d463 1 a463 1 the verifier will call stub functions (in libstdc++ itself) and do nothing. d466 4 a469 6 still be built (see --disable-libvtv to turn off building libvtv). --disable-vtable-verify is the default.
--disable-multilibSpecify that multiple target d473 11 a483 18
Some targets provide finer-grained control over which multilibs are built (e.g., --disable-softfloat):
d486 16 a501 9
arm-*-*fpu, 26bit, underscore, interwork, biendian, nofmult.
m68*-*-*softfloat, m68881, m68000, m68020.
mips*-*-*single-float, biendian, softfloat.
powerpc*-*-*, rs6000*-*-*aix64, pthread, softfloat, powercpu, powerpccpu, powerpcos, biendian, a484 3
--with-multilib-list=list--without-multilib-listSpecify what multilibs to build. Currently only implemented for sh*-*-* and x86-64-*-linux*.
sh*-*-*list is a comma separated list of CPU names. These must be of the d504 3 a506 3 these are handled by --with-endian.
If list is empty, then there will be no multilibs for extra d508 4 a511 4
As a special case, if an entry in the list starts with a
!(exclamation point), then it is added to the list of excluded multilibs. Entries of this sort should be compatible with ‘MULTILIB_EXCLUDES’ d513 3 a515 3If --with-multilib-list is not given, then a default set of multilibs is selected based on the value of --target. This is d518 2 a519 2
Example 1: to configure a compiler for SH4A only, but supporting both d521 3 a523 5
--with-cpu=sh4a --with-endian=little,big --with-multilib-list=Example 2: to configure a compiler for both SH4A and SH4AL-DSP, but with d525 4 a528 8
--with-cpu=sh4a --with-endian=little,big \ --with-multilib-list=sh4al,!mb/m4alx86-64-*-linux*- d537 1 a537 3
list is a comma separated list of
m32,m64and d532 3 a534 4If --with-multilib-list is not given, then only 32-bit and 64-bit run-time libraries will be enabled.
--with-endian=endiansSpecify what endians to use. d539 7 a545 15
endians may be one of the following:
bigUse big endian exclusively.
littleUse little endian exclusively.
big,littleUse big endian by default. Provide a multilib for little endian.
little,big- d548 1 a548 3
Use little endian by default. Provide a multilib for big endian.
--enable-threadsSpecify that the target d550 1 a550 1 library, and exception handling for other languages like C++ and Java. d552 2 a553 2
In general, the best (and, in many cases, the only known) threading d556 7 a562 11 available for the system. In this case, --enable-threads is an alias for --enable-threads=single.
--disable-threadsSpecify that threading support should be disabled for the system. This is an alias for --enable-threads=single.
--enable-threads=libSpecify that d566 13 a578 35
aixAIX thread support.
dceDCE thread support.
lynxLynxOS thread support.
mipssdeMIPS SDE thread support.
noThis is an alias for ‘single’.
posixGeneric POSIX/Unix98 thread support.
rtemsRTEMS thread support.
singleDisable thread support, should work for all platforms.
tpfTPF thread support.
vxworksVxWorks thread support.
win32- d581 1 a581 3
Microsoft Win32 API thread support.
--enable-tlsSpecify that the target supports TLS (Thread Local Storage). Usually d584 1 a584 1 --enable-tls or --disable-tls. This can happen if d587 6 a592 12
--disable-tlsSpecify that the target does not support TLS. This is an alias for --enable-tls=no.
--with-cpu=cpu--with-cpu-32=cpu--with-cpu-64=cpuSpecify which cpu variant the compiler should generate code for by default. cpu will be used as the default value of the -mcpu= switch. d594 2 a595 2 PowerPC, and SPARC. It is mandatory for ARC. The --with-cpu-32 and --with-cpu-64 options specify separate default CPUs for d597 6 a602 17 x86-64 and PowerPC.
--with-schedule=cpu--with-arch=cpu--with-arch-32=cpu--with-arch-64=cpu--with-tune=cpu--with-tune-32=cpu--with-tune-64=cpu--with-abi=abi--with-fpu=type--with-float=typeThese configure options provide default values for the -mschedule=, -march=, -mtune=, -mabi=, and -mfpu= options and for -mhard-float or -msoft-float. As with --with-cpu, which switches will be accepted and acceptable values d604 2 a605 4
--with-mode=modeSpecify if the compiler should default to -marm or -mthumb. d607 2 a608 4
--with-stack-offset=numThis option sets the default for the -mstack-offset=num option, d611 4 a614 6
--with-fpmath=isaThis options sets -mfpmath=sse by default and specifies the default ISA for floating-point arithmetics. You can select either ‘sse’ which enables -msse2 or ‘avx’ which enables -mavx by default. d616 2 a617 4
--with-fp-32=modeOn MIPS targets, set the default value for the -mfp option when using d619 7 a625 13
32Use the o32 FP32 ABI extension, as with the -mfp32 command-line option.
xxUse the o32 FPXX ABI extension, as with the -mfpxx command-line option.
64- d627 1 a627 1
Use the o32 FP64 ABI extension, as with the -mfp64 command-line option.
In the absence of this configuration option the default is to use the o32 d629 2 a630 4
--with-odd-spreg-32On MIPS targets, set the -modd-spreg option by default when using d632 2 a633 4
--without-odd-spreg-32On MIPS targets, set the -mno-odd-spreg option by default when using d635 3 a637 5 --with-fp-32=64 in order to target the o32 FP64A ABI extension.
--with-nan=encodingOn MIPS targets, set the default encoding convention to use for the d640 5 a644 9
legacyUse the legacy encoding, as with the -mnan=legacy command-line option.
2008- d646 2 a647 2
Use the 754-2008 encoding, as with the -mnan=2008 command-line option.
To use this configuration option you must have an assembler version installed that supports the -mnan= command-line option too. d649 5 a653 7 the legacy encoding, as when neither of the -mnan=2008 and -mnan=legacy command-line options has been used.
--with-divide=typeSpecify how the compiler should generate code for checking for division by zero. This option is only supported on the MIPS target. d655 4 a658 8
trapsDivision by zero checks use conditional traps (this is the default on systems that support conditional traps).
breaks- d661 4 a664 5
Division by zero checks use the break instruction.
--with-llscOn MIPS targets, make -mllsc the default when no -mno-llsc option is passed. This is the default for d667 11 a677 19
--without-llscOn MIPS targets, make -mno-llsc the default when no -mllsc option is passed.
--with-synciOn MIPS targets, make -msynci the default when no -mno-synci option is passed.
--without-synciOn MIPS targets, make -mno-synci the default when no -msynci option is passed. This is the default.
--with-mips-pltOn MIPS targets, make use of copy relocations and PLTs. d681 3 a683 5
--enable-__cxa_atexitDefine if you want to use __cxa_atexit, rather than atexit, to register C++ destructors for local statics and global objects. d687 3 a689 5 -fuse-cxa-atexit to be passed by default.
--enable-gnu-indirect-functionDefine if you want to enable the
ifuncattribute. This option is d691 3 a693 5--enable-target-optspaceSpecify that target libraries should be optimized for code space instead of code speed. d695 5 a699 9
--with-cpp-install-dir=dirnameSpecify that the user visible
cppprogram should be installed in prefix/dirname/cpp, in addition to bindir.--enable-comdatEnable COMDAT group support. This is primarily used to override the d701 2 a702 4
--enable-initfini-arrayForce the use of sections
.init_arrayand.fini_arrayd704 1 a704 1 destructors. Option --disable-initfini-array has the d708 2 a709 4--enable-link-mutexWhen building GCC, use a mutex to avoid linking the compilers for d712 3 a714 5
--enable-maintainer-modeThe build rules that regenerate the Autoconf and Automake output files as well as the GCC master message catalog gcc.pot are normally d717 1 a717 1 catalog, configuring with --enable-maintainer-mode will enable d720 3 a722 5
--disable-bootstrapFor a native build, the default configuration is to perform a 3-stage bootstrap of the compiler when ‘make’ is invoked, d724 4 a727 6 this process, you can configure with --disable-bootstrap.
--enable-bootstrapIn special cases, you may want to perform a 3-stage build even if the target and host triplets are different. d729 1 a729 1 the target (e.g. host is i686-linux, target is i486-linux). d731 3 a733 5 with --enable-bootstrap.
--enable-generated-files-in-srcdirNeither the .c and .h files that are generated from Bison and flex nor the d739 2 a740 2
If you configure with --enable-generated-files-in-srcdir then those d745 2 a746 4
--enable-version-specific-runtime-libsSpecify d748 2 a749 2 subdirectory (libdir/gcc) rather than the usual places. In addition, ‘libstdc++’’s include files will be installed into d751 1 a751 1 --with-gxx-include-dir=dirname. Using this option is d753 4 a756 6 parallel. This is currently supported by ‘libgfortran’, ‘libjava’, ‘libstdc++’, and ‘libobjc’.
--with-aix-soname=‘aix’, ‘svr4’ or ‘both’Traditional AIX shared library versioning (versioned
Shared Objectd758 1 a758 1 ‘lib.a’) causes numerous headaches for package managers. However, d761 1 a761 1 where this is called the "SONAME". But as they prevent static linking, d763 20 a782 23 linker does search for ‘libNAME.so’ before ‘libNAME.a’ library filenames with the ‘-lNAME’ linker flag.For detailed information please refer to the AIX ld Command reference.
As long as shared library creation is enabled, upon:
--with-aix-soname=aix--with-aix-soname=bothA (traditional AIX)
Shared Archive Libraryfile is created:
- using the ‘libNAME.a’ filename scheme
- with the
Shared Objectfile as archive member named ‘libNAME.so.V’ (except for ‘libgcc_s’, where theShared Objectfile is named ‘shr.o’ for backwards compatibility), which
- - is used for runtime loading from inside the ‘