|
|
@ -83,7 +83,8 @@ if [ "$pkg_gcc_cross" ] ; then |
|
|
|
elif [ $stagelevel -eq 0 ] ; then |
|
|
|
configprefix="" |
|
|
|
confopt="--prefix=${CLFS}/$cross_tools \ |
|
|
|
--host=${CLFS_HOST} --target=${CLFS_TARGET} \ |
|
|
|
--host=${CLFS_HOST} --target=${CLFS_TARGET} \$extraconfopt" |
|
|
|
var_append extraconfopt " \ |
|
|
|
--with-sysroot=${CLFS} --disable-nls --disable-shared \ |
|
|
|
--enable-languages=c" |
|
|
|
makeopt="all-gcc" |
|
|
@ -91,7 +92,8 @@ elif [ $stagelevel -eq 0 ] ; then |
|
|
|
elif [ $stagelevel -eq 1 ] ; then |
|
|
|
configprefix="" |
|
|
|
confopt="--prefix=${CLFS}/$cross_tools \ |
|
|
|
--host=${CLFS_HOST} --target=${CLFS_TARGET} \ |
|
|
|
--host=${CLFS_HOST} --target=${CLFS_TARGET} \$extraconfopt" |
|
|
|
var_append extraconfopt " \ |
|
|
|
--with-sysroot=${CLFS} --disable-nls --enable-shared \ |
|
|
|
--enable-languages=c,c++ --enable-__cxa_atexit \ |
|
|
|
--enable-c99 --enable-long-long --enable-threads=posix" |
|
|
@ -119,7 +121,7 @@ elif [ $stagelevel -ge 2 ] ; then |
|
|
|
# directories so we can rename them (adding version suffix) before |
|
|
|
# moving them to their final directories. |
|
|
|
# |
|
|
|
var_append makeopt " " "prefix=/$prefix libdir=/$prefix/lib" |
|
|
|
var_append makeopt " " "prefix=/$prefix" |
|
|
|
var_append makeinstopt " " "prefix=$root/$prefix" |
|
|
|
for x in bin info man data ; do |
|
|
|
mkdir -p $builddir/inst_$x |
|
|
@ -135,8 +137,6 @@ fi |
|
|
|
|
|
|
|
if [ "$ROCKCFG_MULTILIB" = 0 ] ; then |
|
|
|
var_append extraconfopt " " "--disable-multilib" |
|
|
|
else |
|
|
|
var_append extraconfopt " " "--enable-multilib" |
|
|
|
fi |
|
|
|
|
|
|
|
custmain="custmain" |
|
|
|