Blame SOURCES/0045-Use-CFLAGS-with-gcc-print-libgcc-file-name-to-get-th.patch
|
|
4c0d37 |
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
|
4c0d37 |
From: Peter Jones <pjones@redhat.com>
|
|
|
4c0d37 |
Date: Wed, 15 Jan 2020 13:10:11 -0500
|
|
|
4c0d37 |
Subject: [PATCH] Use CFLAGS with "gcc -print-libgcc-file-name" to get the
|
|
|
4c0d37 |
right one.
|
|
|
4c0d37 |
|
|
|
4c0d37 |
This makes us use CFLAGS when trying to find libgcc, so we don't get the
|
|
|
4c0d37 |
one with the wrong endian or float ABI.
|
|
|
4c0d37 |
|
|
|
4c0d37 |
Signed-off-by: Peter Jones <pjones@redhat.com>
|
|
|
4c0d37 |
---
|
|
|
4c0d37 |
Make.defaults | 8 ++++----
|
|
|
4c0d37 |
1 file changed, 4 insertions(+), 4 deletions(-)
|
|
|
4c0d37 |
|
|
|
4c0d37 |
diff --git a/Make.defaults b/Make.defaults
|
|
|
4c0d37 |
index 15af35e6e26..de88bcd0231 100755
|
|
|
4c0d37 |
--- a/Make.defaults
|
|
|
4c0d37 |
+++ b/Make.defaults
|
|
|
4c0d37 |
@@ -181,10 +181,6 @@ endif
|
|
|
4c0d37 |
endif
|
|
|
4c0d37 |
endif
|
|
|
4c0d37 |
|
|
|
4c0d37 |
-ifneq ($(ARCH),arm)
|
|
|
4c0d37 |
-export LIBGCC=$(shell $(CC) $(ARCH3264) -print-libgcc-file-name)
|
|
|
4c0d37 |
-endif
|
|
|
4c0d37 |
-
|
|
|
4c0d37 |
ifeq ($(ARCH),arm)
|
|
|
4c0d37 |
CFLAGS += -marm
|
|
|
4c0d37 |
endif
|
|
|
4c0d37 |
@@ -223,3 +219,7 @@ endif
|
|
|
4c0d37 |
ASFLAGS += $(ARCH3264)
|
|
|
4c0d37 |
LDFLAGS += -nostdlib --warn-common --no-undefined --fatal-warnings \
|
|
|
4c0d37 |
--build-id=sha1
|
|
|
4c0d37 |
+
|
|
|
4c0d37 |
+ifneq ($(ARCH),arm)
|
|
|
4c0d37 |
+export LIBGCC=$(shell $(CC) $(CFLAGS) $(ARCH3264) -print-libgcc-file-name)
|
|
|
4c0d37 |
+endif
|