fixed issue with directory name having spacing in name
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
. $PROJECTDIR/build/gcc/package.env
|
||||
. "$PROJECTDIR/build/gcc/package.env"
|
||||
|
||||
fetch $GCC_URL
|
||||
|
||||
cd $SOURCES && tar xf gcc-$GCC_VERSION.tar.xz && cd gcc-$GCC_VERSION
|
||||
cd "$SOURCES" && tar xf gcc-$GCC_VERSION.tar.xz && cd gcc-$GCC_VERSION
|
||||
|
||||
bootstrap() {
|
||||
mkdir -p build && cd build
|
||||
@@ -16,9 +16,9 @@ bootstrap() {
|
||||
--disable-libstdcxx-pch \
|
||||
--with-gxx-include-dir=/cross/$TARGET/include/c++/$GCC_VERSION > /dev/null
|
||||
|
||||
make > /dev/null && make DESTDIR=$SYSROOT install > /dev/null
|
||||
make > /dev/null && make DESTDIR="$SYSROOT" install > /dev/null
|
||||
|
||||
rm $SYSROOT/usr/lib/lib{stdc++{,exp,fs},supc++}.la
|
||||
rm "$SYSROOT/usr/lib/lib{stdc++{,exp,fs},supc++}.la"
|
||||
}
|
||||
|
||||
|
||||
@@ -49,4 +49,4 @@ case $1 in
|
||||
;;
|
||||
esac
|
||||
|
||||
cd $SOURCES && rm -rf $SOURCES/gcc-$GCC_VERSION
|
||||
cd "$SOURCES" && rm -rf "$SOURCES/gcc-$GCC_VERSION"
|
||||
|
||||
Reference in New Issue
Block a user