|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# . ./build.vars and set -o errexit -o noglob are assumed.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# Order: stage1, runtime, libstdcpp_v3, full, native
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# Order: stage1_x86_64_w64_mingw32, native_x86_64_w64_mingw32
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
#
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_stage1_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_STAGE1_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, stage1.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done fetch; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fetch_git cbb-gcc-${PKG_GCC_VERSION} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${GITROOT}/cbb/cbb-gcc-${PKG_GCC_VERSION};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done fetch -configure;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_sysroot_for_libgcc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_neutral_libiberty=no \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_xgcc_for_specs=${WORKDIR}/${PKG_BUILD_DIR}/gcc/xgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCFLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCTARGET_FLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${CFLAGS_FOR_BUILD}" ;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done configure; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_PREFIX}/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
[ \! -d ${PKG_PREFIX}/usr ] && \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- . ${PKG_PREFIX}/usr;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args=" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-sjlj-exceptions \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--prefix=${PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-sysroot=${PREFIX}/${PKG_TARGET}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
../cbb-gcc-${PKG_GCC_VERSION}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-bootstrap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-libmudflap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-multilib \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-nls \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-obsolete \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-symvers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-canonical-system-headers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-__cxa_atexit \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-indirect-function \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-unique-object \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-initfini-array \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-languages=c,c++,objc,lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-libstdcxx-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-multiarch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-secureplt \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-shared \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-threads=posix \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-fpmath=sse \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${_configure_args};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done configure clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done clean; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} install-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
__="$(uname -s)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ "${__#*CYGWIN*}" != "${__}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- ${PREFIX}/libexec/gcc/${PKG_TARGET}/${PKG_GCC_VERSION}/liblto_plugin.dll.a \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- ${PREFIX}/libexec/gcc/${PKG_TARGET}/${PKG_GCC_VERSION}/liblto_plugin.so;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_runtime_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_RUNTIME_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, compiler runtime.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} install-target-libgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_libstdcpp_v3_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_LIBSTDCPP_V3_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, libstdc++-v3.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libstdc++-v3;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} install-target-libstdc++-v3;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_full_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_FULL_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION} cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, everything else.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_native_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_NATIVE_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, native.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION} native;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_sysroot_for_libgcc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_xgcc_for_specs=${PKG_TARGET}-gcc \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
sysroot_headers_suffix=${PKG_PREFIX};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCFLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCTARGET_FLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${CFLAGS_FOR_BUILD}" ;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done configure; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_PREFIX}/${PKG_TARGET};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ \! -d ${PKG_PREFIX}/${PKG_TARGET}/usr ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- . ${PKG_PREFIX}/${PKG_TARGET}/usr;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ "${ARCH}" = nt32 ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args="--host=i686-nt32-midipix";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args="--host=x86_64-nt64-midipix";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args="${_configure_args} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-sjlj-exceptions \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--prefix=/ \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-elf=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-gmp=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-mpc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-mpfr=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-sysroot=";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
../cbb-gcc-${PKG_GCC_VERSION}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-bootstrap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-libmudflap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-multilib \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-nls \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-obsolete \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-symvers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-canonical-system-headers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-__cxa_atexit \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-indirect-function \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-unique-object \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-initfini-array \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-languages=c,c++,objc,lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-libstdcxx-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-multiarch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-secureplt \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-shared \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-threads=posix \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-fpmath=sse \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${_configure_args};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done configure clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done clean; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libstdc++-v3;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_stage1_x86_64_w64_mingw32_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ ! -L ${PREFIX}/${PKG_TARGET}/mingw ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PREFIX}/${PKG_TARGET}/mingw;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -sf . ${PREFIX}/${PKG_TARGET}/mingw;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ ! -d ${PREFIX}/${PKG_TARGET}/mingw/include ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PREFIX}/${PKG_TARGET}/mingw/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PREFIX}/${PKG_TARGET}/mingw/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_STAGE1_X86_64_W64_MINGW32_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, stage1.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done fetch; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fetch_git cbb-gcc-${PKG_GCC_VERSION} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${GITROOT}/cbb/cbb-gcc-${PKG_GCC_VERSION};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done fetch -configure;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION}_x86_64_w64_mingw32 cross;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_sysroot_for_libgcc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_neutral_libiberty=no \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_xgcc_for_specs=${WORKDIR}/${PKG_BUILD_DIR}/gcc/xgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCFLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCTARGET_FLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${CFLAGS_FOR_BUILD}" ;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done configure; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_PREFIX}/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
[ \! -d ${PKG_PREFIX}/usr ] && \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- . ${PKG_PREFIX}/usr;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args=" \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-sjlj-exceptions \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--prefix=${PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-sysroot=${PREFIX}/${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--without-headers";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
../cbb-gcc-${PKG_GCC_VERSION}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-bootstrap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-libmudflap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-multilib \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-nls \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-obsolete \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-symvers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-canonical-system-headers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-__cxa_atexit \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-indirect-function \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-unique-object \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-initfini-array \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-languages=c,c++,objc,lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-libstdcxx-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-multiarch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-secureplt \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-shared \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-threads=posix \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-fpmath=sse \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${_configure_args};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done configure clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done clean; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} install-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
__="$(uname -s)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ "${__#*CYGWIN*}" != "${__}" ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- ${PREFIX}/libexec/gcc/${PKG_TARGET}/${PKG_GCC_VERSION}/liblto_plugin.dll.a \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- ${PREFIX}/libexec/gcc/${PKG_TARGET}/${PKG_GCC_VERSION}/liblto_plugin.so;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
pkg_gcc_native_x86_64_w64_mingw32_all() {
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ ! -L ${PREFIX}/${PKG_TARGET}/mingw ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PREFIX}/${PKG_TARGET}/mingw;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -sf . ${PREFIX}/${PKG_TARGET}/mingw;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ ! -d ${PREFIX}/${PKG_TARGET}/mingw/include ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PREFIX}/${PKG_TARGET}/mingw/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PREFIX}/${PKG_TARGET}/mingw/include;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
PKG_GCC_VERSION="${PKG_GCC_NATIVE_X86_W64_MINGW32_VERSION}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export MAKE="make LIBTOOL=slibtool";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# GCC, native.
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_dir cbb-gcc-${PKG_GCC_VERSION}_x86_64_w64_mingw32 native;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export cbb_ldflags_for_target=--sysroot=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_sysroot_for_libgcc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cbb_xgcc_for_specs=${PKG_TARGET}-gcc \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
sysroot_headers_suffix=${PKG_PREFIX};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCTARGET_FLAGS="-DIN_TARGET_LIBRARY_BUILD --sysroot=${PKG_PREFIX}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
GCCFLAGS="${CFLAGS:+${CFLAGS} }--include $(readlink -f ${WORKDIR}/cbb-gcc-${PKG_GCC_VERSION}/libc/cbb-musl-pe.h)";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS CXXFLAGS_FOR_BUILD; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCFLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in CFLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${GCCTARGET_FLAGS}";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
for __ in cbb_cflags_for_stage1 cbb_cflags_for_stage2 cbb_cflags_for_stage3 cbb_cflags_for_stage4; do
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export "${__}=${CFLAGS_FOR_BUILD}" ;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
done;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
export CFLAGS CXXFLAGS CFLAGS_FOR_BUILD CPPFLAGS_FOR_BUILD CXXFLAGS_FOR_BUILD CFLAGS_FOR_TARGET XGCC_FLAGS_FOR_TARGET CPPFLAGS_FOR_TARGET CXXFLAGS_FOR_TARGET LIBCFLAGS_FOR_TARGET;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done configure; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_PREFIX}/${PKG_TARGET};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if [ \! -d ${PKG_PREFIX}/${PKG_TARGET}/usr ]; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
ln -s -- . ${PKG_PREFIX}/${PKG_TARGET}/usr;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
_configure_args="${_configure_args} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--build=x86_64-unknown-linux-gnu\
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--host=x86_64-nt64-midipix \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--without-headers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-sjlj-exceptions \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--prefix=/ \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-elf=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-gmp=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-mpc=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-mpfr=${PKG_PREFIX} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-sysroot=";
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
patch -b -d ${PKG_SUBDIR} -p1 < ${MIDIPIX_BUILD_PWD}/patches/${PKG_NAME}.local.patch;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_rm ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
insecure_mkdir ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
secure_cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
../cbb-gcc-${PKG_GCC_VERSION}/configure \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-bootstrap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-libmudflap \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-multilib \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-nls \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-obsolete \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--disable-symvers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-canonical-system-headers \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-__cxa_atexit \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-indirect-function \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-gnu-unique-object \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-initfini-array \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-languages=c,c++,objc,lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-libstdcxx-debug \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-lto \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-multiarch \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-secureplt \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-shared \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--enable-threads=posix \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--target=${PKG_TARGET} \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
--with-fpmath=sse \
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
${_configure_args};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done configure clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
else
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
cd ${PKG_BUILD_DIR};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done clean; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} clean;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done clean -build;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done build; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-gcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libgcc;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all-target-libstdc++-v3;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} all;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done build -install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
if ! is_build_script_done install; then
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
make ${MAKEFLAGS} DESTDIR=${PKG_PREFIX} install;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
set_build_script_done install finish;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
fi;
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
};
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
|
|
Lucio Andrés Illanes Albornoz (arab, vxp) |
570129 |
# vim:filetype=sh
|