config 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. # vim: filetype=yaml sw=2
  2. filename: '[% project %]-[% c("version") %]-[% c("var/build_id") %].tar.gz'
  3. version: 8.3.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. export LD_LIBRARY_PATH=/var/tmp/dist/gcc/lib64:/var/tmp/dist/gcc/lib32
  16. [% IF c("hardened_gcc") -%]
  17. # Config options for hardening-wrapper
  18. export DEB_BUILD_HARDENING=1
  19. export DEB_BUILD_HARDENING_STACKPROTECTOR=1
  20. export DEB_BUILD_HARDENING_FORTIFY=1
  21. export DEB_BUILD_HARDENING_FORMAT=1
  22. export DEB_BUILD_HARDENING_PIE=1
  23. # Make sure we use the hardening wrapper
  24. pushd /var/tmp/dist/gcc/bin
  25. cp /usr/bin/hardened-cc ./
  26. mv gcc gcc.real
  27. mv c++ c++.real
  28. mv g++ g++.real
  29. ln -sf hardened-cc gcc
  30. ln -sf hardened-cc c++
  31. ln -sf hardened-cc g++
  32. popd
  33. [% END -%]
  34. targets:
  35. windows:
  36. var:
  37. configure_opt: --disable-multilib --enable-languages=c,c++
  38. arch_deps:
  39. - libc6-dev
  40. - zlib1g-dev
  41. linux:
  42. hardened_gcc: 1
  43. var:
  44. configure_opt: --enable-multilib --enable-languages=c,c++ --with-arch_32=i686
  45. arch_deps:
  46. - hardening-wrapper
  47. - libc6-dev-i386
  48. input_files:
  49. - project: container-image
  50. - URL: 'https://ftp.gnu.org/gnu/gcc/gcc-[% c("version") %]/gcc-[% c("version") %].tar.xz'
  51. sha256sum: 64baadfe6cc0f4947a84cb12d7f0dfaf45bb58b7e92461639596c21e02d97d2c