Print this page
Some packages need to specify -std=gnu89 to compile, and gcc51 defaults to
gnu11 now.
Also, updated mozilla-nss-nspr to 3.19 and 4.10.8, respectively.
Other packages up to gcc51 runtime
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/gcc44/build.sh
+++ new/build/gcc44/build.sh
1 1 #!/usr/bin/bash
2 2 #
3 3 # CDDL HEADER START
4 4 #
5 5 # The contents of this file are subject to the terms of the
6 6 # Common Development and Distribution License, Version 1.0 only
7 7 # (the "License"). You may not use this file except in compliance
8 8 # with the License.
9 9 #
10 10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
11 11 # or http://www.opensolaris.org/os/licensing.
12 12 # See the License for the specific language governing permissions
13 13 # and limitations under the License.
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 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
|
↓ open down ↓ |
30 lines elided |
↑ open up ↑ |
31 31 VER=4.4.4
32 32 COMMIT=bcf43ddb4958677ebd7dd6daba9d526d2865df10
33 33 VERHUMAN="$VER from ${COMMIT:0:10}"
34 34 PKG=developer/gcc44
35 35 SUMMARY="gcc ${VER} (richlowe il-4_4_4 branch)"
36 36 DESC="GCC with the patches from Codesourcery/Sun Microsystems used in the 3.4.3 and 4.3.3 shipped with Solaris. The il-* branches contain the Solaris patches rebased forward across GCC versions in an attempt to bring them up to date."
37 37
38 38 BUILDDIR=${PROG}-il-4_4_4
39 39
40 40 export LD_LIBRARY_PATH=/opt/gcc-${VER}/lib
41 -PATH=/usr/perl5/5.16.1/bin:$PATH
41 +# Build gcc44 only with itself...
42 +PATH=/usr/perl5/5.16.1/bin:/opt/gcc-${VER}/bin:$PATH
42 43 export PATH
43 44
44 45 DEPENDS_IPS="developer/gcc44/libgmp-gcc44 developer/gcc44/libmpfr-gcc44 developer/gcc44/libmpc-gcc44
45 - developer/gnu-binutils developer/library/lint developer/linker system/library/gcc-4-runtime"
46 + developer/gnu-binutils developer/library/lint developer/linker system/library/gcc-5-runtime"
46 47 BUILD_DEPENDS_IPS="$DEPENDS_IPS"
47 48
48 49 NO_PARALLEL_MAKE=1
49 50
50 51 # This stuff is in its own domain
51 52 PKGPREFIX=""
52 53
53 54 BUILDARCH=32
54 55 PREFIX=/opt/gcc-${VER}
55 56 reset_configure_opts
56 57 CC=gcc
57 58
58 59 LD_FOR_TARGET=/bin/ld
59 60 export LD_FOR_TARGET
60 61 LD_FOR_HOST=/bin/ld
61 62 export LD_FOR_HOST
62 63 LD=/bin/ld
63 64 export LD
64 65
65 66 HSTRING=i386-pc-solaris2.11
66 67
67 68 CONFIGURE_OPTS_32="--prefix=/opt/gcc-${VER}"
68 69 CONFIGURE_OPTS="--host ${HSTRING} --build ${HSTRING} --target ${HSTRING} \
69 70 --with-boot-ldflags=-R/opt/gcc-${VER}/lib \
70 71 --with-gmp=/opt/gcc-${VER} --with-mpfr=/opt/gcc-${VER} --with-mpc=/opt/gcc-${VER} \
71 72 --enable-languages=c,c++,fortran --without-gnu-ld --with-ld=/bin/ld \
72 73 --with-as=/usr/bin/gas --with-gnu-as --with-build-time-tools=/usr/gnu/${HSTRING}/bin"
73 74 LDFLAGS32="-R/opt/gcc-${VER}/lib"
74 75 export LD_OPTIONS="-zignore -zcombreloc -Bdirect -i"
75 76
76 77 init
77 78 download_source gcc44 ${PROG}-il-4_4_4
78 79 patch_source
79 80 prep_build
80 81 build
81 82
82 83 # Ick. For some bizarre reason, this gcc44 package doesn't properly push
83 84 # the LDFLAGS shown above into various subdirectories. Use elfedit to fix
84 85 # it.
85 86 ESTRING="dyn:runpath /opt/gcc-${VER}/lib:%o"
86 87 elfedit -e "${ESTRING}" ${TMPDIR}/${BUILDDIR}/host-${HSTRING}/gcc/cc1
87 88 elfedit -e "${ESTRING}" ${TMPDIR}/${BUILDDIR}/host-${HSTRING}/gcc/cc1plus
88 89 elfedit -e "${ESTRING}" ${TMPDIR}/${BUILDDIR}/host-${HSTRING}/gcc/f951
89 90
90 91 make_package gcc.mog
91 92 clean_up
92 93
93 94 # Vim hints
94 95 # vim:ts=4:sw=4:et:
|
↓ open down ↓ |
39 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX