config 1.76 KB
Newer Older
1
2
# vim: filetype=yaml sw=2
filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
3
version: 6.4.0
4
var:
boklm's avatar
boklm committed
5
6
  container:
    use_container: 1
7
8
9
10
  deps:
    - build-essential
    - libmpc-dev
  setup: |
11
    [% c("var/setarch") -%]
12
    mkdir -p /var/tmp/dist
boklm's avatar
boklm committed
13
    tar -C /var/tmp/dist -xf $rootdir/[% c("compiler_tarfile") %]
14
15
    export PATH="/var/tmp/dist/gcc/bin:$PATH"
    [% IF c("var/osname") == "linux-i686" -%]
boklm's avatar
boklm committed
16
    export LD_LIBRARY_PATH=/var/tmp/dist/gcc/lib
17
18
19
    [% ELSE -%]
    export LD_LIBRARY_PATH=/var/tmp/dist/gcc/lib64
    [% END -%]
20
21
22
23
24
25
26
27
28
29
30
31
32

    # Config options for hardening-wrapper
    export DEB_BUILD_HARDENING=1
    export DEB_BUILD_HARDENING_STACKPROTECTOR=1
    export DEB_BUILD_HARDENING_FORTIFY=1
    export DEB_BUILD_HARDENING_FORMAT=1
    export DEB_BUILD_HARDENING_PIE=1

    # Make sure we use the hardening wrapper
    pushd /var/tmp/dist/gcc/bin
    cp /usr/bin/hardened-cc ./
    mv gcc gcc.real
    mv c++ c++.real
33
    mv g++ g++.real
34
35
    ln -sf hardened-cc gcc
    ln -sf hardened-cc c++
36
    ln -sf hardened-cc g++
37
38
    popd

39
targets:
40
  windows:
41
42
    var:
      configure_opt: --disable-multilib --enable-languages=c,c++
43
44
45
      arch_deps:
        - libc6-dev
        - zlib1g-dev
46
47
48
49
  linux-i686:
    var:
      configure_opt: --enable-multilib --enable-languages=c,c++ --with-system-zlib
      arch_deps:
50
        - hardening-wrapper
51
52
53
54
55
56
        - libc6-dev
        - zlib1g-dev
  linux-x86_64:
    var:
      configure_opt: --enable-multilib --enable-languages=c,c++ --with-arch_32=i686
      arch_deps:
57
        - hardening-wrapper
58
        - libc6-dev-i386
59
input_files:
boklm's avatar
boklm committed
60
  - project: container-image
61
62
  - URL: 'https://ftp.gnu.org/gnu/gcc/gcc-[% c("version") %]/gcc-[% c("version") %].tar.xz'
    sha256sum: 850bf21eafdfe5cd5f6827148184c08c4a0852a37ccf36ce69855334d2c914d4