blob: 1e47924ccc701d5c9024431091cd6f987dd255b2 [file] [log] [blame]
Patrick Williamsc0f7c042017-02-23 20:41:17 -06001From ae1a4c37417a3bbbf8ea1cab198982b0cad47e29 Mon Sep 17 00:00:00 2001
2From: Khem Raj <raj.khem@gmail.com>
3Date: Fri, 12 Aug 2016 17:08:13 +0000
4Subject: [PATCH] confiure.ac: Believe the cflags from environment
5
6In some toolchains e.g. OpenEmbedded -march options
7are passed on compiler cmdline, it does not use
8the expected target triplets to make these decision
9during configure.
10
11Secondly, dont set armv4 for march when no selection
12is made, since it is passed from cmdline
13
14Signed-off-by: Khem Raj <raj.khem@gmail.com>
15---
16Upstream-Status: Inappropriate[OE-Specific]
17
18 configure.ac | 11 -----------
19 1 file changed, 11 deletions(-)
20
Brad Bishop316dfdd2018-06-25 12:45:53 -040021Index: gmp-6.1.2/configure.ac
22===================================================================
23--- gmp-6.1.2.orig/configure.ac
24+++ gmp-6.1.2/configure.ac
25@@ -604,15 +604,6 @@ case $host in
26 any_32_testlist="sizeof-long-4"
27 any_64_testlist="sizeof-long-8"
Patrick Williamsc0f7c042017-02-23 20:41:17 -060028
29- # This is needed for clang, which is not content with flags like -mfpu=neon
30- # alone.
31- case $host in
32- *-*-*eabi)
33- gcc_cflags_fpmode="-mfloat-abi=softfp" ;;
34- *-*-*eabihf)
35- gcc_cflags_fpmode="-mfloat-abi=hard" ;;
36- esac
37-
38 # FIXME: We make mandatory compiler options optional here. We should
39 # either enforce them, or organise to strip paths as the corresponding
40 # options fail.
Brad Bishop316dfdd2018-06-25 12:45:53 -040041@@ -746,8 +737,6 @@ case $host in
Patrick Williamsc0f7c042017-02-23 20:41:17 -060042 ;;
43 *)
44 path="arm"
45- gcc_cflags_arch="-march=armv4"
46- GMP_DEFINE_RAW(["define(<NOTHUMB>,1)"])
47 ;;
48 esac
49 ;;