Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #298 from v4hn/gcc-4.8
gcc 4.8 is out.
- Loading branch information
Showing
6 changed files
with
60 additions
and
123 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,51 +1,41 @@ | ||
( | ||
# move libstdc++.so.*-gdb.py to libexec dir | ||
patch_it $SOURCE2 1 && | ||
|
||
patch_it $SOURCE_CACHE/$SOURCE2 1 && | ||
# installwatch fails to track files installed using tar | ||
sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build && | ||
|
||
# This will fix an issue where installwatch fail to track installed headers | ||
sedit 's;^\(build_install_headers_dir=\).*;\1install-headers-cp;' gcc/config.build && | ||
# We use libiberty.a from binutils instead | ||
sedit 's/install_to_$(INSTALL_DEST) //' libiberty/Makefile.in && | ||
|
||
mkdir BUILD && | ||
cd BUILD && | ||
#sedit 's/trap 0/trap "" 0/' configure && | ||
|
||
#sedit 's/trap 0/trap "" 0/' ../configure && | ||
# We use libiberty.a from binutils instead | ||
sedit 's/install_to_$(INSTALL_DEST) //' ../libiberty/Makefile.in && | ||
mkdir BUILD && | ||
cd BUILD && | ||
|
||
LANGUAGES="${LANGUAGES:=c++}" && | ||
LANGUAGES="${LANGUAGES:=c++}" && | ||
|
||
../configure --build=$BUILD \ | ||
--host=$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 \ | ||
$OPTS && | ||
../configure --build=$BUILD \ | ||
--host=$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 \ | ||
$OPTS && | ||
|
||
make CFLAGS='-O' LIBCFLAGS='-g -O2' LIBCXXFLAGS='-g -O2 -fno-implicit-templates' bootstrap-lean && | ||
prepare_install && | ||
make install && | ||
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 && | ||
ln -sf /usr/bin/cpp /usr/lib/gcc/$BUILD/$VERSION/cpp && | ||
ln -sf /usr/bin/cpp /lib/cpp && | ||
ln -sf gcc /usr/bin/cc && | ||
|
||
# remove the offending broken freetype link | ||
rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype | ||
|
||
) > $C_FIFO 2>&1 | ||
rm -f $MODULE_PREFIX/lib/gcc/$BUILD/$VERSION/include-fixed/freetype |
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
|
||
# only lin -r gcc will trigger the language selector! | ||
if [ -n "$RECONFIGURE" ] ; then | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
OPTS+=" --disable-multilib" && | ||
default_pre_build |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters