config 1.9 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: 6.4.0
  4. var:
  5. container:
  6. use_container: 1
  7. deps:
  8. - build-essential
  9. - libmpc-dev
  10. setup: |
  11. [% c("var/setarch") -%]
  12. mkdir -p /var/tmp/dist
  13. tar -C /var/tmp/dist -xf $rootdir/[% c("compiler_tarfile") %]
  14. export PATH="/var/tmp/dist/gcc/bin:$PATH"
  15. [% IF c("var/osname") == "linux-i686" -%]
  16. export LD_LIBRARY_PATH=/var/tmp/dist/gcc/lib
  17. [% ELSE -%]
  18. export LD_LIBRARY_PATH=/var/tmp/dist/gcc/lib64
  19. [% END -%]
  20. # Config options for hardening-wrapper
  21. export DEB_BUILD_HARDENING=1
  22. export DEB_BUILD_HARDENING_STACKPROTECTOR=1
  23. export DEB_BUILD_HARDENING_FORTIFY=1
  24. export DEB_BUILD_HARDENING_FORMAT=1
  25. export DEB_BUILD_HARDENING_PIE=1
  26. # Make sure we use the hardening wrapper
  27. pushd /var/tmp/dist/gcc/bin
  28. cp /usr/bin/hardened-cc ./
  29. mv gcc gcc.real
  30. mv c++ c++.real
  31. mv g++ g++.real
  32. ln -sf hardened-cc gcc
  33. ln -sf hardened-cc c++
  34. ln -sf hardened-cc g++
  35. popd
  36. targets:
  37. windows:
  38. var:
  39. configure_opt: --disable-multilib --enable-languages=c,c++
  40. arch_deps:
  41. - libc6-dev
  42. - zlib1g-dev
  43. linux-i686:
  44. var:
  45. configure_opt: --enable-multilib --enable-languages=c,c++ --with-system-zlib
  46. arch_deps:
  47. - hardening-wrapper
  48. - libc6-dev
  49. - zlib1g-dev
  50. linux-x86_64:
  51. var:
  52. configure_opt: --enable-multilib --enable-languages=c,c++ --with-arch_32=i686
  53. arch_deps:
  54. - hardening-wrapper
  55. - libc6-dev-i386
  56. linux-arm:
  57. var:
  58. configure_opt: --enable-multilib --enable-languages=c,c++ --with-arch_32=i686
  59. arch_deps:
  60. - hardening-wrapper
  61. - libc6-dev-i386
  62. input_files:
  63. - project: container-image
  64. - URL: 'https://ftp.gnu.org/gnu/gcc/gcc-[% c("version") %]/gcc-[% c("version") %].tar.xz'
  65. sha256sum: 850bf21eafdfe5cd5f6827148184c08c4a0852a37ccf36ce69855334d2c914d4