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/gcc44/build.sh
          +++ new/build/gcc44/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.4.4
  32   32  COMMIT=bcf43ddb4958677ebd7dd6daba9d526d2865df10
  33   33  VERHUMAN="$VER from ${COMMIT:0:10}"
  34   34  PKG=developer/gcc44
↓ open down ↓ 24 lines elided ↑ open up ↑
  59   59  export LD_FOR_TARGET
  60   60  LD_FOR_HOST=/bin/ld
  61   61  export LD_FOR_HOST
  62   62  LD=/bin/ld
  63   63  export LD
  64   64  
  65   65  CONFIGURE_OPTS_32="--prefix=/opt/gcc-${VER}"
  66   66  CONFIGURE_OPTS="--host i386-pc-solaris2.11 --build i386-pc-solaris2.11 --target i386-pc-solaris2.11 \
  67   67      --with-boot-ldflags=-R/opt/gcc-${VER}/lib \
  68   68      --with-gmp=/opt/gcc-${VER} --with-mpfr=/opt/gcc-${VER} --with-mpc=/opt/gcc-${VER} \
  69      -    --enable-languages=c,c++,fortran --enable-ld=no \
       69 +    --enable-languages=c,c++,fortran --without-gnu-ld --with-ld=/bin/ld \
  70   70      --with-as=/usr/bin/gas --with-gnu-as --with-build-time-tools=/usr/gnu/i386-pc-solaris2.11/bin"
  71   71  LDFLAGS32="-R/opt/gcc-${VER}/lib"
  72   72  export LD_OPTIONS="-zignore -zcombreloc -Bdirect -i"
  73   73  
  74      -save_function configure32 configure32_orig
  75      -configure32() {
  76      -    logmsg "This is evil... sudo chmod'ing gnu ld"
  77      -    logcmd sudo chmod 644 /usr/gnu/i386-pc-solaris2.11/bin/ld
  78      -    configure32_orig
  79      -    logmsg "This is evil... chmodding gnu ld back"
  80      -    logcmd sudo chmod 755 /usr/gnu/i386-pc-solaris2.11/bin/ld
  81      -}
  82      -
  83   74  init
  84   75  download_source gcc44 ${PROG}-il-4_4_4
  85   76  patch_source
  86   77  prep_build
  87   78  build
  88   79  make_package gcc.mog
  89   80  clean_up
  90   81  
  91   82  # Vim hints
  92   83  # vim:ts=4:sw=4:et:
    
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX