nixpkgs/pkgs/development/compilers/gcc
Adam Joseph 24b07fc9e5 gcc/common: add disableGdbPlugin option
This commit adds an option `disableGdbPlugin` which controls whether
or not the plugin *for* GDB will be built.  This plugin contains a
copy of `gcc`.

The configure flag that this option controls is called
`--disable-libcc1`.  This flag name is slightly confusing: it is
used only by GDB (and apparently unmaintained), yet the flag name
does not mention GDB.  This is why the option name is different from
the configure flag name.

The primary motivation for this commit is to allow the following PR
(which is not yet merged) to pass `--disable-libcc1` when building
the final native (build=host=target) compiler as part of the stdenv
bootstrap:

  https://github.com/NixOS/nixpkgs/pull/209870

We need to `--disable-libcc1` in this scenario because gcc's build
machinery links `libcc1` against the `libstdc++` that is part of the
*compiler used to compile gcc*, rather than against the `libstdc++`
that is built *by* gcc.  In an FHS distribution this distinction is
not terribly important because dynamically linked libraries are
late-bound (ld.so resolution).  However in nixpkgs this causes a
reference back to the bootstrapFiles to leak all the way through to
the final stdenv.

More details can be found in the comment in
`pkgs/stdenv/linux/default.nix` of the PR linked above.

Co-authored-by: Sandro <sandro.jaeckel@gmail.com>
2023-02-22 19:30:34 -08:00
..
4.8 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
4.9 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
6 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
7 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
8 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
9 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
10 Merge pull request #212498 from risicle/ris-fortify3 2023-02-16 21:19:30 +00:00
11 gcc/common: add disableGdbPlugin option 2023-02-22 19:30:34 -08:00
12 gcc/common: add disableGdbPlugin option 2023-02-22 19:30:34 -08:00
common gcc/common: add disableGdbPlugin option 2023-02-22 19:30:34 -08:00
ada-cctools-as-detection-configure.patch gnat12: Add support for x86_64-darwin 2023-01-07 18:32:12 +11:00
builder.sh gcc: revert "provide both native and cross forms of gcc.libs libraries" 2023-02-01 07:42:11 +00:00
gcc-12-gfortran-driving.patch gcc12, gfortran12, gnat12: init at 12.1.0 2022-05-07 13:50:47 +01:00
gcc-12-no-sys-dirs.patch gcc12, gfortran12, gnat12: init at 12.1.0 2022-05-07 13:50:47 +01:00
gfortran-darwin-NXConstStr.patch
gfortran-driving.patch
gnat-cflags-11.patch
gnat-cflags.patch
gnat-darwin-dylib-install-name.patch gnat12: Fix GNAT Darwin dylib install names 2023-01-11 09:03:43 +11:00
libgomp-dont-force-initial-exec.patch
libphobos.patch
libsanitizer-no-cyclades-9.patch
libsanitizer-no-cyclades.patch
libstdc++-netbsd-ctypes.patch
libstdc++-target.patch
no-sys-dirs-riscv-gcc9.patch gcc9: Add no-sys-dir patch for RISC-V (#154230) 2022-01-12 06:27:48 -05:00
no-sys-dirs-riscv.patch
no-sys-dirs.patch
parallel-bconfig.patch
ppc-musl.patch
res_state-not-declared.patch
sigsegv-not-declared.patch
struct-sigaltstack-4.9.patch
struct-sigaltstack.patch
struct-ucontext-4.5.patch
struct-ucontext-4.8.patch
struct-ucontext-libjava.patch
struct-ucontext.patch
update-mcfgthread-patches.sh
use-source-date-epoch.patch