Print this page
Proper libstdc++ version
gcc51 bringup
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/gcc48/build-libstdc++.sh
+++ new/build/gcc51/build-libstdc++.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 #
|
↓ open down ↓ |
20 lines elided |
↑ open up ↑ |
21 21 # CDDL HEADER END
22 22 #
23 23 #
24 24 # Copyright 2011-2012 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=libstdc++
31 -VER=4.8.1
31 +VER=5.1.0
32 32 VERHUMAN=$VER
33 -PKG=system/library/g++-4-runtime
33 +PKG=system/library/g++-5-runtime
34 34 SUMMARY="g++ runtime dependencis libstc++/libssp"
35 35 DESC="$SUMMARY"
36 36
37 37 PATH=/opt/gcc-${VER}/bin:$PATH
38 38 export LD_LIBRARY_PATH=/opt/gcc-${VER}/lib
39 39
40 -BUILD_DEPENDS_IPS="gcc48 gcc44"
40 +BUILD_DEPENDS_IPS="gcc51 gcc44"
41 41 if [ -f /usr/lib/libstdc++.so.6.0.16 ]; then
42 42 GCC46_LOC=/usr/lib
43 43 else
44 44 GCC46_LOC=/opt/gcc-4.6.3/lib
45 45 BUILD_DEPENDS_IPS="$BUILD_DEPENDS_IPS gcc46"
46 46 fi
47 47
48 48 if [ -f /usr/lib/libstdc++.so.6.0.17 ]; then
49 49 GCC47_LOC=/usr/lib
50 50 else
51 51 GCC47_LOC=/opt/gcc-4.7.2/lib
52 52 BUILD_DEPENDS_IPS="$BUILD_DEPENDS_IPS gcc47"
53 53 fi
54 54
55 -DEPENDS_IPS="system/library/gcc-4-runtime"
55 +if [ -f /usr/lib/libstdc++.so.6.0.18 ]; then
56 + GCC48_LOC=/usr/lib
57 +else
58 + GCC48_LOC=/opt/gcc-4.8.1/lib
59 + BUILD_DEPENDS_IPS="$BUILD_DEPENDS_IPS gcc48"
60 +fi
61 +
62 +DEPENDS_IPS="system/library/gcc-5-runtime"
56 63 NO_PARALLEL_MAKE=1
57 64
58 65 # This stuff is in its own domain
59 66 PKGPREFIX=""
60 67
61 68 PREFIX=/opt/gcc-${VER}
62 69
63 70 init
64 71 prep_build
65 72 mkdir -p $TMPDIR/$BUILDDIR
66 73 for license in COPYING.RUNTIME COPYING.LIB COPYING3.LIB
67 74 do
68 75 logcmd cp $SRCDIR/files/$license $TMPDIR/$BUILDDIR/$license || \
|
↓ open down ↓ |
3 lines elided |
↑ open up ↑ |
69 76 logerr "Cannot copy licnese: $license"
70 77 done
71 78
72 79 mkdir -p $DESTDIR/usr/lib
73 80 mkdir -p $DESTDIR/usr/lib/amd64
74 81
75 82 LIB=libstdc++.so
76 83 cp /opt/gcc-4.4.4/lib/$LIB.6.0.13 $DESTDIR/usr/lib/$LIB.6.0.13
77 84 cp ${GCC46_LOC}/$LIB.6.0.16 $DESTDIR/usr/lib/$LIB.6.0.16
78 85 cp ${GCC47_LOC}/$LIB.6.0.17 $DESTDIR/usr/lib/$LIB.6.0.17
79 -cp /opt/gcc-${VER}/lib/$LIB.6.0.18 $DESTDIR/usr/lib/$LIB.6.0.18 || logerr "Failed to copy 6.0.18"
80 -ln -s /usr/lib/$LIB.6.0.18 $DESTDIR/usr/lib/$LIB.6
81 -ln -s /usr/lib/$LIB.6.0.18 $DESTDIR/usr/lib/$LIB
86 +cp ${GCC48_LOC}/$LIB.6.0.18 $DESTDIR/usr/lib/$LIB.6.0.18
87 +cp /opt/gcc-${VER}/lib/$LIB.6.0.21 $DESTDIR/usr/lib/$LIB.6.0.21 || logerr "Failed to copy 6.0.21"
88 +ln -s /usr/lib/$LIB.6.0.21 $DESTDIR/usr/lib/$LIB.6
89 +ln -s /usr/lib/$LIB.6.0.21 $DESTDIR/usr/lib/$LIB
82 90 cp /opt/gcc-4.4.4/lib/amd64/$LIB.6.0.13 $DESTDIR/usr/lib/amd64/$LIB.6.0.13
83 91 cp ${GCC46_LOC}/amd64/$LIB.6.0.16 $DESTDIR/usr/lib/amd64/$LIB.6.0.16
84 92 cp ${GCC47_LOC}/amd64/$LIB.6.0.17 $DESTDIR/usr/lib/amd64/$LIB.6.0.17
85 -cp /opt/gcc-${VER}/lib/amd64/$LIB.6.0.18 $DESTDIR/usr/lib/amd64/$LIB.6.0.18 || logerr "Failed to copy 6.0.18 (amd64)"
86 -ln -s /usr/lib/amd64/$LIB.6.0.18 $DESTDIR/usr/lib/amd64/$LIB.6
87 -ln -s /usr/lib/amd64/$LIB.6.0.18 $DESTDIR/usr/lib/amd64/$LIB
93 +cp ${GCC48_LOC}/amd64/$LIB.6.0.18 $DESTDIR/usr/lib/amd64/$LIB.6.0.18
94 +cp /opt/gcc-${VER}/lib/amd64/$LIB.6.0.21 $DESTDIR/usr/lib/amd64/$LIB.6.0.21 || logerr "Failed to copy 6.0.21 (amd64)"
95 +ln -s /usr/lib/amd64/$LIB.6.0.21 $DESTDIR/usr/lib/amd64/$LIB.6
96 +ln -s /usr/lib/amd64/$LIB.6.0.21 $DESTDIR/usr/lib/amd64/$LIB
88 97
89 98 LIB=libssp.so
90 99 cp /opt/gcc-${VER}/lib/$LIB.0.0.0 $DESTDIR/usr/lib/$LIB.0.0.0
91 100 ln -s /usr/lib/$LIB.0.0.0 $DESTDIR/usr/lib/$LIB.0
92 101 ln -s /usr/lib/$LIB.0.0.0 $DESTDIR/usr/lib/$LIB
93 102 cp /opt/gcc-${VER}/lib/amd64/$LIB.0.0.0 $DESTDIR/usr/lib/amd64/$LIB.0.0.0
94 103 ln -s /usr/lib/amd64/$LIB.0.0.0 $DESTDIR/usr/lib/amd64/$LIB.0
95 104 ln -s /usr/lib/amd64/$LIB.0.0.0 $DESTDIR/usr/lib/amd64/$LIB
96 105
97 106 make_package runtime.mog
98 107 clean_up
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX