Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Tree: 9374f59ae0
Fetching contributors…

Cannot retrieve contributors at this time

54 lines (40 sloc) 1.938 kB
(
patch_it $SOURCE_CACHE/$SOURCE2 1 &&
# This will fix an issue where installwatch fail to track installed headers
sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build &&
mkdir BUILD &&
cd BUILD &&
#sedit 's/trap 0/trap "" 0/' ../configure &&
# We use libiberty.a from binutils instead
sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in &&
LANGUAGES=${LANGUAGES:=c++} &&
../configure --host=$BUILD \
--build=$BUILD \
--enable-languages=$LANGUAGES \
--prefix=${MODULE_PREFIX} \
--infodir=${MODULE_PREFIX}/share/info \
--mandir=${MODULE_PREFIX}/share/man \
--enable-__cxa_atexit \
--enable-threads \
--disable-nls \
--enable-target-optspace \
--with-gnu-ld \
--with-system-zlib \
--enable-shared \
--disable-multilib \
$OPTS &&
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean &&
prepare_install &&
make install &&
# This used to be the POST_INSTALL and it really should not have. Doing this sort of thing means
# these files will not be tracked; that is a no-no-no.
cd /usr/lib/gcc/$BUILD/$VERSION &&
ln -sf /usr/bin/cpp cpp &&
cd /lib/ &&
ln -sf /usr/bin/cpp cpp &&
if [ ! -e /usr/bin/cc ] ; then
ln -s gcc /usr/bin/cc
fi &&
# remove the offending freetype broken link
rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype
) > $C_FIFO 2>&1
Jump to Line
Something went wrong with that request. Please try again.