# This file created by conda-build 3.22.0
# ------------------------------------------------

package:
  name: gxx_impl_linux-64
  version: 12.2.0
source:
  - patches:
      - patches/0021-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
      - patches/new-allow-commands-in-main-specfile.patch
    sha256: ac6b317eb4d25444d87cf29c0d141dedc1323a1833ec9995211b13e1a851261c
    url: https://ftp.gnu.org/gnu/gcc/gcc-12.2.0/gcc-12.2.0.tar.gz
build:
  detect_binary_files_with_prefix: false
  ignore_run_exports:
    - __glibc
  missing_dso_whitelist:
    - '*'
  number: 19
  string: hcc96c02_19
requirements:
  build:
    - binutils_impl_linux-64 2.39 h6ceecb4_0
    - gcc_bootstrap_linux-64 12.2.0 hba5b598_11
    - kernel-headers_linux-64 2.6.32 he073ed8_15
    - ld_impl_linux-64 2.39 hc81fddc_0
    - sysroot_linux-64 2.12 he073ed8_15
  host:
    - gcc_impl_linux-64 12.2.0 hcc96c02_19
    - kernel-headers_linux-64 2.6.32 he073ed8_15
    - sysroot_linux-64 2.12 he073ed8_15
  run:
    - gcc_impl_linux-64 12.2.0 hcc96c02_19
    - libstdcxx-devel_linux-64 12.2.0 h3b97bd3_19
    - sysroot_linux-64
test:
  commands:
    - test -f ${PREFIX}/bin/x86_64-conda_cos6-linux-gnu-g++
    - test -f ${PREFIX}/bin/x86_64-conda-linux-gnu-g++
    - CXX=$(${PREFIX}/bin/*-gcc -dumpmachine)-g++
    - ${CXX} -Wall tests/aligned_alloc.cpp -c -o cpp_aligned.o --std=c++17
    - ${CXX} -Wall cpp_aligned.o -o cpp_aligned --std=c++17 && ./cpp_aligned
  files:
    - tests
  requires:
    - sysroot_linux-64 2.12.*
about:
  home: https://gcc.gnu.org/
  license: GPL-3.0-only WITH GCC-exception-3.1
  summary: GNU C++ Compiler
extra:
  copy_test_source_files: true
  final: true
  recipe-maintainers:
    - beckermr
    - isuruf
    - timsnyder
    - xhochy
