Commit ab86b98a authored by Arnaud Fontaine's avatar Arnaud Fontaine

Add gcc patch for multiarch support.

On Debian-based distributions,  gcc FTBFS because of special  linker files and
architecture-dependent  headers being  available in  /usr/lib/<triplet> rather
than /usr/lib  and /usr/lib64. This avoids  settings respectively LIBRARY_PATH
and CPATH manually on such distributions.
parent fd87c01c
...@@ -66,6 +66,13 @@ ignore-existing = true ...@@ -66,6 +66,13 @@ ignore-existing = true
[gcc-java-source] [gcc-java-source]
location = ${buildout:parts-directory}/${:_buildout_section_name_} location = ${buildout:parts-directory}/${:_buildout_section_name_}
[gcc-multiarch.patch]
recipe = hexagonit.recipe.download
md5sum = 819e6735270c8a432b0512b49f40219f
url = ${:_profile_base_location_}/${:filename}
filename = ${:_buildout_section_name_}
download-only = true
[gcc-java] [gcc-java]
depends = depends =
${gcc-download:location} ${gcc-download:location}
...@@ -73,13 +80,15 @@ depends = ...@@ -73,13 +80,15 @@ depends =
recipe = hexagonit.recipe.cmmi recipe = hexagonit.recipe.cmmi
path = ${gcc-java-source:location} path = ${gcc-java-source:location}
md5sum = bb3265edf0fa7543e50cedb93e04e427 md5sum = bb3265edf0fa7543e50cedb93e04e427
patches =
${gcc-multiarch.patch:location}/${gcc-multiarch.patch:filename}
patch-options = -p2
configure-command = make clean \\; make distclean \\; ./configure configure-command = make clean \\; make distclean \\; ./configure
# GMP does not correctly detect achitecture so it have to be given # GMP does not correctly detect achitecture so it have to be given
# as hexagonit.recipe.cmmi is using shell expansion in subproceses # as hexagonit.recipe.cmmi is using shell expansion in subproceses
# backticks are working # backticks are working
configure-options = configure-options =
--disable-bootstrap --disable-bootstrap
--build=`uname -m`-linux
--enable-languages=java --enable-languages=java
--disable-multilib --disable-multilib
--with-gmp=${gmp:location} --with-gmp=${gmp:location}
......
This diff is collapsed.
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment