Skip to content

Commit

Permalink
gcc-7.3.0: Build in subdirectory
Browse files Browse the repository at this point in the history
gcc doesn't support to be build in the source directory.

https://gcc.gnu.org/wiki/InstallingGCC
  • Loading branch information
donald committed Feb 10, 2018
1 parent 07e39b8 commit 30f4e02
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion gcc-7.3.0-0.build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,9 @@ cd $BUILDDIR
test -e gcc-${VERSION}.tar.gz || wget $URL
test -d gcc-$VERSION || tar xvf gcc-${VERSION}.tar.gz
cd gcc-$VERSION
./configure \
mkdir -p objdir
cd objdir
$BUILDDIR/gcc-$VERSION/configure \
--prefix=$PREFIX \
--enable-shared \
--enable-threads=posix \
Expand Down

0 comments on commit 30f4e02

Please sign in to comment.