Skip to content

Commit f25922b

Browse files
committed
test fix
1 parent 12561a4 commit f25922b

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

conda-recipe/meta.yaml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,14 @@ build:
1818
- CFLAGS
1919
- CXXFLAGS
2020
script: |
21+
# On Linux aarch64 builds we saw undefined pthread symbols (e.g. pthread_join)
22+
# unless we compile and link with -pthread. Autotools (HTSlib) only picks up
23+
# Conda headers and flags if CFLAGS/CXXFLAGS and LDFLAGS are exported.
24+
# On macOS x86 (SDK < 10.15), Clang’s availability annotations block newer
25+
# libc++ symbols (std::filesystem::path, etc.), so we disable those checks
26+
# with -D_LIBCPP_DISABLE_AVAILABILITY
2127
export CFLAGS="-pthread -I${PREFIX}/include $CFLAGS"
22-
export CXXFLAGS="-pthread -I${PREFIX}/include $CXXFLAGS"
28+
export CXXFLAGS="-pthread -I${PREFIX}/include $CXXFLAGS -D_LIBCPP_DISABLE_AVAILABILITY"
2329
export LDFLAGS="-pthread ${LDFLAGS}"
2430
2531
cmake -S cpp/all -B build -DCMAKE_INSTALL_PREFIX=$PREFIX -DCMAKE_BUILD_TYPE=Release -DCMAKE_EXE_LINKER_FLAGS="$LDFLAGS"

0 commit comments

Comments
 (0)