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/glib/build.sh
+++ new/build/glib/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 2011-2012 OmniTI Computer Consulting, Inc. All rights reserved.
25 25 # Use is subject to license terms.
26 26 #
|
↓ open down ↓ |
26 lines elided |
↑ open up ↑ |
27 27 # Load support functions
28 28 . ../../lib/functions.sh
29 29
30 30 PROG=glib
31 31 VER=2.34.1
32 32 PKG=library/glib2
33 33 SUMMARY="$PROG - GNOME GLib utility library"
34 34 DESC="$SUMMARY"
35 35
36 36 DEPENDS_IPS="SUNWcs library/libffi@$FFIVERS library/zlib system/library
37 - system/library/gcc-4-runtime runtime/perl"
37 + system/library/gcc-5-runtime runtime/perl"
38 38
39 -CONFIGURE_OPTS="--disable-fam --disable-dtrace"
39 +# Use old gcc4 standards level for this.
40 +export CFLAGS="$CFLAGS -std=gnu89"
40 41
42 +CONFIGURE_OPTS="--disable-fam --disable-dtrace --with-threads=posix"
43 +
41 44 save_function configure32 configure32_orig
42 45 save_function configure64 configure64_orig
43 46 configure32() {
44 47 LIBFFI_CFLAGS=-I/usr/lib/libffi-$FFIVERS/include
45 48 export LIBFFI_CFLAGS
46 49 LIBFFI_LIBS=-lffi
47 50 export LIBFFI_LIBS
48 51 configure32_orig
49 52
50 53 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib -lc#g;' libtool ||
51 54 logerr "libtool patch failed"
52 55 # one file here requires c99 compilation and most others prohibit it
53 56 # it is a test, so no runtime issues will be present
54 57 pushd glib/tests > /dev/null
55 58 logmsg " one off strfuncs.o c99 compile"
56 59 logcmd make CFLAGS="-std=c99" strfuncs.o
57 60 popd > /dev/null
58 61 }
59 62 configure64() {
60 63 LIBFFI_CFLAGS=-I/usr/lib/amd64/libffi-$FFIVERS/include
61 64 export LIBFFI_CFLAGS
62 65 LIBFFI_LIBS=-lffi
63 66 export LIBFFI_LIBS
64 67 configure64_orig
65 68
66 69 logcmd perl -pi -e 's#(\$CC.*\$compiler_flags)#$1 -nostdlib -lc#g;' libtool ||
67 70 logerr "libtool patch failed"
68 71 # one file here requires c99 compilation and most others prohibit it
69 72 # it is a test, so no runtime issues will be present
70 73 pushd glib/tests > /dev/null
71 74 logmsg " one off strfuncs.o c99 compile"
72 75 logcmd make CFLAGS="-m64 -std=c99" strfuncs.o
73 76 popd > /dev/null
74 77 }
75 78
76 79 init
77 80 download_source $PROG $PROG $VER
78 81 patch_source
79 82 prep_build
80 83 build
81 84 make_isa_stub
82 85 make_package
83 86 clean_up
|
↓ open down ↓ |
33 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX