]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
sd-boot: Let compiler figure out libgcc location
authorJan Janssen <medhefgo@web.de>
Mon, 29 Nov 2021 13:27:48 +0000 (14:27 +0100)
committerJan Janssen <medhefgo@web.de>
Mon, 29 Nov 2021 13:33:26 +0000 (14:33 +0100)
Since we now let the compiler call the linker for us, we can just
rely on it to find the right (static) libgcc to use.

src/boot/efi/meson.build

index b8001d1c65f6a38be3bcd06bca18e515f59decae..4460af61f8edb48bd68dcb8e826970228f3e15b9 100644 (file)
@@ -314,7 +314,6 @@ foreach file : fundamental_source_paths + common_sources + systemd_boot_sources
         endif
 endforeach
 
-libgcc_file_name = run_command(efi_cc + ['-print-libgcc-file-name']).stdout().strip()
 systemd_boot_efi_name = 'systemd-boot@0@.efi'.format(efi_arch[0])
 stub_elf_name = 'linux@0@.elf.stub'.format(efi_arch[0])
 stub_efi_name = 'linux@0@.efi.stub'.format(efi_arch[0])
@@ -326,7 +325,7 @@ foreach tuple : [['systemd_boot.so', systemd_boot_efi_name, systemd_boot_objects
                 tuple[0],
                 input : tuple[2],
                 output : tuple[0],
-                command : [efi_cc, '-o', '@OUTPUT@', efi_ldflags, tuple[2], '-lefi', '-lgnuefi', libgcc_file_name],
+                command : [efi_cc, '-o', '@OUTPUT@', efi_ldflags, tuple[2], '-lefi', '-lgnuefi', '-lgcc'],
                 install : tuple[3],
                 install_dir : bootlibdir)