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

package:
  name: libsanitizer
  version: 13.4.0
source:
  - url:
      - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-13.4.0/gcc-13.4.0.tar.gz
    sha256: bf0baf3e570c9c74c17c8201f0196c6924b4bd98c90e69d6b2ac0cd823f33bbc
    patches:
      - patches/0001-allow-commands-in-main-specfile.patch
      - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
  - url: https://github.com/madler/zlib/releases/download/v1.3.1/zlib-1.3.1.tar.gz
    sha256: 9a93b2b7dfdac77ceba5a558a580e74667dd6fede4585b91eefb60f03b72df23
    folder: zlib2
build:
  number: 19
  detect_binary_files_with_prefix: false
  missing_dso_whitelist:
    - '*'
  run_exports:
    - libsanitizer 13.4.0
  string: h2a15e64_19
requirements:
  host:
    - kernel-headers_linux-64 3.10.0 he581ecd_18
    - sysroot_linux-64 2.17 hb09d241_18
    - tzdata 2025c hc9c84f9_1
  run:
    - __glibc >=2.17,<3.0.a0
    - libgcc >=13.4.0
    - libstdcxx >=13.4.0
test:
  requires:
    - binutils_impl_linux-64 2.45.* bootstrap_*
    - gcc_impl_linux-64
    - sysroot_linux-64
  commands:
    - test -f ${PREFIX}/lib/libasan.so
    - test -f ${PREFIX}/lib/libhwasan.so
    - file ${PREFIX}/bin/x86_64-conda-linux-gnu-gcc
    - echo 'void main(){}' | x86_64-conda-linux-gnu-gcc -fsanitize=address -Wl,--fatal-warnings
      -x c -
about:
  summary: The GCC runtime libraries for sanitizers
  home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html
  license: GPL-3.0-only WITH GCC-exception-3.1
extra:
  feedstock-name: ctng-compilers-feedstock
  recipe-maintainers:
    - beckermr
    - isuruf
    - timsnyder
    - xhochy
  final: true
  copy_test_source_files: true
  flow_run_id: azure_20260508.3.1
  remote_url: https://github.com/conda-forge/ctng-compilers-feedstock
  sha: 56d1f0049683ead04fe3ed3276d698dbaacac230
