export LDFLAGS="-Wl,-rpath,/cross-tools/lib"
# Common options for passes 1 & 2
- CONFIGURE_OPTS="\
- ${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--build=${CLFS_HOST} \
--host=${CLFS_HOST} \
--target=${CLFS_TARGET} \
--disable-multilib"
if [ "x${HVLABEL}" = "x${GCC}-pass1" ]; then
- CONFIGURE_OPTS="${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--disable-shared \
--without-headers \
--with-newlib \
--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="${CONFIGURE_OPTS} \
+ CONFIGURE_OPTS+=" \
--enable-shared \
--enable-languages=c,c++ \
--enable-__cxa_atexit \
# 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()