|
|
@ -204,7 +204,11 @@ custmain() { |
|
|
|
--with-gnu-ld --enable-threads=posix |
|
|
|
|
|
|
|
hook_eval premake |
|
|
|
eval "$MAKE GCJFLAGS=\"$CXXFLAGS\" all" |
|
|
|
if [ $xpkg = gcc34 -a "$ROCKCFG_PKG_GCC34_PROFILED" != 0 ]; then |
|
|
|
eval "$MAKE GCJFLAGS=\"$CXXFLAGS\" profiledbootstrap" |
|
|
|
else |
|
|
|
eval "$MAKE GCJFLAGS=\"$CXXFLAGS\" all" |
|
|
|
fi |
|
|
|
hook_eval inmake |
|
|
|
eval "$MAKE $makeinstopt install" |
|
|
|
|
|
|
@ -292,6 +296,25 @@ custmain() { |
|
|
|
fi |
|
|
|
fi |
|
|
|
|
|
|
|
# Inject our default optimisation options so when the user calls |
|
|
|
# gcc/g++ they match the ones used to precompile the headers ... |
|
|
|
# |
|
|
|
# Save the options affectioning optimization only - for injection into the specs |
|
|
|
# file. They should be the gcc default options since they match the ones used |
|
|
|
# to generate the PCHs. -ReneR |
|
|
|
# |
|
|
|
# Ideas for simplifications welcome ... |
|
|
|
# |
|
|
|
echo "Adapting gcc specs file..." |
|
|
|
cd $root/$prefix/lib/${gcc_lib_dir} |
|
|
|
mv specs specs.orig |
|
|
|
tr '\n' '@' < specs.orig | sed -e "s|@\\*cc1_options:@|@*cc1_options:@$( |
|
|
|
eval echo \$GCC_WRAPPER_INSERT \$GCC_WRAPPER_APPEND \ |
|
|
|
\$GCC${ver:0:1}_WRAPPER_INSERT \$GCC${ver:0:1}_WRAPPER_APPEND | \ |
|
|
|
tr ' ' '\n' | sed -e '/-O./ { p; d; }' -e '/-mcpu=.*/ { p; d; }' \ |
|
|
|
-e '/-march=.*/ { p; d; }' -e '/-mtune=.*/ { p; d; }' -e 'd' | tr '\n' ' ' |
|
|
|
) |" | tr '@' '\n' > specs |
|
|
|
|
|
|
|
# Create symlinks for runtime libraries so they can be found by |
|
|
|
# the dynamic loader and force rebuilding of the wrapper links |
|
|
|
# |
|
|
@ -395,4 +418,5 @@ else |
|
|
|
fi |
|
|
|
|
|
|
|
gcc_lib_dir="gcc-lib/${pkg_gcc_target}/${ver%%-*}" |
|
|
|
[ $pkg_gcc_version = 34 ] && gcc_lib_dir="gcc/${pkg_gcc_target}/${ver%%-*}" |
|
|
|
|