From 98ef7f9f5fc3735f6c07310b4d519eb7afb49159 Mon Sep 17 00:00:00 2001 From: Peter Jones Date: Wed, 15 Jan 2020 13:10:11 -0500 Subject: 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 --- Make.defaults | 8 ++++---- 1 file 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 -- cgit v1.2.1