changeset 6256:2cd0f17e0f06

Fix glibc-core build Fix the problem that limits.h is not found.
author Masamichi Hosoda <trueroad@users.noreply.github.com>
date Sat, 25 Oct 2014 20:10:29 +0900
parents 635c63e30843
children 394056adc980
files gub/specs/cross/gcc-core.py
diffstat 1 files changed, 6 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/gub/specs/cross/gcc-core.py	Thu Oct 23 21:24:21 2014 +0900
+++ b/gub/specs/cross/gcc-core.py	Sat Oct 25 20:10:29 2014 +0900
@@ -31,5 +31,11 @@
     # Gcc moves libs into system lib places, which will
     # make gcc-core conflict with gcc.
     install = cross.AutoBuild.install
+    def install (self):
+        gcc.Gcc__from__source.install (self)
+        self.system('''
+mkdir -p %(cross_prefix)s/lib/gcc/%(target_architecture)s/4.8.2/include/ || true
+ln -s ../include-fixed/limits.h %(cross_prefix)s/lib/gcc/%(target_architecture)s/4.8.2/include/limits.h || true
+''')
     def languages (self):
         return  ['c']