summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPeter Jones <pjones@redhat.com>2020-01-15 13:10:11 -0500
committerNigel Croxon <ncroxon@redhat.com>2023-04-04 09:28:42 -0400
commit98ef7f9f5fc3735f6c07310b4d519eb7afb49159 (patch)
tree9542f989d90ae022f6400fde4bf3d39f5a6ccc0c
parent4ee8cf5610bdf81cf88b078a7046832ea7371823 (diff)
downloadgnu-efi-98ef7f9f5fc3735f6c07310b4d519eb7afb49159.tar.gz
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>
-rwxr-xr-xMake.defaults8
1 files changed, 4 insertions, 4 deletions
diff --git a/Make.defaults b/Make.defaults
index 516caad..3c795d8 100755
--- a/Make.defaults
+++ b/Make.defaults
@@ -161,10 +161,6 @@ endif
endif
endif
-ifneq ($(ARCH),arm)
-export LIBGCC=$(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
-endif
-
ifeq ($(ARCH),arm)
CFLAGS += -marm
endif
@@ -200,3 +196,7 @@ ARFLAGS := rDv
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