Print this page
gcc builds shouldn't require sudo and/or user interaction
plus, nuke gcc48/build-go.sh

Split Close
Expand all
Collapse all
          --- old/build/gcc48/build.sh
          +++ new/build/gcc48/build.sh
↓ open down ↓ 13 lines elided ↑ open up ↑
  14   14  #
  15   15  # When distributing Covered Code, include this CDDL HEADER in each
  16   16  # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
  17   17  # If applicable, add the following below this CDDL HEADER, with the
  18   18  # fields enclosed by brackets "[]" replaced with your own identifying
  19   19  # information: Portions Copyright [yyyy] [name of copyright owner]
  20   20  #
  21   21  # CDDL HEADER END
  22   22  #
  23   23  #
  24      -# Copyright 2011-2012 OmniTI Computer Consulting, Inc.  All rights reserved.
       24 +# Copyright 2014 OmniTI Computer Consulting, Inc.  All rights reserved.
  25   25  # Use is subject to license terms.
  26   26  #
  27   27  # Load support functions
  28   28  . ../../lib/functions.sh
  29   29  
  30   30  PROG=gcc
  31   31  VER=4.8.1
  32   32  VERHUMAN=$VER
  33   33  PKG=developer/gcc48
  34   34  SUMMARY="gcc ${VER}"
↓ open down ↓ 19 lines elided ↑ open up ↑
  54   54  export LD_FOR_TARGET
  55   55  LD_FOR_HOST=/bin/ld
  56   56  export LD_FOR_HOST
  57   57  LD=/bin/ld
  58   58  export LD
  59   59  
  60   60  CONFIGURE_OPTS_32="--prefix=/opt/gcc-${VER}"
  61   61  CONFIGURE_OPTS="--host i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target i386-pc-solaris2.11 \
  62   62          --with-boot-ldflags=-R/opt/gcc-${VER}/lib \
  63   63          --with-gmp=/opt/gcc-${VER} --with-mpfr=/opt/gcc-${VER} --with-mpc=/opt/gcc-${VER} \
  64      -        --enable-languages=c,c++,fortran,lto --enable-ld=no \
       64 +        --enable-languages=c,c++,fortran,lto --without-gnu-ld --with-ld=/bin/ld \
  65   65          --with-as=/usr/bin/gas --with-gnu-as --with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin"
  66   66  LDFLAGS32="-R/opt/gcc-${VER}/lib"
  67   67  export LD_OPTIONS="-zignore -zcombreloc -i"
  68   68  
  69      -save_function configure32 configure32_orig
  70      -configure32() {
  71      -    logmsg "This is evil... sudo chmod'ing gnu ld"
  72      -    logcmd sudo chmod 644 /usr/gnu/i386-pc-solaris2.11/bin/ld
  73      -    configure32_orig
  74      -    logmsg "This is evil... chmodding gnu ld back"
  75      -    logcmd sudo chmod 755 /usr/gnu/i386-pc-solaris2.11/bin/ld
  76      -}
  77      -
  78   69  init
  79   70  download_source $PROG/releases/$PROG-$VER $PROG $VER
  80   71  patch_source
  81   72  prep_build
  82   73  build
  83   74  make_package gcc.mog
  84   75  clean_up
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX