ref: 536cef2b2ad9ba00df99f38b8eee764297562799
dir: /host-recipes/gcc/
name=gcc from_source=gcc-host revision=1 imagedeps="gcc" hostdeps="autoconf-2.69 automake-1.15.1" hostrundeps="binutils" deps="newlib" build() { cp -rp "${source_dir}"/. ./ mkdir build && cd build CXXFLAGS_FOR_TARGET="$CXXFLAGS" \ CFLAGS_FOR_TARGET="$CFLAGS" \ ../configure \ --prefix="${prefix}" \ --target=${OS_TRIPLET} \ --with-sysroot="${sysroot_dir}" \ --disable-nls \ --disable-tls \ --enable-languages=c,c++ \ --with-newlib make -j${parallelism} } package() { cd build DESTDIR="${dest_dir}" make install ln -s ${OS_TRIPLET}-gcc "${dest_dir}${prefix}/bin/${OS_TRIPLET}-cc" strip_command=strip \ post_package_strip }