# HG changeset patch
# User Jeroen Demeyer <jdemeyer@cage.ugent.be>
# Date 1363270089 -3600
# Node ID 1c581db7befb005970be1c6d42976a30aecbf615
# Parent e2efcb17e216a2051633da1de0bb9545471af719
#14268: ulong.patch: replace the #define ulong by a typedef
Undo the fixes from flint-1.5.0.p6 which are now no longer needed.
Remove -funroll-loops work-around for old gcc versions.
Remove unused FLINT_QD_LIB_DIR and FLINT_QD_INCLUDE_DIR
Use bash "export VAR=VALUE" syntax in spkg-install.
diff --git a/SPKG.txt b/SPKG.txt
a
|
b
|
|
37 | 37 | |
38 | 38 | == Changelog == |
39 | 39 | |
| 40 | === flint-1.5.2.p4 (Jeroen Demeyer, 14 March 2013) === |
| 41 | * #14268: ulong.patch: replace the #define ulong by a typedef which |
| 42 | is compatible with glibc's <sys/types.h> in -std=gnu99 mode. |
| 43 | * Undo the fixes from flint-1.5.0.p6 which are now no longer needed. |
| 44 | * Remove -funroll-loops work-around for old gcc versions. |
| 45 | * Remove unused FLINT_QD_LIB_DIR and FLINT_QD_INCLUDE_DIR |
| 46 | * Use bash "export VAR=VALUE" syntax in spkg-install. |
| 47 | |
40 | 48 | === flint-1.5.2.p3 (Timo Kluck, 7 March 2013) === |
41 | 49 | * #14241: Fix double // path separators in longlong.patch |
42 | 50 | |
diff --git a/patches/ZmodF_mul.c.patch b/patches/ZmodF_mul.c.patch
deleted file mode 100644
+
|
-
|
|
1 | | --- src/ZmodF_mul.c 2009-09-23 18:03:27.000000000 +0800 |
2 | | +++ patches/ZmodF_mul.c 2011-04-25 22:32:40.000000000 +0800 |
3 | | @@ -30,7 +30,6 @@ |
4 | | ******************************************************************************/ |
5 | | |
6 | | #include <math.h> |
7 | | -#include "ZmodF.h" |
8 | | #include "ZmodF_poly.h" |
9 | | #include "ZmodF_mul.h" |
10 | | #include "mpn_extras.h" |
diff --git a/patches/ZmodF_poly.c.patch b/patches/ZmodF_poly.c.patch
deleted file mode 100644
+
|
-
|
|
1 | | --- src/ZmodF_poly.c 2009-09-23 18:03:27.000000000 +0800 |
2 | | +++ patches/ZmodF_poly.c 2011-04-25 22:37:17.000000000 +0800 |
3 | | @@ -29,8 +29,6 @@ |
4 | | |
5 | | *****************************************************************************/ |
6 | | |
7 | | -#include "flint.h" |
8 | | -#include "memory-manager.h" |
9 | | #include "ZmodF_poly.h" |
10 | | #include "ZmodF_mul.h" |
11 | | #include "fmpz_poly.h" |
diff --git a/patches/mpn_extras.h.patch b/patches/mpn_extras.h.patch
deleted file mode 100644
+
|
-
|
|
1 | | --- src/mpn_extras.h 2009-09-23 03:03:27.000000000 -0700 |
2 | | +++ patches/mpn_extras.h 2011-12-20 15:47:18.495311148 -0800 |
3 | | @@ -22,7 +22,6 @@ |
4 | | #ifndef MPN_EXTRAS_H |
5 | | #define MPN_EXTRAS_H |
6 | | |
7 | | -#include "flint.h" |
8 | | #include "ZmodF_poly.h" |
9 | | |
10 | | #include "longlong_wrapper.h" |
diff --git a/patches/ulong.patch b/patches/ulong.patch
new file mode 100644
-
|
+
|
|
| 1 | diff -ru src/flint.h b/flint.h |
| 2 | --- src/flint.h 2012-08-03 11:42:57.000000000 +0200 |
| 3 | +++ b/flint.h 2013-03-14 14:55:02.997513830 +0100 |
| 4 | @@ -134,7 +134,7 @@ |
| 5 | |
| 6 | #define FLINT_POL_DIV_1_LENGTH 10 |
| 7 | |
| 8 | -#define ulong unsigned long |
| 9 | +typedef unsigned long ulong; |
| 10 | |
| 11 | #if FLINT_BITS == 32 |
| 12 | #define half_ulong uint16_t |
diff --git a/spkg-install b/spkg-install
a
|
b
|
|
12 | 12 | mv $SAGE_LOCAL/lib/libntl.a $SAGE_LOCAL/lib/xxx_libntl.a |
13 | 13 | fi |
14 | 14 | |
15 | | if [ "`uname`" = "Linux" -a "`uname -m`" = "x86_64" ]; then |
16 | | # This line causes *MAJOR* Illegal Instruction problems on |
17 | | # 64-bit Pentium 4's. Do *not* do that!! Only enable the |
18 | | # opteron stuff with a surefire way of detecting that a |
19 | | # machine is really an opteron. |
20 | | #FLINT_TUNE="-mtune=opteron -march=opteron -fPIC -funroll-loops " |
21 | | |
22 | | FLINT_TUNE="-fPIC -funroll-loops " |
23 | | elif [ "`uname`" = "Darwin" -a "`uname -m`" = "Power Macintosh" ]; then |
24 | | FLINT_TUNE=" -fPIC -funroll-loops " |
25 | | elif [ "`uname -m`" = "ia64" ]; then |
26 | | # -funroll-loops crashes the build on itanium under GCC-4.2.1, as reported by |
27 | | # Kate Minola. |
28 | | echo "Turning off loop unrolling on Linux/Itanium" |
29 | | FLINT_TUNE=" -fPIC " |
30 | | elif [ "`uname`" = "SunOS" -a "`uname -p`" = "sparc" ]; then |
31 | | # -funroll-loops crashes the build on an US IIIi under GCC-4.3.2, as reported by |
32 | | # Michael Abshoff |
33 | | echo "Turning off loop unrolling on Solaris/Sparc" |
34 | | FLINT_TUNE=" -fPIC " |
35 | | else |
36 | | FLINT_TUNE=" -fPIC -funroll-loops " |
37 | | fi |
| 15 | FLINT_TUNE=" -fPIC -funroll-loops " |
38 | 16 | |
39 | 17 | if [ -z "$CFLAG64" ] ; then |
40 | 18 | CFLAG64=-m64 |
… |
… |
|
52 | 30 | |
53 | 31 | export FLINT_TUNE |
54 | 32 | |
55 | | FLINT_GMP_INCLUDE_DIR="$SAGE_LOCAL"/include/ |
56 | | FLINT_GMP_LIB_DIR="$SAGE_LOCAL"/lib/ |
| 33 | export FLINT_GMP_INCLUDE_DIR="$SAGE_LOCAL"/include/ |
| 34 | export FLINT_GMP_LIB_DIR="$SAGE_LOCAL"/lib/ |
| 35 | export FLINT_NTL_INCLUDE_DIR="$SAGE_LOCAL"/include |
| 36 | export FLINT_NTL_LIB_DIR="$SAGE_LOCAL"/lib/ |
57 | 37 | |
58 | | FLINT_NTL_INCLUDE_DIR="$SAGE_LOCAL"/include |
59 | | FLINT_NTL_LIB_DIR="$SAGE_LOCAL"/lib/ |
| 38 | export FLINT_LINK_OPTIONS="" |
60 | 39 | |
61 | | # What is QD?? possibly quad double? |
62 | | FLINT_QD_LIB_DIR="$SAGE_LOCAL"/include |
63 | | FLINT_QD_INCLUDE_DIR="$SAGE_LOCAL"/include |
64 | | |
65 | | export FLINT_GMP_INCLUDE_DIR |
66 | | export FLINT_GMP_LIB_DIR |
67 | | export FLINT_QD_INCLUDE_DIR |
68 | | export FLINT_QD_LIB_DIR |
69 | | export FLINT_NTL_INCLUDE_DIR |
70 | | export FLINT_NTL_LIB_DIR |
71 | | |
72 | | ### |
73 | | FLINT_LINK_OPTIONS="" |
74 | | export FLINT_LINK_OPTIONS |
75 | 40 | |
76 | 41 | # Apply all patches |
77 | 42 | if [ $UNAME = "CYGWIN" ]; then |