Mercurial > gub
changeset 6335:47a4aa517c7a
Use gcc-core install path variables
author | Masamichi Hosoda <trueroad@users.noreply.github.com> |
---|---|
date | Wed, 04 Feb 2015 00:02:00 +0900 |
parents | 5da6cdaf1e4f |
children | cdec5ee5e600 |
files | gub/specs/cross/gcc-core.py gub/specs/cross/gcc.py |
diffstat | 2 files changed, 8 insertions(+), 2 deletions(-) [+] |
line wrap: on
line diff
--- a/gub/specs/cross/gcc-core.py Tue Feb 03 01:02:43 2015 +0900 +++ b/gub/specs/cross/gcc-core.py Wed Feb 04 00:02:00 2015 +0900 @@ -35,8 +35,8 @@ def install (self): cross.AutoBuild.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 +mkdir -p %(install_prefix)s%(cross_dir)s/lib/gcc/%(target_architecture)s/%(full_version)s/include/ +ln -s ../include-fixed/limits.h %(install_prefix)s%(cross_dir)s/lib/gcc/%(target_architecture)s/%(full_version)s/include/limits.h ''') def languages (self): return ['c']
--- a/gub/specs/cross/gcc.py Tue Feb 03 01:02:43 2015 +0900 +++ b/gub/specs/cross/gcc.py Wed Feb 04 00:02:00 2015 +0900 @@ -88,6 +88,12 @@ ''')) def get_conflict_dict (self): return {'': ['cross/gcc-core'], 'doc': ['cross/gcc-core'], 'runtime': ['cross/gcc-core']} + def install (self): + Gcc.install (self) + self.system(''' +mkdir -p %(install_prefix)s%(cross_dir)s/lib/gcc/%(target_architecture)s/%(full_version)s/include/ +ln -s ../include-fixed/limits.h %(install_prefix)s%(cross_dir)s/lib/gcc/%(target_architecture)s/%(full_version)s/include/limits.h +''') Gcc__linux = Gcc__from__source