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

package:
  name: libsanitizer
  version: 14.3.0
source:
  - patches:
      - patches/0001-allow-commands-in-main-specfile.patch
      - patches/0002-patch-zoneinfo_dir_override-to-point-to-our-tzdata.patch
      - patches/0003-add-ldl-to-libstdc___la_LDFLAGS.patch
      - patches/0004-Hardcode-HAVE_ALIGNED_ALLOC-1-in-libstdc-v3-configur.patch
    sha256: ace8b8b0dbfe6abfc22f821cb093e195aa5498b7ccf7cd23e4424b9f14afed22
    url:
      - https://ftp.gnu.org/gnu/gcc/gcc-14.3.0/gcc-14.3.0.tar.gz
      - https://mirrors.ocf.berkeley.edu/gnu/gcc/gcc-14.3.0/gcc-14.3.0.tar.gz
build:
  detect_binary_files_with_prefix: false
  missing_dso_whitelist:
    - '*'
  number: 4
  overlinking_ignore_patterns:
    - lib/libasan.so.*
    - lib/libhwasan.so.*
    - lib/liblsan.so.*
    - lib/libtsan.so.*
  run_exports:
    - libsanitizer 14.3.0
  string: hd4faa28_4
requirements:
  host:
    - kernel-headers_linux-64 4.18.0 h528b178_0
    - sysroot_linux-64 2.28 h528b178_0
    - tzdata 2025b h04d1e81_0
  run:
    - __glibc >=2.28,<3.0.a0
    - libgcc >=14.3.0
    - libstdcxx >=14.3.0
test:
  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 -
  requires:
    - gcc_impl_linux-64
    - sysroot_linux-64 2.28.*
about:
  home: https://gcc.gnu.org/onlinedocs/gccint/Libgcc.html
  license: GPL-3.0-only WITH GCC-exception-3.1
  summary: The GCC runtime libraries for sanitizers
extra:
  copy_test_source_files: true
  feedstock-name: ctng-compilers-feedstock
  final: true
  recipe-maintainers:
    - beckermr
    - isuruf
    - timsnyder
    - xhochy
