kumquat-buildroot/package/gcc
Thomas Petazzoni d797ecc6f0 package/gcc/gcc-final: only install libgcc_s for shared library builds
In commit
55e83008fc ("package/gcc/gcc-final:
rework installation of libgcc_s/libatomic"), we reworked the libgcc_s
installation. In the previous code, libgcc_s was installed to
STAGING_DIR/TARGET_DIR unconditionally, but a "-cp" command was used,
which means that any failure was ignored. As we are now more picky, it
has become clear that this in fact wasn't entirely correct: libgcc_s
only exists for shared builds. For static builds, only libgcc.a is
available, but it doesn't need to be installed to STAGING_DIR (for
some reason, and as it was never installed by Buildroot, it has always
worked without libgcc.a in STAGING_DIR).

So long story short: we change the code to only install libgcc_s when
BR2_STATIC_LIBS is disabled. This fixes the following build failure on
BR2_STATIC_LIBS=y builds:

cp -dpf /home/thomas/buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/lib*/libgcc_s* /home/thomas/buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/sysroot/lib/
cp: cannot stat '/home/thomas/buildroot/buildroot/output/host/arm-buildroot-linux-uclibcgnueabi/lib*/libgcc_s*': No such file or directory

Reported-by: Peter Korsgaard <peter@korsgaard.com>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
Signed-off-by: Peter Korsgaard <peter@korsgaard.com>
2023-09-30 17:37:00 +02:00
..
8.4.0
10.4.0
11.4.0
12.3.0
13.2.0
arc-2020.09-release
gcc-final package/gcc/gcc-final: only install libgcc_s for shared library builds 2023-09-30 17:37:00 +02:00
gcc-initial package/gcc: add license information 2023-09-30 14:49:55 +02:00
Config.in package/gcc/gcc-final: add a target variant in charge of target installation 2023-09-30 14:49:51 +02:00
Config.in.host
gcc.hash package/gcc: add license information 2023-09-30 14:49:55 +02:00
gcc.mk package/gcc: add license information 2023-09-30 14:49:55 +02:00