Browse Source

Clifford Wolf:


			
			
				rocklinux
			
			
		
Clifford Wolf 20 years ago
parent
commit
ecc6901f9e
2 changed files with 6 additions and 8 deletions
  1. +5
    -7
      package/base/gcc/gcc.conf
  2. +1
    -1
      scripts/functions

+ 5
- 7
package/base/gcc/gcc.conf

@ -101,9 +101,7 @@ custmain() {
elif [ "$ROCKCFG_DEBUG" = 1 ] ; then
if [ -f libstdc++*/configure ] ; then
echo "Setting DEBUG_FLAGS='-s' in libstdc++ configure."
( cd libstdc++*
sed -i -e "s/DEBUG_FLAGS='-g'/DEBUG_FLAGS='-s'/g" \
configure )
sed -i -e "s/DEBUG_FLAGS='-g'/DEBUG_FLAGS='-s'/g" libstdc++*/configure
fi
MAKE="$MAKE LIBGCC2_DEBUG_CFLAGS=-s LDFLAGS=-Wl,-s JCFLAGS=-s"
fi
@ -149,13 +147,13 @@ custmain() {
if [ $stagelevel -le 1 ] ; then
create_config_cache > config.cache
eval $configprefix ../configure $confopt --enable-languages=c
eval $configprefix bash ../configure $confopt --enable-languages=c
# creating native libiberty for build system
# (needed to build helper apps like gengenrtl)
#
mkdir -p $arch_build ; cd $arch_build
CC=$BUILDCC ../../configure
CC=$BUILDCC bash ../../configure
make all-libiberty ; cd ..
MAKE="$MAKE LANGUAGES=c"
@ -230,7 +228,7 @@ custmain() {
# Configure, build and install as usual
#
eval $configprefix ../configure $confopt --with-gnu-as \
eval $configprefix bash ../configure $confopt --with-gnu-as \
--enable-version-specific-runtime-libs \
--with-gnu-ld --enable-threads=posix
@ -420,7 +418,7 @@ gcc_cross() {
fi
mkdir objdir ; cd objdir ; hook_eval preconf
eval ../configure --program-prefix=${pkg_gcc_target}- --disable-cpp \
eval bash ../configure --program-prefix=${pkg_gcc_target}- --disable-cpp \
--disable-shared --disable-multilib $confopt
if [ -d libiberty ]; then make -C libiberty; fi
if [ -d texinfo ]; then make -C texinfo; fi

+ 1
- 1
scripts/functions

@ -279,7 +279,7 @@ function eval_config_command() {
export cache_file=config.cache
fi
config_command="$configprefix $configscript"
config_command="$configprefix bash $configscript"
sub_scripts="$( find $( dirname $configscript ) -name configure )"
# remove unsupported config script options

Loading…
Cancel
Save