diff options
author | Andreas Enge <andreas@enge.fr> | 2015-07-10 15:11:24 +0200 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2015-07-13 14:53:38 -0400 |
commit | 8d662672fcc29d527e22120c820b447b29c210f3 (patch) | |
tree | c6cb3c7acd71c50b3574fc80af6ab9952503f161 /gnu | |
parent | 31e0ed9592a895d1c53294d22f8ca1ba85f33227 (diff) |
gnu: boost: Patch to avoid -m32 flag on mips.
* gnu/packages/patches/boost-mips-avoid-m32.patch: New file.
* gnu-system.am (dist_patch_DATA): Register patch.
* gnu/packages/boost.scm (boost): Use it.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/packages/boost.scm | 3 | ||||
-rw-r--r-- | gnu/packages/patches/boost-mips-avoid-m32.patch | 15 |
2 files changed, 17 insertions, 1 deletions
diff --git a/gnu/packages/boost.scm b/gnu/packages/boost.scm index 1d942603e5..d3b171245d 100644 --- a/gnu/packages/boost.scm +++ b/gnu/packages/boost.scm @@ -42,7 +42,8 @@ ".tar.bz2")) (sha256 (base32 - "1rfkqxns60171q62cppiyzj8pmsbwp1l8jd7p6crriryqd7j1z7x")))) + "1rfkqxns60171q62cppiyzj8pmsbwp1l8jd7p6crriryqd7j1z7x")) + (patches (list (search-patch "boost-mips-avoid-m32.patch"))))) (build-system gnu-build-system) (inputs `(("zlib" ,zlib))) (native-inputs diff --git a/gnu/packages/patches/boost-mips-avoid-m32.patch b/gnu/packages/patches/boost-mips-avoid-m32.patch new file mode 100644 index 0000000000..811c9fb3aa --- /dev/null +++ b/gnu/packages/patches/boost-mips-avoid-m32.patch @@ -0,0 +1,15 @@ +The following patch prevents the use of the -m32 flag on mips, where it +is not understood by gcc, as well as other non-x86 architectures. + +diff -u -r boost_1_58_0.orig/tools/build/src/tools/gcc.jam boost_1_58_0/tools/build/src/tools/gcc.jam +--- boost_1_58_0.orig/tools/build/src/tools/gcc.jam 2015-04-04 19:25:07.000000000 +0200 ++++ boost_1_58_0/tools/build/src/tools/gcc.jam 2015-07-10 01:08:19.822733823 +0200 +@@ -451,7 +451,7 @@ + else + { + local arch = [ feature.get-values architecture : $(properties) ] ; +- if $(arch) != arm ++ if $(arch) = x86 + { + if $(model) = 32 + { |