projects
/
hvlinux.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Refactor gcc limits.h file creation
[hvlinux.git]
/
stage0
/
pkg
/
gcc
diff --git
a/stage0/pkg/gcc
b/stage0/pkg/gcc
index
1877e7c
..
52bea6e
100644
(file)
--- a/
stage0/pkg/gcc
+++ b/
stage0/pkg/gcc
@@
-31,6
+31,11
@@
hvconfig_pre()
--disable-libssp \
--disable-threads \
--enable-languages=c"
--disable-libssp \
--disable-threads \
--enable-languages=c"
+
+ # We will create a dummy limits.h so the build will not use the one
+ # provided by the host distro:
+ mkdir -p /tools/include
+ touch /tools/include/limits.h
else
CONFIGURE_OPTS+=" \
--enable-shared \
else
CONFIGURE_OPTS+=" \
--enable-shared \
@@
-52,12
+57,6
@@
hvconfig_pre()
# only:
sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
-i gcc/Makefile.in
# only:
sed -e "s@\(^CROSS_SYSTEM_HEADER_DIR =\).*@\1 /tools/include@g" \
-i gcc/Makefile.in
-
- if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
- # We will create a dummy limits.h so the build will not use the one
- # provided by the host distro:
- touch /tools/include/limits.h
- fi
}
hvconfig_post()
}
hvconfig_post()