1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
|
https://gmplib.org/list-archives/gmp-bugs/2016-November/004031.html
From dadb1954c8305ea7c7d61d30f7c6338024702280 Mon Sep 17 00:00:00 2001
From: Torbjorn Granlund <tg@gmplib.org>
Date: Sat, 26 Nov 2016 02:58:34 +0100
Subject: [PATCH] Conditionalise udiv_w_sdiv inclusion on --enable-assembly.
---
configure.ac | 16 ++++++++++++----
1 file changed, 12 insertions(+), 4 deletions(-)
diff --git a/configure.ac b/configure.ac
index 689e137f24c2..66c8b057574f 100644
--- a/configure
+++ b/configure
@@ -1269,7 +1269,9 @@ case $host in
AC_DEFINE(HAVE_HOST_CPU_FAMILY_power)
HAVE_HOST_CPU_FAMILY_power=1
cclist="gcc"
- extra_functions="udiv_w_sdiv"
+ if test "$enable_assembly" = "yes" ; then
+ extra_functions="udiv_w_sdiv"
+ fi
path="power"
# gcc 2.7.2 knows rios1, rios2, rsc
@@ -1306,7 +1308,9 @@ case $host in
gcc_cflags="$gcc_cflags $fomit_frame_pointer"
gcc_cflags_optlist="arch"
path="s390_32"
- extra_functions="udiv_w_sdiv"
+ if test "$enable_assembly" = "yes" ; then
+ extra_functions="udiv_w_sdiv"
+ fi
gcc_32_cflags_maybe="-m31"
case $host_cpu in
@@ -1603,14 +1607,18 @@ case $host in
GMP_INCLUDE_MPN(vax/elf.m4)
gcc_cflags="$gcc_cflags $fomit_frame_pointer"
path="vax"
- extra_functions="udiv_w_sdiv"
+ if test "$enable_assembly" = "yes" ; then
+ extra_functions="udiv_w_sdiv"
+ fi
;;
vax*-*-*)
# Default to aout conventions (i.e., no register prefix, '_' global prefix)
#
gcc_cflags="$gcc_cflags $fomit_frame_pointer"
path="vax"
- extra_functions="udiv_w_sdiv"
+ if test "$enable_assembly" = "yes" ; then
+ extra_functions="udiv_w_sdiv"
+ fi
;;
--
2.11.0.rc2
|