diff options
author | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:16:15 +0000 |
---|---|---|
committer | CoprDistGit <infra@openeuler.org> | 2024-08-05 02:16:15 +0000 |
commit | 64a1be29a5d22a92b1830144fedfdf8884a2b20d (patch) | |
tree | 27f8b13b5d4fb5359c31c7c1ff60a9563cd8361d /0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch | |
parent | 453c495bceb89952108be7452da3d072d3336eab (diff) |
automatic import of gnu-efiopeneuler24.03_LTS
Diffstat (limited to '0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch')
-rw-r--r-- | 0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch | 37 |
1 files changed, 37 insertions, 0 deletions
diff --git a/0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch b/0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch new file mode 100644 index 0000000..3935e2e --- /dev/null +++ b/0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch @@ -0,0 +1,37 @@ +From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001 +From: Peter Jones <pjones@redhat.com> +Date: Wed, 15 Jan 2020 13:10:11 -0500 +Subject: [PATCH] Use CFLAGS with "gcc -print-libgcc-file-name" to get the + right one. + +This makes us use CFLAGS when trying to find libgcc, so we don't get the +one with the wrong endian or float ABI. + +Signed-off-by: Peter Jones <pjones@redhat.com> +--- + Make.defaults | 8 ++++---- + 1 file changed, 4 insertions(+), 4 deletions(-) + +diff --git a/Make.defaults b/Make.defaults +index 15af35e6e26..de88bcd0231 100755 +--- a/Make.defaults ++++ b/Make.defaults +@@ -181,10 +181,6 @@ endif + endif + endif + +-ifneq ($(ARCH),arm) +-export LIBGCC=$(shell $(CC) $(ARCH3264) -print-libgcc-file-name) +-endif +- + ifeq ($(ARCH),arm) + CFLAGS += -marm + endif +@@ -223,3 +219,7 @@ endif + ASFLAGS += $(ARCH3264) + LDFLAGS += -nostdlib --warn-common --no-undefined --fatal-warnings \ + --build-id=sha1 ++ ++ifneq ($(ARCH),arm) ++export LIBGCC=$(shell $(CC) $(CFLAGS) $(ARCH3264) -print-libgcc-file-name) ++endif |