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.
Mis-versioned gcc-5.1.0 in gawk's buld.sh.
gcc51 bringup
| Split |
Close |
| Expand all |
| Collapse all |
--- old/build/gawk/build.sh
+++ new/build/gawk/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 #
27 27 # Load support functions
28 28 . ../../lib/functions.sh
|
↓ open down ↓ |
28 lines elided |
↑ open up ↑ |
29 29
30 30 PROG=gawk
31 31 VER=4.1.1
32 32 VERHUMAN=$VER
33 33 PKG=text/gawk
34 34 SUMMARY="gawk - GNU implementation of awk"
35 35 DESC="$SUMMARY"
36 36
37 37 BUILDARCH=32
38 38 CONFIGURE_OPTS_32="$CONFIGURE_OPTS_32 --bindir=/usr/bin"
39 +# Use old gcc4 standards level for this.
40 +CFLAGS="$CFLAGS -std=gnu89"
39 41
40 42 # as of 4.1, gawk now supports arbitrary precision numbers.
41 43 # build in MPFR/GMP support rather than dynamically linking it.
42 44 save_function configure32 configure32_orig
43 45 configure32() {
44 46 configure32_orig
45 47
46 48 logmsg "Patching Makefile to make mpfr/gmp static"
47 49 pushd $TMPDIR/$BUILDDIR > /dev/null
48 - logcmd gsed -i -e 's#-lmpfr -lgmp#/opt/gcc-4.8.1/lib/libmpfr.a /opt/gcc-4.8.1/lib/libgmp.a#' Makefile
50 + logcmd gsed -i -e 's#-lmpfr -lgmp#/opt/gcc-5.1.0/lib/libmpfr.a /opt/gcc-5.1.0/lib/libgmp.a#' Makefile
49 51 popd > /dev/null
50 52 }
51 53
52 54 gnu_cleanup() {
53 55 logmsg "Cleaning up install root"
54 56 logcmd mkdir -p $DESTDIR/usr/gnu/bin
55 57 logcmd mkdir -p $DESTDIR/usr/gnu/share/man/man1
56 58 logcmd ln -s ../../bin/gawk $DESTDIR/usr/gnu/bin/awk
57 59 logcmd ln -s ../../../../share/man/man1/gawk.1 $DESTDIR/usr/gnu/share/man/man1/awk.1
58 60 logcmd rm -f $DESTDIR/usr/bin/awk || logerr "--- Unable to clean up $DESTDIR/usr/bin"
59 61 logcmd rm -rf $DESTDIR/usr/libexec || logerr "--- unable to clean up libexec dir"
60 62 }
61 63 init
62 64 download_source $PROG $PROG $VER
63 65 patch_source
64 66 prep_build
65 67 build
66 68 gnu_cleanup
67 69 make_isa_stub
68 70 make_package
69 71 clean_up
70 72
71 73 # Vim hints
72 74 # vim:ts=4:sw=4:et:
|
↓ open down ↓ |
14 lines elided |
↑ open up ↑ |
XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX