hanzer

build_gcc.sh

Jan 3rd, 2014
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. #!/usr/local/bin/bash
  2.  
  3. ROOTDIR=/home/hanzer/third-party
  4. PREFIX=/home/hanzer/local/ghdl
  5. CONFIG_SHELL=/usr/local/bin/bash
  6. export CONFIG_SHELL
  7.  
  8. # fix Debian multiarch..
  9. # export LIBRARY_PATH=/usr/lib/x86_64-linux-gnu
  10.  
  11. BASEDIR=$ROOTDIR
  12. SOURCEDIR=$BASEDIR/source/gcc-4.7.3
  13. BUILD_DIR=$BASEDIR/build
  14.  
  15. LIBADA=--enable-libada
  16.  
  17. LANGCHOICE=--enable-languages=vhdl
  18.  
  19. mkdir $BUILD_DIR
  20. cd $BUILD_DIR
  21.  
  22. # need one or both of these if changing settings. Otherwise, faster without them.
  23. gmake distclean
  24. gmake clean
  25.  
  26. $SOURCEDIR/configure $LANGCHOICE $LIBADA --enable-checking --prefix=$PREFIX --disable-bootstrap
  27.  
  28. #gmake CFLAGS="-O -g"
  29. gmake -B -d
Advertisement
Add Comment
Please, Sign In to add comment